home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!stanford.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!lwvanels
- From: lwvanels@athena.mit.edu (Lucien W. Van Elsen)
- Subject: Re: Enabling/disabling root logins on a terminal?
- In-Reply-To: frank@poiro.enet.dec.com's message of Wed, 26 Aug 1992 14:06:12 GMT
- Message-ID: <LWVANELS.92Aug26224243@fionavar.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: fionavar.mit.edu
- Reply-To: lwvanels@MIT.EDU
- Organization: Massachusetts Institute of Technology
- References: <1992Aug26.140612.25137@rdg.dec.com>
- Date: Thu, 27 Aug 1992 02:42:51 GMT
- Lines: 40
-
- frank@poiro.enet.dec.com (Frank O'Neill) writes:
- > The getttyent()
- > routine gets a tty description file entry which has a format
- > described in ttyent.h and includes the TTY_ON and TTY_SECURE
- > bits. What file does getttyent() access to find this information?
-
- At the root of things, the value of the ty_status information is all stored
- in the ODM, in the CuAt class- if you do an
-
- odmget -q "name = tty0 and attribute = login" CuAt
-
- you'll get the entry whose value will be disable, enable,share, or delay,
- which correspond to 0, TTY_ON, ENABLE_SHARE, and ENABLE_DELAY. However,
- this isn't quite the whole story; it is acutally the entry in /etc/inittab
- that determines if getty (and what sort) is run on a particular tty.
- Unless you really know what you're doing, though, you shouldn't edit these
- files by hand; instead, use chdev (or the smit interface to it) to change
- the status of the tty.
-
- > It seems that when I use SMIT to add a TTY, it creates the file
- > /dev/tty*, and I can set the Enable LOGIN bit for that TTY using
- > the Change/Show characteristics of a TTY. But how do you enable
- > or disable the SECURE bit?
-
- I've never figured out how to get it to report the TTY_SECURE bit as set,
- even when I could log via that port as root. This is really no shortcoming,
- though, since it appears that no AIX programs look at the value of that bit.
- This is because there is a more general mechanism for controlling which tty's
- any user (not just root) is allowed to log in on, which is given in "ttys"
- entry in the stanza for the user in /etc/security/user. These values can be
- changed via smit (the "Valid TTYs" attribute in the Change User Attributes
- menu) or directly via a command like "chuser ttys="!/dev/tty1" root.
-
- -Lucien
-
- ----------------------------------------------------------------------------
- Lucien Van Elsen | lwvanels@mit.edu
- | The secret to a long life is knowing when
- | it's time to go..
-
-