home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!ut-emx!emx.utexas.edu!hartmans
- From: hartmans@npc.ece.utexas.edu (Sam Hartman)
- Newsgroups: comp.unix.aix
- Subject: Re: Inhibit root login on pty's ?
- Message-ID: <HARTMANS.93Jan23215706@npc.ece.utexas.edu>
- Date: 24 Jan 93 02:57:06 GMT
- References: <HHViXB7w165w@samhh.hanse.de> <C11DsI.1CHn@austin.ibm.com>
- Sender: news@ut-emx.uucp
- Organization: The University of Texas at Austin
- Lines: 54
- In-reply-to: konopik@konopik.austin.ibm.com's message of 18 Jan 93 06:24:18 GMT
-
-
- >>>>> On 18 Jan 93 06:24:18 GMT, konopik@konopik.austin.ibm.com (Brad Konopik) said:
-
- In article <C11DsI.1CHn@austin.ibm.com> konopik@konopik.austin.ibm.com (Brad Konopik) writes:
-
- es> In article <HHViXB7w165w@samhh.hanse.de> muehlenw@samhh.hanse.de (Stefan A. Muehlenweg) writes:
- >Hi Folks,
- >
- >does somebody know, how I can inhibit direct login as 'root' from another
- >place as console?
- >
-
- es> the following entry to the stanza...
-
- es> ttys = /dev/console
-
- es> This allows only login from the console.
-
- >
- >Many thanks for your help.
- >PM is welcome.
- >
- >Stefan
- >
- > ---
- > Stefan A. M"uhlenweg muehlenw@samhh.hanse.de
- > D-W-2000 Hamburg 73, Liliencronstr. 6, Phone: +49 (40) 6 77 60 97
-
-
- es> --
- es> internet: konopik@austin.ibm.com | Brad Konopik
- es> uunet: uunet!austin.ibm.com!konopik | IBM AIX Porting Center
- es> ibmvnet: KONOPIK at AUSTIN | Austin, Texas
- I see two problems with this solution. First, it tends to
- indicate that there is no way of accomplishing the same result from
- smit. Under smit users, there is a ttys field for each user.
-
- The second problem is much more serious: not only does it
- prevent login as root from anywhere besides the console, but at least,
- when I tried it, it also prevents users from using su anywhere besides
- console. I cannot think of an easy solution to the problem; you could
- write an authentication method, which would somehow find out if it was
- being called from su or login and would apply tty restrictions (stored
- in a different place than the standard AIX tty restrictions) only to
- logins. You could simply disable remote logins (including telnets),
- which might be exactly what you need if you don't have any
- direct-attached terminals besides the console. To do this:
- smit chuser
- Enter root at the user name prompt, press enter, go down to "user can
- rlogin?", and select false. Alternatively, you can insert
- "rlogin=false" in /etc/security/user in the "root" stanza.
-
- There really should be a better way of handling this situation
- for those who do have terminals connected directly to their systems.
-