Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fcron help (should be simple)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
TBKDan
n00b
n00b


Joined: 09 Jan 2006
Posts: 54
Location: NY, USA

PostPosted: Wed Jan 18, 2006 8:02 pm    Post subject: fcron help (should be simple) Reply with quote

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
View user's profile Send private message
tukachinchila
Apprentice
Apprentice


Joined: 11 Mar 2005
Posts: 274
Location: Oregon

PostPosted: Wed Jan 18, 2006 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
TBKDan
n00b
n00b


Joined: 09 Jan 2006
Posts: 54
Location: NY, USA

PostPosted: Wed Jan 18, 2006 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum