Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

users and groups

Status
Not open for further replies.

Nutounix

ISP
Sep 18, 2003
17
US
Can anyone tell how to add new users and groups to my system?
 
admintool is a gui interface that allows you to add both...

If you don't want to use it, look at:

man useradd



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
Example:
#create "abc" group and group id is 100.
groupadd -g 100 abc

#create "tempuser" with user id 10000(-u), group id 100(-g), home directory /export/home/tempuser(-d), create directory if not exist(-m), shell(-s), comment(-c).
useradd -u 10000 -g 100 -d /export/home/tempuser -m -s /bin/ksh -c "Temp User" tempuser

tikual
 
Having trouble launching admintool. I am getting error can't open terminal.

If you can give me some help with the syntax. I have a little trouble understanding everything on the man pages.

Example I want to add a user give him a password a home directory and add him to a group.

Thanks
 
If you right click on the mouse and under Tools click on admintool.



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
Thanks tikual! Thats what I needed. After I created the user I su to that user and checked which directory I was in and it wasn't the directory I specified with -d command. Why? How can I now set a password for this user?
 
To set the passwd, as root type passwd username



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
First, make sure the directory not owned by other user. Second, make sure the option -m has been provided. Third, for us more easy to help you. Let us know what you have typed.
Last, change password not related to user home directory. As dragon's say, use 'passwd' to change it.

tikual
 
Might consider installing webmin. Works well and makes admin a lot easier, plus a nice logging feature to see the command line webmin runs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top