home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!mips2!news.bbn.com!usc!sdd.hp.com!caen!batcomputer!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!iagu.itd.adelaide.edu.au!andrewr
- From: andrewr@iagu.itd.adelaide.edu.au (Andrew Rutherford)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Service Accounts running X login
- Message-ID: <8371@sirius.ucs.adelaide.edu.au>
- Date: 30 Aug 92 05:47:28 GMT
- References: <1992Aug25.152709.23868@rz.uni-karlsruhe.de> <1992Aug26.124449.3475@aosg.gsf.dec.com> <BtnzB3.49K@watcgl.uwaterloo.ca> <1992Aug28.143330.11982@vela.acs.oakland.edu>
- Sender: news@ucs.adelaide.edu.au
- Reply-To: andrewr@itd.adelaide.edu.au
- Organization: Information Technology Division, Adelaide University, Australia
- Lines: 28
- Nntp-Posting-Host: iagu.itd.adelaide.edu.au
-
- In article <1992Aug28.143330.11982@vela.acs.oakland.edu>, minnebo@vela.acs.oakland.edu (Brian P. Minnebo) writes:
-
- +In article <BtnzB3.49K@watcgl.uwaterloo.ca> idallen@watcgl.uwaterloo.ca (Ian! D. Allen [CGL]) writes:
- +|>> Are there any possibilities to control the actions of some special accounts
- +|>> after the X window login ?
- +|>
- +|>You can modify the .profile or .cshrc to be a "captive" account so that all
- +|>that you can do is perform a shutdown or exit.
- +|
- +|No you cannot. A user logging in can hit BREAK at just the right
- +|point to cause the .profile or .cshrc to be skipped, allowing a normal
- +|unrestricted login shell. Don't do this.
- +
- +or worse, they can su to the account, which wont execute .profile.
-
- Don't put it in a .profile then. Make the login shell the actual
- program you want them to run, maybe a C program that calls it if
- you've got multiple commands or lots of options. Even a shell script is
- do-able, as the standard "race condition" problem doesn't apply.
-
- Cya,
- Andrew.
-
- /*
- * Andrew Rutherford andrewr@itd.adelaide.edu.au
- * +61 8 228 5669 Real Programmers always confuse Christmas and
- * Room 1060, Adelaide Uni Halloween because OCT 31 == DEC 25 !
- */
-