Re: power down with cron does not work
From: nosy (narrischesschwammerl_at_yahoo.de)
Date: 10/14/03
- Next message: Fish: "Re: SuSE-9.0 Pro Being Posted on a.b.c.i.l"
- Previous message: Kevin Nathan: "Re: While We're At It"
- In reply to: anc: "Re: power down with cron does not work"
- Next in thread: anc: "Re: power down with cron does not work"
- Reply: anc: "Re: power down with cron does not work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 14 Oct 2003 08:27:16 GMT
anc <anc@nospam.net> schrieb:
>nosy wrote:
>
>> Hi,
>> I tried many things to power down my server at a certain time.
>> I use SuSe 8.1. What I did was:
>>
>> as a root changed to /root
>> created a file called crontab.txt
>> there I put
>> 0 1 * * * cp -upR / data / backup; poweroff
>>
>> saved it
>> and executed crontab crontab.txt
>
>Poweroff is a symbolic link to the halt command:-
>
>anc@linux:~> ls -l /sbin/halt
>-rwxr-xr-x 1 root root 8224 2003-03-14 00:16 /sbin/halt
>
>I am guessing here that as the halt script is owned by root and in the group
>root you need to set up the sudo command. Make an entry into the sudoers
>list for the command halt to be run by any user. This may be a security
>issue, however. Have a look at this link for further help with sudo,you
>must use visudo for editing the sudoers list.
>
>http://unix.about.com/library/weekly/aa102500a.htm
Thank you for this!
I never understood the structure behind this.
'halt' is a root/su owned command but as a user (in KDE) I click a
simple button to power down the machine. Strange ...
Is there another way to automatically switch off the machine at a
certain time? I have to use IDE Harddisks and I have read that these
are not for permanent use as opposed to SCSI drives ...
Reinhard
- Next message: Fish: "Re: SuSE-9.0 Pro Being Posted on a.b.c.i.l"
- Previous message: Kevin Nathan: "Re: While We're At It"
- In reply to: anc: "Re: power down with cron does not work"
- Next in thread: anc: "Re: power down with cron does not work"
- Reply: anc: "Re: power down with cron does not work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|