Thread View: comp.sys.next.misc
2 messages
2 total messages
Started by Eric A. Litman
Sat, 08 Aug 1992 23:58
Loginwindow agruments
Author: Eric A. Litman
Date: Sat, 08 Aug 1992 23:58
Date: Sat, 08 Aug 1992 23:58
9 lines
835 bytes
835 bytes
Does loginwindow pass arguments to Login/LogoutHook? Specifically, I'd like to be able to exec certain processes as root within the system *Hook files, while others would run under the uid of the current user. Any thoughts on this? -- Eric A. Litman #import <std/disclaimer.h> | NeXTMail, MIME accepted - please U. of Maryland, NeXT Campus Consultant | indicate in Subject line.
Re: Loginwindow agruments
Author: David Lemson
Date: Sun, 09 Aug 1992 01:25
Date: Sun, 09 Aug 1992 01:25
20 lines
1425 bytes
1425 bytes
elitman@rac2.wam.umd.edu (Eric A. Litman) writes: >Does loginwindow pass arguments to Login/LogoutHook? Specifically, I'd like >to be able to exec certain processes as root within the system *Hook files, >while others would run under the uid of the current user. Yes, the username of the currently logging-in user is passed to LoginHook as the first argument. I don't know for sure about LogoutHook, I haven't really cared who was logging out my LogoutHook scripts (I generally just do a 'dim 0' in LogoutHook). To do this, the easiest way is probably just to make LoginHook a shell script and say: su $1 -c "/usr/bin/commandtorunasthem" whenever you want something run as that user. -- David Lemson (217) 244-1205 University of Illinois NeXT Campus Consultant / CCSO NeXT Lab System Admin Internet : lemson@uiuc.edu UUCP :...!uiucuxc!uiucux1!lemson NeXTMail accepted BITNET : LEMSON@UIUCVMD
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads