Re: [newbie] Halt command
Es Divendres 18 Gener 2002 11:49, en quaylar va escriure: joan, another solution would be to add your username to the /etc/shutdown.allow file and then shutdown your machine with shutdown -h now as that user --quay It isn't working for me. That file didn't exist before; i've created a blank file and i've added the name of the user i want to be able to shutdown followed by enter 8-? Thanks for your answer! -- Joan Tur. Ibiza - Spain Yahoo AOL quini2k ICQ 11407395 www.ClubIbosim.org Linux: usuari registrat 190.783 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Halt command
Es Dijous 17 Gener 2002 21:42, en tester va escriure: well, use an xterm $ su password(your root pw) # visudo put in a line like %users ALL=/sbin/halt NOPASSWD: ALL exit the insert mode :wq and you should be able to halt as any user with $ sudo /sbin/halt It is not working for me. I get a syntax errot at line xx... Isn't it easier to edit /etc/sudoers than to use visudo command?? Thanks for your answer! ;) -- Joan Tur. Ibiza - Spain Yahoo AOL quini2k ICQ 11407395 www.ClubIbosim.org Linux: usuari registrat 190.783 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Halt command
joan, another solution would be to add your username to the /etc/shutdown.allow file and then shutdown your machine with shutdown -h now as that user --quay Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Halt Command
Keep in mind, --help is your friend! Your lover! A very close distant cousin! lol [root@yoda /root]# shutdown --help shutdown: invalid option -- - Usage:shutdown [-akrhfnc] [-t secs] time [warning message] -a: use /etc/shutdown.allow -k: don't really shutdown, only warn. -r: reboot after shutdown. -h: halt after shutdown. -f: do a 'fast' reboot (skip fsck). -F: Force fsck on reboot. -n: do not go through "init" but go down real fast. -c: cancel a running shutdown. -t secs: delay between warning and kill signal. ** the "time" argument is mandatory! (try "now") ** Personally I like to put nice "greeting messages" with the warning message option like "GET THE HELL OFF MY MACHINE" but that's up to you! :0) A "man shutdown" will also provide some very good help. Actually reading the whole thing answers a lot of questions! Good luck! tdh -- T. Holmes Unixtechs.org [EMAIL PROTECTED] www.unixtechs.org/ "GUI BAD Console GD!!" * L. H. LOO [EMAIL PROTECTED] [010117 06:19]: At 16-01-2001 +1300, you wrote: Hi! Running LM 7.2. The system reboots ok but when I issue the 'halt' command it hangs up and errors/segmentation faults appear. What is causing this? Thanks! IIRC, the command is : shutdown -h now for immediate shutdown.
RE: [newbie] Halt Command
HALT is normally the last step of the shutdown process. You are not permitting your system to shut itself down properly. Try running "shutdown" instead. -JMS -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of AL Sent: Monday, January 15, 2001 11:34 PM To: Newbie Subject: [newbie] Halt Command Hi! Running LM 7.2. The system reboots ok but when I issue the 'halt' command it hangs up and errors/segmentation faults appear. What is causing this? Thanks!
Re: [newbie] Halt Command
At 16-01-2001 +1300, you wrote: Hi! Running LM 7.2. The system reboots ok but when I issue the 'halt' command it hangs up and errors/segmentation faults appear. What is causing this? Thanks! IIRC, the command is : shutdown -h now for immediate shutdown.
Re: [newbie] Halt Command
Thanks for the tip. I'll give it a try... Best regards, Al "Ronald J. Hall" wrote: Hi. Sometimes this is the motherboard/chipset combination. I had something like this happen (as have others). What you have to do, as su/root is: use vi, kedit, (fill in word processor here) Go in to /etc/rc.d/init.d/ and edit the file "halt" at the very bottom line, remove the "-p", so that the line ends up looking like this: eval $command -i -d That should do it. You'll wind up with text at halt or shutdown that says something like "the system is halted". Then it will be safe to power down your machine... Hope this helps! ;-) -- /\ DarkLord \/
[newbie] Halt Command
Hi! Running LM 7.2. The system reboots ok but when I issue the 'halt' command it hangs up and errors/segmentation faults appear. What is causing this? Thanks!
Re: [newbie] Halt Command
AL wrote: Hi! Running LM 7.2. The system reboots ok but when I issue the 'halt' command it hangs up and errors/segmentation faults appear. What is causing this? Thanks! Hi. Sometimes this is the motherboard/chipset combination. I had something like this happen (as have others). What you have to do, as su/root is: use vi, kedit, (fill in word processor here) Go in to /etc/rc.d/init.d/ and edit the file "halt" at the very bottom line, remove the "-p", so that the line ends up looking like this: eval $command -i -d That should do it. You'll wind up with text at halt or shutdown that says something like "the system is halted". Then it will be safe to power down your machine... Hope this helps! ;-) -- /\ DarkLord \/