home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: avoiding Solaris
- Message-ID: <15492@auspex-gw.auspex.com>
- Date: 13 Nov 92 23:17:41 GMT
- References: <1dtssaINN59p@life.ai.mit.edu> <fVdXweJ@quack.sac.ca.us>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 42
- Nntp-Posting-Host: auspex.auspex.com
-
- >I have looked at the "sysadmin conversion" book published by
- >SunSoft, and I have either found a showstopper or have misunerstood
- >something.
-
- No, I suspect *they* misunderstood something.
-
- >In the 'differences in commands' section, they mention that 'mknod'
- >is no longer a priviledged command.
-
- It's not privileged in SunOS 4.x, either:
-
- bootme$ /usr/etc/mknod phipho p
- bootme$ ls -ldg phipho
- prw-r--r-- 1 guy engineer 0 Nov 13 15:12 phipho
- bootme$ id
- uid=126(guy) gid=100(engineering) groups=100(engineering)
-
- Of course, it doesn't let you create a special file *other* than a FIFO
- special file if you're not super-user:
-
- bootme$ /usr/etc/mknod noway c 0 0
- mknod: must be super-user
-
- Solaris 2.0 seems to exhibit the same behavior:
-
- sloth% /usr/sbin/mknod phipho p
- sloth% ls -ld phipho
- prw-r--r-- 1 guy guest 0 Nov 13 15:14 phipho
- sloth% /usr/sbin/mknod noway c 0 0
- mknod: must be super-user
- sloth% id -a
- uid=126(guy) gid=100(guest) groups=100(guest)
-
- I suspect the authors of that document simply didn't realize that:
-
- 1) the "make a FIFO" function of "mknod()" never *was*
- privileged;
-
- 2) the "make a non-FIFO special file" function of "mknod()"
- still *is* privileged;
-
- or perhaps suffered from some other form of confusion.
-