Solved

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

Posted on 2000-03-22
1
193 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 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