Re: system shutdown from xdm

1999-05-04 Thread G. Crimp
You could also use sudo to let certain people have the privilege of running shutdown. They won't need to know the root password, only their own, and you could even set it up so they don't need their own password. Here's an example sudoers entry: = /sbin/shutdown -[hr] now

Re: system shutdown from xdm

1999-05-04 Thread Nils Rennebarth
On Mon, May 03, 1999 at 07:32:38PM +0200, Helge Hafting wrote: > If you want anybody to shutdown without password, make > /sbin/shutdown a suid executable. Make shutdown a menu choice > in your window manager for user friendliness. > > Don't do the suid thing unless *anybody* logging into your m

Re: system shutdown from xdm

1999-05-03 Thread Helge Hafting
I have a /usr/local/bin/shutdown like this: su -c "shutdown $1 $2 $3 $4 $5" Anybody can run shutdown, but they'll need the root password. If you want anybody to shutdown without password, make /sbin/shutdown a suid executable. Make shutdown a menu choice in your window manager for user friendl

Re: system shutdown from xdm

1999-05-01 Thread Decklin Foster
> Dave Whiteley wrote: > > > Now I am playing with my own linux systems, and I want to create a > > similar user to give my Wife an easy way to shut down the PC. I use the following solution to let my mom shut down the PC from xdm: ** Step 1: a short Xaw program. #include #include #include

Re: system shutdown from xdm

1999-04-29 Thread Bill Wilson
[EMAIL PROTECTED] writes: > Not a Bad Idea (tm) but I dont use xdm. kdm has a button "Shutdown" > which kinda makes it easy. The Gnome menu has a "Settings-> Shut Down or Reboot" option which pops up a window saying you must be root to do this. Since I run Gnome as a user as one should, doe

Re: system shutdown from xdm

1999-04-29 Thread MallarJ
In a message dated 4/28/99 11:34:38 PM Central Daylight Time, [EMAIL PROTECTED] writes: > Not a Bad Idea (tm) but I dont use xdm. kdm has a button "Shutdown" > which kinda makes it easy. > > I do like the shutdown button of KDE - but it would be more useful if you didn't have to log ou

Re: system shutdown from xdm

1999-04-29 Thread Michael Beattie
On Wed, 28 Apr 1999, Dave Whiteley wrote: > I have made the user "shutdown"'s shell a script which calls the > shutdown command. However xdm does not seem to run this script. Thats because X does not run the shell that is specified in /etc/passwd. Instead, it starts the first window manager in /e

Re: system shutdown from xdm

1999-04-28 Thread Robert Vollmert
On Wed, Apr 28, 1999 at 11:07:16AM +, Dave Whiteley wrote: > In the olden days I worked with a PDP11/44 running Unix. I did not know > a lot about Unix, but I was trusted to shut the system down by logging > is as a special user "shutdown". > I have made the user "shutdown"'s shell a script

Re: system shutdown from xdm

1999-04-28 Thread H C Pumphrey
Dave Whiteley asked how to let a normal user shut down a Debian box and in reply... On Wed, 28 Apr 1999, Richard Harran wrote: [snip: How to make CTRL-ALT-DEL do a shutdown for a normal user] > This works for me, but I don't use xdm, so I cannot comment on whether > it traps or not. If it d

Re: system shutdown from xdm

1999-04-28 Thread Richard Harran
I find that I often need to shutdown as a normal user ('cos I turn my computer off every night), but rarely need to reboot. Thus I have set the behavior of the keys to shutdown, rather than reboot. This is done with the following in /etc/inittab: # What to do when CTRL-ALT-DEL is pressed

system shutdown from xdm

1999-04-28 Thread Dave Whiteley
In the olden days I worked with a PDP11/44 running Unix. I did not know a lot about Unix, but I was trusted to shut the system down by logging is as a special user "shutdown". Now I am playing with my own linux systems, and I want to create a similar user to give my Wife an easy way to shut down