home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / admin / 8250 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.6 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: avoiding Solaris
  5. Message-ID: <15492@auspex-gw.auspex.com>
  6. Date: 13 Nov 92 23:17:41 GMT
  7. References: <1dtssaINN59p@life.ai.mit.edu> <fVdXweJ@quack.sac.ca.us>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 42
  11. Nntp-Posting-Host: auspex.auspex.com
  12.  
  13. >I have looked at the "sysadmin conversion" book published by
  14. >SunSoft, and I have either found a showstopper or have misunerstood
  15. >something.
  16.  
  17. No, I suspect *they* misunderstood something.
  18.  
  19. >In the 'differences in commands' section, they mention that 'mknod'
  20. >is no longer a priviledged command.
  21.  
  22. It's not privileged in SunOS 4.x, either:
  23.  
  24.     bootme$ /usr/etc/mknod phipho p
  25.     bootme$ ls -ldg phipho
  26.     prw-r--r--  1 guy      engineer        0 Nov 13 15:12 phipho
  27.     bootme$ id
  28.     uid=126(guy) gid=100(engineering) groups=100(engineering)
  29.  
  30. Of course, it doesn't let you create a special file *other* than a FIFO
  31. special file if you're not super-user:
  32.  
  33.     bootme$ /usr/etc/mknod noway c 0 0
  34.     mknod: must be super-user
  35.  
  36. Solaris 2.0 seems to exhibit the same behavior:
  37.  
  38.     sloth% /usr/sbin/mknod phipho p
  39.     sloth% ls -ld phipho
  40.     prw-r--r--   1 guy      guest          0 Nov 13 15:14 phipho
  41.     sloth% /usr/sbin/mknod noway c 0 0
  42.     mknod: must be super-user
  43.     sloth% id -a
  44.     uid=126(guy) gid=100(guest) groups=100(guest)
  45.  
  46. I suspect the authors of that document simply didn't realize that:
  47.  
  48.     1) the "make a FIFO" function of "mknod()" never *was*
  49.        privileged;
  50.  
  51.     2) the "make a non-FIFO special file" function of "mknod()"
  52.        still *is* privileged;
  53.  
  54. or perhaps suffered from some other form of confusion.
  55.