Xref: utzoo comp.lang.c:6887 comp.unix.questions:5317 Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!oliveb!sun!gorodish!guy From: guy@gorodish.Sun.COM (Guy Harris) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: system (and mkdir) Message-ID: <40510@sun.uucp> Date: 30 Jan 88 00:28:23 GMT References: <127@dcrbg1.UUCP> <9472@ccicpg.UUCP> <2771@cbdkc1.ATT.COM>, <449@cpsc6b.cpsc6a.att.com> Sender: news@sun.uucp Followup-To: comp.unix.questions Lines: 20 (This long ago ceased to be a C-related discussion; it is now a UNIX-related discussion. It is now being redirected to comp.unix.questions.) > Actually, there is not much reason for worrying about whether or not > there is a library function for mkdir on most (all?) System V boxes, > since the mkdir system call is reserved for the super user alone. WRONG. It is not a privileged system call in S5R3. > In the standard System V world, you will find that even the 'mkdir' command > is setuid to root. Not in S5R3.1, at least, and probably not in S5R3. On the 3B2/400s we have here, running S5R3.1, "/bin/mkdir" is not set-UID, and it works just fine. In S5 systems *prior* to S5R3, it is set-UID "root" because it has to use the privileged "mknod" system call. Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com