Solved

Creating a New group in Solaris without Editing Group file

Posted on 2001-07-26
3
277 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

803 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