DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

UNIX: advanced octal file permissions with chmod | UNIX | Tech-Recipes

Started by qdideas · 9 months ago

No excerpt available. Jump to website »

1 comment

  • Unices and applications use the setgid and setuid bits so the octal may need to be 4 digits, especially if using UniCenter or AIX.
    AIX directories often have setgid set sometimes.

    Using chmod 0755 or 0750 if hardening is needed.
    remove setgid from dir with symbolic representaion
    drwxrws--- ie in octal 2750 change to safer nonsetgid
    drwxrwx--- ie in octal 0750
    with
    chmod 0750 dirname

    Usual ownership requirements apply.
    Note it is possible to get uppercase S appearing in ls -l output if setgid is set but no execute permissions are set. it means setgid is ineffective.

Add New Comment

Returning? Login