Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating a new user, but can't login (/etc/shadow?)..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
f0rmula
n00b
n00b


Joined: 14 May 2005
Posts: 7
Location: England

PostPosted: Sat May 14, 2005 1:09 pm    Post subject: Creating a new user, but can't login (/etc/shadow?).. Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat May 14, 2005 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
polle
Veteran
Veteran


Joined: 28 Feb 2003
Posts: 1498
Location: Belgium

PostPosted: Sat May 14, 2005 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Permafrost91
n00b
n00b


Joined: 27 Jan 2005
Posts: 68

PostPosted: Sat May 14, 2005 9:33 pm    Post subject: KUser Reply with quote

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
View user's profile Send private message
gesiel
Apprentice
Apprentice


Joined: 13 Feb 2005
Posts: 197
Location: Brasil - Rio de Janeiro

PostPosted: Sun May 15, 2005 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
f0rmula
n00b
n00b


Joined: 14 May 2005
Posts: 7
Location: England

PostPosted: Sun May 15, 2005 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
gesiel
Apprentice
Apprentice


Joined: 13 Feb 2005
Posts: 197
Location: Brasil - Rio de Janeiro

PostPosted: Sun May 15, 2005 5:24 pm    Post subject: Reply with quote

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:
Code:
emerge glibc


this goes to solve the problem. simple thus
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1609
Location: indiana

PostPosted: Sun May 15, 2005 5:27 pm    Post subject: KDE useradd ? Reply with quote

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 :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum