bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chmod problem


From: Brian Dessent
Subject: Re: chmod problem
Date: Wed, 05 Sep 2007 04:37:31 -0700

John Gatewood Ham wrote:

> I was under the impression 0700 was the octal code and would thus
> result in 0700 permissions, not leaving 2700 permissions.  How
> can I use the octcal code to get 0700 permissions for a directory
> with 2700 permissions?  I tried 00700 but that didn't matter.  I know
> I can do 'chmod g-s testme' but since I can set the setgid flag
> with octal codes I would like to be able to unset the setgid flag
> with octal codes as well.  I was able to achieve this in 2 steps
> with 'chmod 0 testme' followed by 'chmod 0700 testme'.  Can it be
> done in 1 step using an octal number?

Read these threads for the past history on this behavior:

http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00125.html
http://lists.gnu.org/archive/html/bug-coreutils/2007-05/msg00132.html

Brian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]