What are setuid/setgid in relation to file permissions?
Answers were Sorted based on User's Feedback
Answer / chinavenkanna babu
setuid:When setuid permission is set to an executable
file,if the user runs this executable file he is granted
access based on the owner of the file instead of who
started an executable file.we can set the setuid permission
on file # chmod 4555 executable_file
setgid:when setgid permission is set to the file in a
directory,the file belongs to the same group in which the
directory is a member.we can set the setgid permission on
file # chmod 2555 executable_file
| Is This Answer Correct ? | 13 Yes | 7 No |
Answer / p kumar
Setuid:If it is set on an executable file,cause it to run
under the user...
For example:/etc/passwd file is owned by root whici have
only read permision .....It will store all uaers encrypted
password..but users can still change their passwprd using
#passwd command ,,,bcz set uid bit is set for this file,,,
#ls -l /etc/passwd====it will show -wr--------s
#chmod u+s dirname
Stickybit:If it is set on a directory only the owner of a
file can delate the file.......only 4 directories...
/tmp dir iset by sticky bit....bcz any users can create &
delete file....but 2 prevent users from deleting each
others file...
#chmod o+t dirname....
| Is This Answer Correct ? | 6 Yes | 1 No |
How do you log in to a remote Unix box?
what is RAID 1+0?
In Unix inter process communication take place using?
How to setup display for a remote system?
How do you list the files in an UNIX directory while also showing hidden files?
How to list only the directories inside a directory?
What is the number of the masked code ee@?
2 Answers Accenture, Amazon, Amdocs,
What UNIX command will control the default file permissions when files are created?
What is mean by Mac os? Why it is named as like that? Which purprose it is using? Please answer me. Advance thanks.
What is file constructing in UNIX/AIX ?
interprocess command in unix be achieved by a)pipes b)messages c)semaphores d)shared memory e)all
What are the events done by the Kernel after a process is being swapped out from the main memory?