Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

813 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

13 Experts available now in Live!

Get 1:1 Help Now