home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!coplex!trebor!root
- From: root@trebor.uucp (Bob Stockler)
- Subject: Re: a simple question about rm
- Organization: Bob Stockler
- Distribution: usa
- Date: Thu, 07 Jan 1993 01:22:44 GMT
- Message-ID: <1993Jan07.012244.12868@trebor.uucp>
- References: <C0DwyB.5Ht@news.cso.uiuc.edu> <1993Jan5.175040.483@ll.mit.edu> <C0ELJK.G8z@news.cso.uiuc.edu>
- Lines: 27
-
- In <C0ELJK.G8z@news.cso.uiuc.edu> jdg41088@uxa.cso.uiuc.edu (Pickaxe) writes:
-
- >yasu@ll.mit.edu (Alan Yasutovich) writes:
-
- >> Here's another one. Why can root remove stuff if
- >> all permissions are off. I did a test once to see if
- >> I could use this as a mask, and it failed.
-
- >I think that's because permissions don't apply to root. They can do anything
- >they want becuase root is god.
-
- It can be very dangerous to operate as 'root', or to write shell scripts
- to be run by "cron" (perhaps as 'root') without understanding exactly how
- your shell will behave in any certain circumstances.
-
- For instance, how will "test" respond to its various switches if 'root'
- is the user? The only way to tell is to try it out in experimental
- situations before using it. The privileges and power of 'root' are so
- great that things one would assume would work as expected don't.
-
- I got bit by this once, where I used "test" (actually [...]) in a "cron"
- run script, and I lost half of my 'root' filesystem's files.
-
- Try it, before you buy it, has since been my motto.
-
- --
- Bob Stockler bob@trebor.uucp CIS: 72726,452
-