For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2004 > Re: chmod: Why must "g+s" be specified symbolically (at least in









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: chmod: Why must "g+s" be specified symbolically (at least in
Rich Teer

2004-10-22, 8:56 pm

On Fri, 22 Oct 2004, Kenny McCormack wrote:

> Questions
> 1) Why is this?


IIRC, it was done to help prevent finger trouble. I.e., you have
to go that extra step if you want to change permission AND set
the SGID bit.

--
Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming"

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
Chris Thompson

2004-10-22, 8:57 pm

In article <Pine.SOL.4.58.0410221403000.17681@zaphod.rite-group.com>,
Rich Teer <rich.teer@rite-group.com> wrote:
>On Fri, 22 Oct 2004, Kenny McCormack wrote:
>
>
>IIRC, it was done to help prevent finger trouble. I.e., you have
>to go that extra step if you want to change permission AND set
>the SGID bit.


It's a trigger guard that has _long_ outlived its usefulness.

Chris Thompson
Email: cet1 [at] cam.ac.uk
Steve Graegert

2004-10-22, 8:57 pm

Rich Teer wrote:
> On Fri, 22 Oct 2004, Kenny McCormack wrote:
>
>
>
>
> IIRC, it was done to help prevent finger trouble. I.e., you have
> to go that extra step if you want to change permission AND set
> the SGID bit.
>


I don't agree to that. You can either use the command

% chmod 2644 file

or

% chmod u+rw,g+s

The result is the same.

\Steve
Beardy

2004-10-23, 3:56 am

Beardy wrote:
> Rich Teer wrote:
>
>
> Yup - you have to be pretty determined/certain to hold the shit key down
> long enough to generate "+". That shows commitment enough to change the
> SGID bit and/or perms ;-)
>


shi*f*t key, mummy ;-)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com