9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
Dear all experts in this forum,
I have faced a audit issue as auditor told that we should not have SUID on /bin/su. As I have checked using Google, I found most of the site only telling that /bin/su should have the permission bit as -rwsr-xr-x but never explain why /bin/su need this permission... (4 Replies)
Discussion started by: kwliew999
3. UNIX for Advanced & Expert Users
I have a file system with permissions:
drwxrwsr-x 49 pwcenter pwce1 4096 01 May 17:00 InFiles
Can someone explain the real significance of the 's' setting for group users please?
Cheers (3 Replies)
Discussion started by: Grueben
My system is Debian-503-amd64. After I installed the "lpr" package, I found that some files with SUID bit come from this package. As:
ls -l /usr/bin/lp*
-rwsr-sr-x 1 root lp 31800 2008-05-20 /usr/bin/lpq
-rwsr-sr-x 1 root lp 28504 2008-05-20 /usr/bin/lpr
-rwsr-sr-x 1... (1 Reply)
Discussion started by: ZR_Lang
5. UNIX for Dummies Questions & Answers
I'm writing a script that will search for files with the SUID bit turned on, and put the list in a file called id.txt
i read that files with the SUID bit turned on are chmod'd to 4000, so i tried:
find / -perm 4000 > id.txt
also various others such as -perm 4777 etc etc
but it found nothing... (1 Reply)
Discussion started by: SoVi3t
6. UNIX for Advanced & Expert Users
Senario: I have previleges to edit a file F but User B does not have sufficient privs to edit it.
In order for B to edit it I tried an indirect way. I created a script to edit F and SUID this script so that B can execute it with the privs of me. But this is not working . can some one help... (3 Replies)
Discussion started by: Pankaj Mishra
7. UNIX for Advanced & Expert Users
I have two file in my directory. "catter" file contains "cat ./file". And "file" contails "Hi ashish". I have SUID bit set for catter file. But when a different user in my group runs file catter, shell displays "Permission denied" message.
I just want to know can use of suid bit be... (3 Replies)
Discussion started by: shriashishpatil
8. UNIX for Dummies Questions & Answers
what is SUID ? can someone explain or point me to a link ?
simon2000 (2 Replies)
Discussion started by: simon2000
I'm getting file info through stat( char *filename, struct stat *buf)
Taking all the file attributes to buf->st_mode,
How can i check the suid bit in there, if suid bit mask is 0004000??
Thank you all (1 Reply)
Discussion started by: solvman