09-21-2009
do you mean persons in my same group, right ?
Or all groups in which I am ?
7 More Discussions You Might Find Interesting
1. Solaris
hello
How can i change the ip address on my solaris sun 9 server ?
thank you (7 Replies)
Discussion started by: pascalbout
7 Replies
2. Shell Programming and Scripting
Hi,
I would like realize a script that it can change " wc -l" with "wc -l | sed 's/ //g'", but my problem is that i can have
a pipe ,a variable ( many variable different) or a file after wc -l ?how i could test this several case ?
wc -l | cut -d' ' -f1`
if
wc -l ${F} | awk... (1 Reply)
Discussion started by: francis_tom
1 Replies
3. Homework & Coursework Questions
bh,lg.yu.,fgh,ry,.tyl,tyk,ty,ty,ty,. (7 Replies)
Discussion started by: frankycool
7 Replies
4. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
5. Shell Programming and Scripting
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 Replies)
Discussion started by: ust3
0 Replies
6. Shell Programming and Scripting
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (7 Replies)
Discussion started by: ust3
7 Replies
7. SCO
Hello
I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller .
The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver)
What ... (3 Replies)
Discussion started by: flako
3 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)