Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6261
  • Last Modified:

chmod 4755

what is 4 in chmod 4755 /bin/ls  mean
0
teera
Asked:
teera
2 Solutions
 
ahoffmannCommented:
man chmod

4 in this case set the SUID bit, same as chmod u+s
0
 
binary_1001010Commented:
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now