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:
also various others such as -perm 4777 etc etc
but it found nothing obviously. What am I doing wrong?
Hi all
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)
Hi,
How do I find what version of solaris my Sparc system is running(32 bit or 64 bit). Can a 64 bit sparc run 32 bit solaris?
Please let me know
Thanks (1 Reply)
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Hey guys,
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)