<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in UNIX: advanced octal file permissions with chmod | UNIX | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Mon, 31 Jan 2005 13:02:51 -0000</lastBuildDate><item><title>Re: UNIX: advanced octal file permissions with chmod | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/697/unix-advanced-octal-file-permissions-with-chmod/#comment-2768721</link><description>Unices and applications use the setgid and setuid bits so the octal may need to be 4 digits, especially if using UniCenter or AIX.&lt;br&gt;AIX directories often have setgid set sometimes.&lt;br&gt;&lt;br&gt;Using chmod 0755 or 0750 if hardening is needed.&lt;br&gt;remove setgid from dir with symbolic representaion &lt;br&gt;drwxrws---   ie in octal 2750 change to safer nonsetgid&lt;br&gt;drwxrwx---   ie in octal 0750&lt;br&gt;with&lt;br&gt;chmod 0750 dirname&lt;br&gt;&lt;br&gt;Usual ownership requirements apply.&lt;br&gt;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.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Denarius</dc:creator><pubDate>Mon, 31 Jan 2005 13:02:51 -0000</pubDate></item></channel></rss>