`setuid` is a file permission flag under Unix-like systems that will run an executable with the file owner's permissions rather than the invoking user's. On some systems (FreeBSD), it further works identically to the related `setgid` flag on directories, causing new files to inherit the directory's permissions rather than the current user's.
Questions tagged [setuid]
254 questions
1
vote
0 answers
Use adjtime() as non priviledged user
I am running CentOS 5.4 and was wondering if there is any way of using the "adjtime()" system call as a non-root user.
Thanks in advance, really appreciate it

GKK
- 43
- 1
- 5
1
vote
0 answers
Setting/Saving UISwitch State using NSUserDefaults Proofread
Developing for a jailbroken device.
I've looked here for a soultion to my problem. Using NSUserDefaults for storing UISwitch state but people say alot of the codes don't work.
I'm using a UISwitch to load/unload a launch daemon for iOS. I've gotten…

CokePokes
- 941
- 3
- 12
- 25
0
votes
1 answer
How to set the setuid bit in a program of a non-root user?
I am trying to make a python script executable with the setuid bit set. The program, belonging to user 'bgmc', must create some files in the directory '/home/bgmc', but is called by another user, 'client'. Indeed, I don't want user 'client' to…

sarah vb
- 149
- 2
- 12
0
votes
1 answer
popen fails when called after seteuid(0)
My C code does a
seteuid (euid);
popen("/root/bin/iptables ....", "r");
and it fails even if I call with seteuid(0). (The executables has setuid on).
It seems that seteuid and popen do not work together.
When popen called it prints in stderr the…

cateof
- 6,608
- 25
- 79
- 153
0
votes
2 answers
Setting a dedicated user/password for csh scripts using "db2 connect to table" on Linux 2.6 / IBM DB2 v9.7
We have many legacy csh scripts that connect to our db2 database using "db2 connect to " command. They do NOT use "db2 connect to user