Tuesday, May 7, 2013

Using chmod

Just bumped into an issue with chmod.  I tried to put setuid permissions in a file by doing chmod g+s but instead of giving me the small 's' permission.  It was giving me a capital 'S' permission.

Turns out, capital 'S' means the underlying 'x' permission is not set.  So, doing chmod g+x fixes this so the capital 'S' turns into a small 's'.

No comments: