tburba on Mon, 1 Nov 1999 10:24:26 -0500 (EST) |
This was to be a simple solution. I don't want to change people's login shells. The intent was to inform users that file backup was in progress and to not login to run any applications at this time. mortis@voicenet.com on 11/01/99 09:33:45 AM Please respond to plug@lists.nothinbut.net To: plug@lists.nothinbut.net cc: (bcc: Thomas A Burba/USVISION) Subject: Re: [Plug] log user out at subshell level? Can you change their login shell to a shell script instead of [sh|bash|ksh|csh|zsh|ash|tcsh] that just does the following: ########################################################################### ##### #!/bin/sh cat /some/file/to/see echo '[hit enter]' read exit ########################################################################### ##### Once they login, they'll get the chance to see the file, and then when they hit enter, it will automaticly exit. Save the old passwd file, and restore everything when you're ready for them to have accounts again. k --------------------------------------------------------------------------- --- "No one knows what he can do till he tries." -- Publilius Syrus mortis@voicenet.com http://www.voicenet.com/~mortis --------------------------------------------------------------------------- --- On Mon, 1 Nov 1999 tburba@GLCORPIS01.usvision.com wrote: > > > > > This is for when I need to have all users in a group to get a temporary > message when they log in, hit [enter] and then they are logged out. Single > user mode in this case is not acceptable. Right now, each user's . > bash_profile calls a menu script called /usr/choice. I want to temporarily > switch that script out with a the temporary message script. I don't want to > change .bash_profile itself unless I have to. Thanks. > > > > > bud@buxcom.net on 10/28/99 08:14:32 PM > > Please respond to plug@lists.nothinbut.net > > To: plug@lists.nothinbut.net > cc: (bcc: Thomas A Burba/USVISION) > Subject: Re: [Plug] log user out at subshell level? > > > > > > > Is there any way that I can invoke a command within a subshell (bash) > > > script to log the user out? I don't want to use .bash_profile or shell > > > replacements. TAMIA > > You mean like kill -9 0 > I just read the initial message over again. you said not using > .bash_profile > which made my last suggestion useless. What are you trying to do? > > _______________________________________________ > Plug maillist - Plug@lists.nothinbut.net > http://lists.nothinbut.net/mail/listinfo/plug > > > > > > > > > _______________________________________________ > Plug maillist - Plug@lists.nothinbut.net > http://lists.nothinbut.net/mail/listinfo/plug > _______________________________________________ Plug maillist - Plug@lists.nothinbut.net http://lists.nothinbut.net/mail/listinfo/plug _______________________________________________ Plug maillist - Plug@lists.nothinbut.net http://lists.nothinbut.net/mail/listinfo/plug
|
|