home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!munnari.oz.au!manuel!cs.anu.edu.au!rastaban!steve
- From: steve@cs.anu.edu.au (Steven Ball)
- Subject: Re: Disabling accounts (was: Re: NIS, slave servers...)
- Message-ID: <1992Sep11.005503.10104@cs.anu.edu.au>
- Sender: news@cs.anu.edu.au (USENET News software)
- Nntp-Posting-Host: rastaban
- Reply-To: steve@cs.anu.edu.au
- Organization: Computer Science Department, ANU, Australia
- References: <ivan.715993948@durras>
- Date: Fri, 11 Sep 1992 00:55:03 GMT
- Lines: 58
-
- In article 715993948@durras, ivan@durras.anu.edu.au (Ivan Dean) writes:
- >This thread has moved off into the area of disabling accounts, which is
- >something I have had a bit of experience in.
- > [... stuff deleted ...]
- >However, running an Xterminal with xdm, or a workstation with xdm, means that
- >
- > THEY DON'T NEED A WORKING SHELL TO USE THE SYSTEM !
- >
- > [...]To get around the
- >problem, you need to modify the standard startup sequence for xdm - we did
- >it by running a program called xlogin (see archie for details). xlogin
- >was modified to provide a mechanism for noting that an account was
- >disabled, and printing out an appropriate message.
-
- I'm the guy who actually set all of this up. I *did not* modify xlogin to disable
- account (I modified for other reasons, but that's another story! Stay tuned to
- comp.windows.x for that :-) - I modified Xsession. Xsession now looks to see
- if the user has been disabled. At the moment it does this by looking for a particular
- file in the user's home directory. This file should also be a shell script. The script
- is run and its output is piped into a tool that displays it on the display. Xsession
- then does exit 1. The user's initial shell is also set to this script, thus disabling
- logins (and they get the message) and ftp access. I've tested it , and it works.
-
- Of course a really nice feature is that a stewed ant can shoot them self in the foot
- by creating this file. If one really did care about this then you could put the script
- in a place inaccessible to users.
-
- Also, this is done in Xsession rather than Xstartup since Xstartup runs as root.
- Xsession is more secure.
-
- > Running a "standard"
- >xdm setup does not provide this functionality, and as far as I'm aware,
- >doesn't provide you with any way to disable a user other than altering
- >their password, which of course, doesn't work in certain cases anyway.
- >
-
- At least xdm allows you to easily roll your own.
-
- >In summary, altering a user's password AND shell will disable that account,
- >but the user has no idea what's wrong with their account. Changing one but
- >not the other is generally not sufficient.
- >
- >Disclaimer : I don't know anything about SVR4 yet, so I'm writing about
- >Suns running SunOS 4.1.x, and the X11R5 version of xdm.
- >--
- >
- >-------------------------------------------------------------------
- >Ivan Dean Here : x3261
- >Faculties Computer Unit There : (06) 249 3261
-
-
-
- ---
- Steven Ball, Department of Computer Science, ANU
- E-mail: Steve.Ball@cs.anu.edu.au Ph. (06) 2495146
- Snail-mail: GPO Box 4, CANBERRA CITY ACT 2600, AUSTRALIA
- He's not the messiah, he's a very naughty boy!
-
-