LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   suse 9.0 "adding and removing users" (https://www.linuxquestions.org/questions/linux-newbie-8/suse-9-0-adding-and-removing-users-191730/)

Virtualhate 06-09-2004 09:04 PM

suse 9.0 "adding and removing users"
 
How do i add and remove users in suse 9.0 ?

DrOzz 06-09-2004 09:08 PM

useradd command
and ..
userdel command

just simply typing them commands will show you the arguments they take ;)

Virtualhate 06-09-2004 09:13 PM

Cool Thank you, worked great :)

Virtualhate 06-09-2004 09:14 PM

well almost worked, how do i set a password for the user i added ?

detpenguin 06-09-2004 10:49 PM

*edit*

i see your point now. it does have to be done through the command line...my apologies...

DrOzz 06-09-2004 10:50 PM

well like i said, if you just type "useradd" in the terminal you would see all the options that that command can take ... so this is your output :
Code:

root@slackbox:~# useradd
usage: useradd  [-u uid [-o]] [-g group] [-G group,...]
                [-d home] [-s shell] [-c comment] [-m [-k template]]
                [-f inactive] [-e expire ] [-p passwd] name
      useradd  -D [-g group] [-b base] [-s shell]
                [-f inactive] [-e expire ]

and as you can see the -p switch is what your looking for .. and if you wanna make adding users a little easier, you can use the adduser command ...

but with the useradd command you can type something along the lines of :
useradd -u 505 -g users -d /home/newuser -s /bin/bash -p newuserpassword NewUser


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