Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 16:54
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.


share|improve this answer

Your Answer


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.