On 09/17/15 03:05, Antonio Olivares wrote:
> Tried it and it does not poweroff machine via crontab.  However, from
> $ systemctl poweroff
>
> does poweroff machine.  What could be preventing it from shutting down.  I 
> will try the -f option suggested also, then report back.

If you were to ssh into the machine and enter "systemctl poweroff" or 
"/usr/bin/poweroff" you'd find that it would prompt you for a password.  This 
is the same thing that is happening when using the crontab, but of course you 
can't supply the password in that case.

One option, if you don't want to use root's crontab, would be to make an entry 
in the sudoers file to allow you to use the poweroff command via sudo without 
supplying a password.

-- 
It seems most people that say they are "done talking about it" never really are 
until given the last word.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to