🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10473

Re: 4.0 likes s and S protections

#10473
From: Phil Hammar
Date: Mon, 23 Jan 1989 21:47
22 lines
1632 bytes
In article <801@auspex.UUCP> auspex!guy@uunet.uu.net (Guy Harris) writes:
>X-Sun-Spots-Digest: Volume 7, Issue 98, message 8 of 13
>
>For files with mode, say, "rwsr-xr-x", you never could remove *just* the
>set-GID bit with "chmod 700"; "chmod g-s" is the right way to remove just
>the set-GID bit in every UNIX version since V7. 

Alternatively, one could remove the {set-{UID,GID},sticky} bit with "chmod
0755" if one liked numbers better than letters.  (This works under SunOS
3.4.)

	Phil Hammar
	Sys Admin for AES,
	a division of EPPS,
	a wholly owned subsidiary of Kodak Co
	...!{harvard!adelie,bu-cs!encore}!munsell!jackal

[[ Yes but things changed under 4.0.  Near as I can tell via
experimentation, "chmod" now treats directories as a special case.  The
only way to turn off the setgid bit on a directory is via "chmod g-s ...".
I tried "chmod 0755" and it got the sticky bit but not the setgid bit,
although it works as expected for a plain file.  --wnl ]]
Technical Details
Message-ID: <1842@nickerson.munsell.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!rice!sun-spots-request
References: <106501@Wayne-MTS> <801@auspex.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!rice!sun-spots-request
From: jackal@munsell.UUCP (Phil Hammar)
Newsgroups: comp.sys.sun
Subject: Re: 4.0 likes s and S protections
Message-ID: <1842@nickerson.munsell.UUCP>
Date: 23 Jan 89 21:47:40 GMT
References: <106501@Wayne-MTS> <801@auspex.UUCP>
Sender: usenet@rice.edu
Organization: Eikonix Corp., Bedford, MA
Lines: 22
Approved: Sun-Spots@rice.edu
Original-Date: 16 Jan 89 15:43:40 GMT
X-Sun-Spots-Digest: Volume 7, Issue 116, message 2 of 13
X-Issue-Reference: v7n98