All Questions

Tagged with
Filter by
Sorted by
Tagged with
8
votes
2answers
691 views

Why does the setuid bit work inconsistently?

I wrote the code: // a.c #include <stdlib.h> int main () { system("/bin/sh"); return 0; } compiled with command: gcc a.c -o a.out added setuid bit on it: sudo chown root.root a.out sudo ...
0
votes
1answer
9k views

sudo must be owned by uid 0 and have the setuid bit set

I have changed my ubuntu super password by recovery mode after that i can't run my sudo command in normal user i have attempted to crack my previous password in Recovery mode i followed this ...
6
votes
1answer
563 views

Why doesn't Ubuntu use capabilities on ping?

After running, $ ls -l /bin/ping -rwsr-xr-x 1 root root 34740 Nov 5 2012 /bin/ping I wonder, why doesn't Ubuntu use capabilities (i.e. raw sockets) rather than setuid?
4
votes
1answer
2k views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore [duplicate]

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 I ...