Solved

Creating a New group in Solaris without Editing Group file

Posted on 2001-07-26
3
278 Views
Last Modified: 2013-12-05
How do you create a new group not user in the etc/group
file without editing and saving the file. Can u do this via the usermod utility or another command line utility.

Have a group I want to create called release to add to the group file.

How would u do this on Solaris via the comman line using a utility.

thanks in advance.

0
Comment
Question by:zipdog44
3 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 50 total points
ID: 6325656
Hi zipdog44,

   You must do this as root.

   you can use a text editor to edit the /etc/group file or:

   type in :

   echo "Group-Name:Group-ID:Members" >> /etc/group

    or,

    type in : admintool <Enter>
    to bring up the adm window to do it.

Regards
   yuzh
0
 
LVL 3

Expert Comment

by:tdaoud
ID: 6325932

On Linux there is a command called "groupadd", I'm not sure if you have the same command on Solaris, but do check.

Tarik
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6326812
Yes, groupadd is on Solaris too.

/usr/sbin/groupadd  [ -g gid  [ -o ]  ] group

-o allows you to reuse an existing GID.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

821 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