Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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.:

747 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

11 Experts available now in Live!

Get 1:1 Help Now