10-18-2011
Your question is unclear, please restate giving an example of what it is you want to do and (ideally) a reason for ..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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 (1 Reply)
Discussion started by: peteythapitbull
1 Replies
3. UNIX for Dummies Questions & Answers
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
4. UNIX for Advanced & Expert Users
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
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
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
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. UNIX for Dummies Questions & Answers
hi all
i am new to solaris
how to add a user to multiple(secondary) groups.
user :anna
Groups : delhi ,mumbai,pune
i need like this in cat /etc/group
delhi::anna
mumbai::anna
pune::anna
i tried using
usermod -a -G hyd anna
that does int work
how to delete user from group... (3 Replies)
Discussion started by: kalyankalyan
3 Replies
9. UNIX for Advanced & Expert Users
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
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
LEARN ABOUT OSF1
initgroups
initgroups(3) Library Functions Manual initgroups(3)
NAME
initgroups - Initializes concurrent group set
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
int initgroups ( char *user, gid_t base_gid );
PARAMETERS
Specifies the user whose groups are to be used to initialize the group set. Specifies an additional group to include in the group set.
DESCRIPTION
The initgroups() function reads the defined group membership of the specified user and sets the concurrent group set of the current process
to that value. The base_gid parameter is always included in the concurrent group set, and is normally the principal user's group. If the
user is in more than NGROUPS_MAX groups, only NGROUPS_MAX groups are set, including the base_gid group.
CAUTION
The initgroups() function uses the sia_get_groups() function to set up the group array. If the program that invokes initgroups() uses any
of these functions, then calling initgroups() overwrites the static group structure.
RETURN VALUES
Upon successful completion, the initgroups() function returns 0 (zero). If the initgroups() function fails, 1 is returned and errno is set
to indicate the error.
ERRORS
If the initgroups() function fails, errno may be set to the following value: The calling process does not have the appropriate privilege in
its current effective privilege set.
RELATED INFORMATION
Functions: getgroups(2), setgroups(2), getgid(2) sia_get_groups(3)
Commands: groups(1) delim off
initgroups(3)