chmod 4755

what is 4 in chmod 4755 /bin/ls  mean
teeraAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
binary_1001010Connect With a Mentor Commented:
it means set user ID on executing.

The general attributes are: set user id on executing (setuid), set group id on executing (setgid), and the sticky bit. These attributes can be set with the command chmod using either method :



chmod u+s - set the setuid bit.
chmod g+s - set the setgid bit.
chmod u+t - set the sticky bit or directories

or numerically:

chmod 4777 - setuid and read/write/execute for everyone.
chmod 2777 - setgid and read/write/execute for everyone.
chmod 1777 - set sticky bit and read/write/passthrough on a directory.
0
 
ahoffmannConnect With a Mentor Commented:
man chmod

4 in this case set the SUID bit, same as chmod u+s
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.