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
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
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
> 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
[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
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
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
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
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
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
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
11 matches
Mail list logo