LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i create a new user (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-create-a-new-user-20006/)

barkers 05-02-2002 04:28 AM

how do i create a new user
 
im not sure what im doin wrong with this.

im using suse linux 7.0, how do i add a new user. please dont say use adduser because there is no command adduser.

it doesnt seem to work properly i can never login as the user i have created

thanx
barkers

yai68 05-02-2002 04:55 AM

Try useradd (as root)
man 8 useradd explains all.

barkers 05-02-2002 05:01 AM

sorry should have siad, i have already been using tried useradd.

it creates a home directory and everything, but i cant login as that user.

is there something else i need to do

ive been doing it like this

useradd -p mypasswd boogieman

is this wrong

yai68 05-02-2002 05:23 AM

When you specify the -p option you are setting the encrypted password.
Look in /etc/shadow and you'll see

Try doing:-
# useradd boogieman
# passwd boogieman

Then check out /etc/shadow again

barkers 05-02-2002 05:36 AM

thanks

Druaga 05-08-2002 04:07 PM

how do i delete a user??
it doesnt tell me in the man page.

Themonk 05-08-2002 04:14 PM

Try linuxconf from there you can add new users, delete users change group settings along with afew other things.

Shrike 05-08-2002 04:14 PM

to remove a user without removing his/her home directory "userdel (username)

to remove a user and his/her directory "userdel -r (username)"

to find and remove the users files thrughout the system:

note the user ID from the password file before deleting.

"find / -type f -uid (the users ID) -print -exec rm {} \;"

growler 05-09-2002 12:25 AM

also, check out userdel and usermod.

barkers 05-09-2002 03:07 AM

when i do
passwd (username)

as root it says

passwd:Module unknown

or something like that, and doesnt let me change the password.

i cant figure out why, is something not installed properly, or am i bein stupid


All times are GMT -5. The time now is 10:11 AM.