02-19-2008
Thanks for your help
Thank you for your detailed response. I appreciate your time and it looks like I have a long ways to go before I am going to be able to write effective scripts. Would you be able to recommend textual material I could reference through this learning process ?
Thanks again
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
what does this symbol ~ represent in unix for example....
If i create directories called personal and lab and lab5 and the command chmod 776~/lab5 is issued. What results would i expect to get. basically i know that chmod 776 would prevent others from executing the files in the directory but... (2 Replies)
Discussion started by: BigTool4u2
2 Replies
2. Shell Programming and Scripting
Hi ,
i have few doubts about the braces and spaces which are quite often used:
for instance:
when i try the belo command it will not work
export variable= cat filename
rather when i try the cat command without any space it works fine
export variable=cat filename
and... (3 Replies)
Discussion started by: ahmedwaseem2000
3 Replies
3. Shell Programming and Scripting
Many scripts are executed in the following way.
. /scriptname
Even when the file does not have execute permission, it can be executed this way. How does this work? (6 Replies)
Discussion started by: krishmaths
6 Replies
4. Solaris
this post is related to the arrangements of libraries in a solaris-8 distribution.
i want to build external packages on solaris-8
i need to know why libraries are scattered in a solaris distribution among different below mentioned directories,
please tell me whats the importance ??
/lib... (3 Replies)
Discussion started by: mobydick
3 Replies
5. AIX
Hello... I am getting ready to create a bunch of groups for several of our servers all of which are running Aix 5.3. We really want to keep people away from using the root login and as such the systems have been hardened using aixpert and if it is absolutely needed people must su -.
There are... (1 Reply)
Discussion started by: dgaixsysadm
1 Replies
6. Shell Programming and Scripting
What is the Significance of '{}' \; in UNIX? (2 Replies)
Discussion started by: Shell_Learner
2 Replies
7. Shell Programming and Scripting
What is the significance of the forward slash(/) while specifying a directory?
cp -av /dir/ /opt/
and
cp -av /dir /opt
Does effectively the same job it seems? (2 Replies)
Discussion started by: proactiveaditya
2 Replies
8. Solaris
What is the significance of pfiles?
What is the use of it and how and where to use it?:wall: (2 Replies)
Discussion started by: varunksharma87
2 Replies
9. Shell Programming and Scripting
Hi
I was trying to understand what ':-' means when used with variables
echo ${x:-10}
if
Thanks (4 Replies)
Discussion started by: zulfi123786
4 Replies
10. UNIX for Dummies Questions & Answers
I'm taking a LINUX and UNIX class and we are using bash as the shell in terminal. On my mac-book I use zsh only because my professor had a pretty cool start-up file for it.
It has benefited me in becoming familiar with different shells. However, I'm having a hard time understanding the purpose... (4 Replies)
Discussion started by: syregnar86
4 Replies
LEARN ABOUT OSF1
setregid
setregid(2) System Calls Manual setregid(2)
NAME
setregid - Sets the real and effective group ID
SYNOPSIS
#include <unistd.h>
setregid( gid_t rgid, gid_t egid );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
setregid(): XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies the new real group ID. Specifies the new effective group ID.
DESCRIPTION
The setregid() function sets the real group ID of the current process to the value specified by the rgid parameter, and sets the effective
group ID to the value specified by the egid parameter. If the value of rgid is -1, the real group ID is not changed; if the value of egid
is -1, the effective group ID is not changed. The real and effective group IDs may be set to different values in the same call.
Unprivileged users may change the effective group ID to the real group ID; only the superuser may make other changes.
Any supplementary group IDs of the calling process remain unchanged.
RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
The setregid() function sets errno to the specified values for the following conditions:
The value of the rgid egid parameter is invalid or out of range. The current process does not have superuser privilege and a change other
than changing the effective group ID to the real group ID was specified.
RELATED INFORMATION
Functions: getgid(2), setgid(2), setrgid(3), setreuid(2)
Standards: standards(5) delim off
setregid(2)