Sponsored Content
Full Discussion: Adding user to groups
Top Forums UNIX for Dummies Questions & Answers Adding user to groups Post 302068923 by peteythapitbull on Tuesday 21st of March 2006 07:41:53 PM
Old 03-21-2006
Adding user to groups

How do I add a user to a group? And how do I determine the list of groups to add a user?


Solaris 10 newbie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dynamic user groups

Is it possible to dynamically allocate a new user group to an existing session on Solaris 5.8 I'd like to be able to allow certain users to access a set of scripts for the life of session (preferably there own session not a specific login created for the purpose) by dynamically giving the session... (0 Replies)
Discussion started by: hammer
0 Replies

2. UNIX for Dummies Questions & Answers

User groups

Hi I have a user zak and 4 groups:- oracle stats data archive I want user zak to be part of the oracle and stats group but not be able to view,list anything in data and archive. Also anyone in the data and archive group should not be able to view,list anything in oracle and stats....... (3 Replies)
Discussion started by: Zak
3 Replies

3. Solaris

Adding new groups!!

I want to know how we can add a new group in solaris. As per my understanding this is done by adding a new entry in /etc/groups file (or by using groupadd command which will also add the entry in the groups file). But when I use group command to see the groups to which I belong, it shows my userid... (7 Replies)
Discussion started by: atheek
7 Replies

4. UNIX for Advanced & Expert Users

How to remove UNIX user and groups

I created UNIX groups - oinstall, dba and UNIX user - oracle for the installation of Oracle 10g. But I might did something incorrectly. Oracle user account didn't created properly. How to remove these UNIX groups and user so that I can start over again to create them properly. Thanks. (7 Replies)
Discussion started by: duke0001
7 Replies

5. Solaris

Setting user groups

Hi......... I'm trying to set a group of users to login to do a required super-user tasks without knowing the super-user passwd. For example...a user popodude logs in as self with passwd..system accepts the password & then automatically asks for the super-user account passwd. My goal is... (1 Reply)
Discussion started by: Remi
1 Replies

6. AIX

user & groups

1 - what is the maximum no: of groups a user can be a part of ? 2 - what is maximum no: of users a group can contain ? (6 Replies)
Discussion started by: senmak
6 Replies

7. AIX

Security user Can't change the groups.

Dears Security users in AIX don’t have permission to change the group of the user thru Smitty Users When they try to change the group of the users to any group they'll get permission denied Security profile in Smitty : User... (10 Replies)
Discussion started by: ITHelper
10 Replies

8. AIX

Nested user groups

Is there a command to nest a group in another group in AIX. (2 Replies)
Discussion started by: daveisme
2 Replies

9. UNIX for Advanced & Expert Users

How to get User list from different groups and root?

Hi all, I want to list out users from different group and root, who are roaming in our group or root as a user. how can i list out this users ? (1 Reply)
Discussion started by: kpatel97
1 Replies

10. HP-UX

Creating user groups that are persistent

Hi, I need to modify the user 'munfai' by adding it into groups bscs, oinstall, dba. I use this command as user root to add the user into the mentioned groups : # usermod -G bscs,oinstall,dba munfai I can thereafter see the id in the groups : # id munfai uid=258(munfai) gid=20(users)... (2 Replies)
Discussion started by: anaigini45
2 Replies
groupadd(1M)															      groupadd(1M)

NAME
groupadd - add a new group to the system SYNOPSIS
gid group DESCRIPTION
The command creates a new group on the system by adding the appropriate entry to the file. The command must be used with the group argu- ment, which is the name of the new group. The name consists of a string of printable characters that may not include a colon or newline Refer to usergroupname(5) to understand the functionality changes with the Numeric User Group Name feature. Options The command uses the following options: Specify the group ID for the new group. gid must be a non-negative decimal integer less than as defined in the header file. By default the next available unique group ID in the valid range is allocated. Group IDs in the range 0-99 are reserved. Allow the gid to be non-unique (that is, a duplicate). NIS The command is aware of NIS user entries. Only local groups may be added with this command. Attempts to add an NIS group will result in an error. NIS groups must be administered from the NIS server. If is used on a system where NIS is installed, it may fail with the error (return value 9) if the group specified is not present in the local file, but is an NIS group (see group(4)). NIS groups are also checked when verifying uniqueness of the new gid, which may result in the error (return value 4). RETURN VALUE
The command exits with one of the following values: No error. Invalid command syntax. Invalid argument supplied to an option. gid is not unique (when is not used). group is not unique. Cannot modify the file. file or file busy. Another command may be modifying the file. Unable to open file or file is non-existent. EXAMPLES
Add the group to the file. Add the group to the file with the group ID as long as no group currently exists with a group ID of WARNINGS
Because many users may try to write the file simultaneously, a password locking mechanism was devised. If this locking fails after subse- quent retrying, terminates. FILES
SEE ALSO
users(1), groupdel(1M), groupmod(1M), logins(1M), useradd(1M), userdel(1M), usermod(1M), group(4), usergroupname(5). STANDARDS CONFORMANCE
groupadd(1M)
All times are GMT -4. The time now is 02:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy