how to create a shutdown login in RHEL4 ES
Hi
I want to create a shutdown login in RHEL4ES. Please help me. |
Hi,
You could create a normal linux user then grant them sudo access to the shutdown command. |
loghin to root
write #visudo I bottom type <your login name> ALL=/sbin/shutdown Now save file do your user login type #sudo shutdown <type password of your login> Thnaks |
what i want is i want to shutdown the system thru login....like
login:shutdown password:******** then system should shutdown immediately.... |
From /etc/passwd on my Slackware 10.1 box, there seems to be a standard user on Slackware for this.
Code:
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown Not tested. |
i think you have to write system level script for that. create a user shutdown
in /home/shutdown/.bash_profile execute poweroff command vi /etc/shutdown/.bash_profile .. poweroff thnks |
Quote:
thanx |
All times are GMT -5. The time now is 11:48 AM. |