View previous topic :: View next topic |
Author |
Message |
f0rmula n00b
Joined: 14 May 2005 Posts: 7 Location: England
|
Posted: Sat May 14, 2005 1:09 pm Post subject: Creating a new user, but can't login (/etc/shadow?).. |
|
|
Hiya..
I've searched and there's a couple of threads that cover a similar subject area, but I seem to have a slightly different problem to everyone else.
I've performed a fresh install from the Universal Installation CD, and (after swearing at grub for ages) managed to get it all up and running relatively ok
However, I can't seem to add a user.. I've used "useradd -m james -p smile".. However, when i try to log in, I'm greeted with a "token manipulation error"
I then tried using "kuser", which has reported a problem opening and backing up /etc/shadow. I'm a bit stumped on this one.. Any ideas?
Any help greatly appreciated
James |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat May 14, 2005 1:29 pm Post subject: |
|
|
If you provide a passwd on the useradd commandline then you have to encrypt it with crypt yourself.
man useradd. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
polle Veteran
Joined: 28 Feb 2003 Posts: 1498 Location: Belgium
|
Posted: Sat May 14, 2005 6:21 pm Post subject: |
|
|
from the handbook:
Quote: | How do i add a normal user?
The command adduser gentoo will add a user called gentoo. The next step is to give this user a password and passwd will do exactly that.
Instead of adduser you can also use:
Code Listing 3.1: Using useradd
# useradd -m -G users,audio,wheel -s /bin/bash gentoo
This will add a user gentoo, will make possible for him to use sound-related devices (/dev/sound/*), will make possible for him to switch to root (using su) and will make /bin/bash his/her login shell.
You can also install superadduser using emerge superadduser and then issue superadduser gentoo to add a user called gentoo. Just follow the instructions given to you by superadduser |
|
|
Back to top |
|
|
Permafrost91 n00b
Joined: 27 Jan 2005 Posts: 68
|
Posted: Sat May 14, 2005 9:33 pm Post subject: KUser |
|
|
I've had the same problem. My fix was (as root)
Code: | # touch whatever_file_kuser_can't_find |
After this kuser should stop complaining about the file. I think it was the group shadow file that was missing on my machine. Hope this helps. |
|
Back to top |
|
|
gesiel Apprentice
Joined: 13 Feb 2005 Posts: 197 Location: Brasil - Rio de Janeiro
|
Posted: Sun May 15, 2005 12:42 am Post subject: |
|
|
Hi,
for create an user you should:
useradd usuario -m -G users,wheel,audio,games,floppy,usb,video,cdrom -s /bin/bash
passwd usuario
but the user created with useradd probably has ID 500. For login in KDM the ID must wave 1000 or bigger. However useradd already created the folder of the user with ID 500.
To solve the problem, it excludes the user and its directory, enters in the KUSER and it creates the user with ID 1000. It goes to the control center and qualifies the user to make login. This must works.
Update: you compiled its system with crypto support? |
|
Back to top |
|
|
f0rmula n00b
Joined: 14 May 2005 Posts: 7 Location: England
|
Posted: Sun May 15, 2005 2:03 pm Post subject: |
|
|
I've tried all the suggested, and it's still complaining..
gesiel wrote: | Update: you compiled its system with crypto support? |
I had actually given up for a bit, but when tried to build a WiFi driver, i was greeted with this:
Code: |
bash-2.05b# make
Checking if all requirements are met... FAILED
Please enable crypto API.
make: *** [configcheck] Error 1
|
Could this be in some way related my "user" problem?
Thanks for the replies.
James[/code] |
|
Back to top |
|
|
gesiel Apprentice
Joined: 13 Feb 2005 Posts: 197 Location: Brasil - Rio de Janeiro
|
Posted: Sun May 15, 2005 5:24 pm Post subject: |
|
|
ops...
f0rmula wrote: |
bash-2.05b# make
Checking if all requirements are met... FAILED
Please enable crypto API.
make: *** [configcheck] Error 1 |
this message is very very important...
Try:
1) open /etc/make.conf and add "crypt" into USE, like this:
Code: | USE="x86 xmms crypt" |
2) rebuild glibc to enable crypto API:
this goes to solve the problem. simple thus |
|
Back to top |
|
|
Mgiese Veteran
Joined: 23 Mar 2005 Posts: 1609 Location: indiana
|
Posted: Sun May 15, 2005 5:27 pm Post subject: KDE useradd ? |
|
|
if you used useradd from kde , then you simply have to check that "accout disabled" is turned OFF !!! had the same error ... standard config for a new user created with kde's useradd tool got THE ACCOUT DISABLED !!!
mfg _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE |
|
Back to top |
|
|
|