Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was tring to run anacron as non root. But my RHEL doens't have -S option on anacron. Since the default spool directory for anacron is /var/spool/anacron, does it mean as a non root user, I can't run anacron since I don't have write permissions to it? Thanks,

Here is the man page for anarcon on my RHEL.

NAME anacron - runs commands periodically

SYNOPSIS anacron [-s] [-f] [-n] [-d] [-q] [-t anacrontab] [job] ... anacron -u [-t anacrontab] [job] ... anacron [-V|-h]

share|improve this question

1 Answer 1

up vote 4 down vote accepted

If you want anacron to run as a non-privileged user, you'll need to use an existing user or create an anacron user and set the anacron spool to this non-privileged user.

# useradd anacron
# groupadd anacron
# chown root.anacron /var/spool/anacron
# chmod g+w /var/spool/anacron
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.