[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: p.s. (was: Re: Shutdown by a user)
Other options that you can look at are:
1) sudo and I believe there is a similar command with another name. With sudo
you can, but not must, specify the exact command the user will issue. So you
can only give him shutdown -r but not shutdown -h, for example.
[19:42:01 nut-0.44.1pre1]$ man sudo | col -b | head
sudo(8) MAINTENANCE COMMANDS sudo(8)
NAME
sudo - execute a command as another user
SYNOPSIS
[19:42:08 nut-0.44.1pre1]$
2) shutdown -a
Although I am not sure shutdown -a is applicable in your case you might want
to verify that.
[19:42:08 nut-0.44.1pre1]$ man shutdown | col -b | grep -e -a
Reformatting shutdown(8), please wait...
/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]
-a Use /etc/shutdown.allow.
consoles. If shutdown is called with the -a argument (add
Note that if /etc/shutdown.allow is not present, the -a
[19:44:38 nut-0.44.1pre1]$
>
>
> Dear Keren,
>
> Thank you very much for your mail.
>
> First let me answer in the sequence.
>
> 1. I have a linux cluster without keyboard and Mouse. So,
> the need arises to use to 'shutdown' command from a node
> in the network.
>
> 2. RedHat 6.2 has /etc/pam.d/shutdown,which allows the user to
> shutdown the machine after getting the passwd.
>
> 3. But I want in RH. 5.2, in which I don't have the file
> in /etc/pam.d/shutdown.
>
Then perhaps you must install the pam rpm?
> Q!! My Question is: If I copy the /etc/pam.d/shutdown from RH6.2, whether
> it will work.
>
I doubt it since this probably means that you do not have pam installed, or
that there is a file with a similar functionality but another name.
>
>
> > an important note - if you let your user run the 'shutdown' command, they
> > will be able to bring the system into single user mode and immediatly have
> > a root shell. this is not a good idea. and this is the default setting on
> > redhat 6.0... is it the same on redhat 6.2?
>
> Question: Do you say the option of using 'linux single' from LILO prompt.
> Ans: If that is the case, I can modify the /etc/lilo.conf with
> access restricted with the root passwd, so that no one can use the
> 'linux single' option without root passwd.
>
>
>
>
> Thanking you and waiting for your reply
>
> N. Sakthivel
>
>
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
--
-- Shaul Karl <shaulk@israsrv.net.il>
Donate free food to the world's hungry: see http://www.thehungersite.com
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il