home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.admin
- Subject: Re: mysterious permission mode change
- Date: 17 Dec 1992 05:04:23 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 16
- Message-ID: <1gp1onINNi3b@early-bird.think.com>
- References: <9212150931.aa11896@q2.ics.uci.edu>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <9212150931.aa11896@q2.ics.uci.edu> ahalim@ics.uci.edu writes:
- >I have noticed that after changing the permission bits for a char device
- >[like /dev/ttyb] to 666 from 600, the systems will turn the mode back
- >to 600 automatically. This is quite strange and annoying.
- >Is this somekind of security feature of SunOS (4.1.2) or something else?
-
- When a tty device is closed, its owner is set back to root, its permissions
- are restored to this default, and the terminal modes are set to the
- default. This is so that changes made by one user (e.g. when using the
- mesg(1) or stty(1) commands) don't affect the next user to login on that
- port.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-