PDA

View Full Version : adding a user



Ludicrous
21st January 2006, 09:37 AM
ok so i used the terminal to add a user

su -
password
adduser -m user1

but i can't seem to login with it??

what did it set the password too??

how can i check to make sure it added the user?

hotdog
21st January 2006, 10:06 AM
You should set the password when creating the user. See 'man adduser' for details. Basically 'adduser -m -p <password> <username>' would have done the job. If you don't specify the password the default is to disable to newly created account. When logged in as root you might still be able to subsitute user to the account with 'su - user1'. Then just 'passwd' as normal. Not totally sure of whether that'll be possible though, I normally use the GUI tool for this sort of thing.

Ludicrous
21st January 2006, 10:32 AM
well after reading your post, i went in and tried to add another user

su -
adduser -m -p password2 user2

but i can't seem to login with that one either...??

in any event how can i remove he 2 that i can't seem to get in with??

and for some reason when i try to use the gui, it's like the video card/monitor can't handle it i get a screan where i can't read anything and i can't get out of. So i end up having to reboot.

mnisay
21st January 2006, 11:21 AM
add = useradd username1
set password = passwd username1
delete = userdel -r username1

would do the tricks

the stranger
21st January 2006, 11:33 AM
im using redhat and each time i try to do;

useradd test

is comes back as bash command not founf, even if i do useradd -D

any ideas?

Ludicrous
21st January 2006, 11:36 AM
you have to due

su -

first

su - is not the same as su

or so i read

the stranger
21st January 2006, 11:55 AM
"su -" did it! :)

Ludicrous
21st January 2006, 12:01 PM
awsome i helped some one on my first day using nix! :D

raoul
21st January 2006, 12:09 PM
I have written a small article about the most common practices in managing users from the command line. You might find it helpful if you are not into man page reading.
User management from the command line (http://www.raoul.shacknet.nu/2005/11/06/manage-users-from-the-command-line/)

Ludicrous
21st January 2006, 12:33 PM
that is a very helpful guid raoul, thanks now im sorted out :D