Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Security-Basics
[Top] [All Lists]

Re: Linux shutdown

Subject: Re: Linux shutdown
Date: Wed, 27 Oct 2004 20:31:13 -0600
Pablo Gietz wrote:

Hi peolple
Do you know how to do a Linux (clear) shutdown without root privileges from login screen?
I want to give a user the privilege of shutdown the server without being root. I have heared about umount problems of the file system.


Try sudo. Limit the user just to execute shutdown and prompt it for password. check sudoers file. Add flag -y to shutdown command.

Other option is let user execute a script with sudo, then the script executes shutdown in the background (so the user can log off normaly). Should be mode 700 and not setuid but owned by root, It will be executed as root. Depends on your os type and init level, shutdown will unmount all mounted points and give control to the basic system avalible (ej: openboot on Sun)

ebar.


<Prev in Thread] Current Thread [Next in Thread>