01-29-2008
To make this setuid executable you have to say,
chmod 4700 executable
Also,
s - setuid and executable
S- setuid and not-executable,
Thanks
Nagarajan G
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
Discussion started by: cybertechmkteo
1 Replies
2. UNIX for Advanced & Expert Users
:confused: Hi All
Can anyone help me in finding the answer of the question mentioned below.
What is the difference between Unix & linux ?
Thanks in Advance to all
CSaha (1 Reply)
Discussion started by: csaha
1 Replies
3. Shell Programming and Scripting
For executing a shell script, i know 2 ways:
1) using sh command
2) making the script file executable & then use ./
But i can across another way for executing the scripts... using ". ./"
I tried this way.. but i was able to understand the difference between "./" and ". ./"
I would be very... (2 Replies)
Discussion started by: abishekmag
2 Replies
4. UNIX for Dummies Questions & Answers
I've come stuck when I was making sure the hour of the day was not been two times so that the rest of the script could not be executed.
Seems simple enough.
I used the -a to join the two conditions together and it would run if the conditions was t/f ( it is only supposed to run if was t/t).... (3 Replies)
Discussion started by: spookyrtd99
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
What's the difference in taking inputs from <stdin> and terminal.
When by default <stdin> points to terminal itself.
Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
6. Solaris
Hello Everybody
I would like to know any major difference between sudo & RBAC as I am bit familiar with RBAC but not with sudo (2 Replies)
Discussion started by: girish.batra
2 Replies
7. Linux
Hi All,
Can anyone tell me the difference between flavour & distribution?
As we say that - AIX, Linux, Solaris etc are the flavours of Unix & fedora, ubuntu, suse etc are the distributions of linux.
Can anyone explain me, why it is called so.
Thanks in advance.
Amol (6 Replies)
Discussion started by: Amol21
6 Replies
8. UNIX for Dummies Questions & Answers
Can anyone explain me difference between setuid and sticky bit? and also between setuid and chown? (3 Replies)
Discussion started by: kkalyan
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please help me understanding what the difference between the below two?
1. script.sh &
2. nohup script.sh & (2 Replies)
Discussion started by: Anupam_Halder
2 Replies
10. UNIX for Beginners Questions & Answers
Just learning about the privilege escalation method provided by setuid. Correct me if I am wrong but what it does is change the uid of the current process to whatever uid I set. Right ?
So what stops me from writing my own C program and calling setuid(0) within it and gaining root privileges ?
... (2 Replies)
Discussion started by: sreyan32
2 Replies
LEARN ABOUT OPENDARWIN
issetugid
ISSETUGID(2) BSD System Calls Manual ISSETUGID(2)
NAME
issetugid -- is current executable running setuid or setgid
SYNOPSIS
#include <unistd.h>
int
issetugid(void);
DESCRIPTION
The issetugid() function returns 1 if the process was made setuid or setgid as the result of the last execve() system call. Otherwise it
returns 0.
This system call exists so that library routines (inside libc, libtermlib, or other libraries) can gaurantee safe behavior when used inside
setuid or setgid programs. Some library routines may not be passed sufficient information to know if the current program was started setuid
or setgid because higher level calling code may have made changes to the uid or the euid. In particular, it is wise to use this call to
determine if a pathname returned from a getenv() call may safely be used to open() the specified file.
issetugid() is unaffected by calls to setuid(), fork(), and other such calls. It is only controlled by execve().
ERRORS
The issetugid() function is always successful, and no return value is reserved to indicate an error.
SEE ALSO
execve(2), setuid(2), seteuid(2,) setgid(2), setegid(2)
HISTORY
A lstat() function call appeared in OpenBSD 2.0
OpenBSD 2.0 August, 25 1996 OpenBSD 2.0