View previous topic :: View next topic |
Author |
Message |
TBKDan n00b
Joined: 09 Jan 2006 Posts: 54 Location: NY, USA
|
Posted: Wed Jan 18, 2006 8:02 pm Post subject: fcron help (should be simple) |
|
|
Ok.. I hope it's simple. I'm running gentoo 2005.1, and I installed fcron (it seemed to work better than dcron) and crontab. A problem that I'm having is that I want a command to be executed by a specific user, but if I try to access crontab with that user, I get permission denied (since that user is neither root nor in the cron group, he cannot access /usr/bin/fcron). So basically my question is this: how can I get a crontab under the root's crontab to execute a command as if it were another user (not root), or how can I allow regular users to create a crontab file for themselves? |
|
Back to top |
|
|
tukachinchila Apprentice
Joined: 11 Mar 2005 Posts: 274 Location: Oregon
|
Posted: Wed Jan 18, 2006 8:21 pm Post subject: |
|
|
I don't think you can run fcrontab as a non-root user (unless you use sudo maybe). You can edit individual user's crontabs as root though: Code: | fcrontab -eu [the username you want to use] | should allow you to edit a specific user's crontab. Have a look at the man pages for fcrontab: Code: | man fcrontab
man 5 fcrontab
man fcron |
Good luck with that. I like fcron the best too. |
|
Back to top |
|
|
TBKDan n00b
Joined: 09 Jan 2006 Posts: 54 Location: NY, USA
|
Posted: Wed Jan 18, 2006 11:10 pm Post subject: |
|
|
Ah, thank you I had checked crontab's man pages but didn't see anything along the lines of user, but I didn't check fcrontab Thanks for the info, I'll find out if it worked at 4AM lol. |
|
Back to top |
|
|
|