Path: utzoo!attcan!uunet!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.internals Subject: Re: What does SUID, SGID and Sticky bits do on inappropriate files? Keywords: Set-UID, Set-GID, Sitcky-Bit, Special Files Message-ID: <1990Dec25.155758.8227@mp.cs.niu.edu> Date: 25 Dec 90 15:57:58 GMT References: <1990Dec25.032451.25017@gpu.utcs.utoronto.ca> Organization: Northern Illinois University Lines: 21 In article <1990Dec25.032451.25017@gpu.utcs.utoronto.ca> jmason@gpu.utcs.utoronto.ca (Jamie Mason) writes: > Also what are the effects of the Set-User-ID and Set-Group-ID >bits on files which cannot be properly said to be *EXECUTED*? (Though the X >permissions are set) For instance Directories, but also the other types >of special files named above? > Recent versions of 'sendmail' use the suid/sgid bits when mailing to a file. That is, when an alias in your aliases file (or in a user .forward) lists a file name to which mail is to be appended. In that case 'sendmail' uses the owner and/or group of the file while writing. Note that the suid and/or sgid bits must be set, but NO execute bits may be set for this to work. 'sendmail' refuses to mail to a file with any execute bits set. (Observed behavior documented in the source code of sendmail-5.64,5.65) -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940