Solved

How can I create new user in the designated group under Solaris

Posted on 2000-03-22
1
190 Views
Last Modified: 2013-12-27
same as title

Thanx
0
Comment
Question by:clemend
1 Comment
 
LVL 1

Accepted Solution

by:
bhagawatula earned 30 total points
ID: 2646221
If you are using useradd command, just provide the -g groupId of the designated group. If you are manually editing the passwd and shadow files, use the GID in the 4th col. of passwd file.
     
useradd  [ -c comment ]   [  -d dir  ]   [  -e expire  ]   [
     -f inactive ]  [ -g group ]  [ -G group  [ , group ...  ]  ]
     [ -m  [ -k skel_dir ]  ]  [ -u uid  [ -o ]  ]  [ -s shell  ]
     login

     useradd -D  [ -b base_dir ]  [ -e expire ]  [ -f inactive  ]
     [ -g group ]

DESCRIPTION
     useradd  adds a  new  user  entry  to  the  /etc/passwd  and
     /etc/shadow  files.  It  also  creates  supplementary  group
     memberships for the user (-G option) and  creates  the  home
     directory  (-m  option)  for  the user if requested. The new
     login remains locked until the  passwd(1)  command  is  exe-
     cuted.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now