Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

While i run ls -l command on /usr/bin/sudo, it shows

$ ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 121144 Feb 28  2013 /usr/bin/sudo

What does the s permission means for this sudo file?

share|improve this question
    
@rusty you can be able to revert back the close vote. –  Avinash Raj Mar 8 at 16:54
add comment

1 Answer 1

up vote 2 down vote accepted

s(setuid) means set user ID upon execution. If setuid bit turned on a file, user executing that executable file gets the permissions of the individual or group that owns the file.

$ ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 121144 Feb 28  2013 /usr/bin/sudo

In this s permission was given to owner, so it represents the file is executable and set-user-ID mode is set.

Source

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.