Active Topics

 


Reply
Thread Tools
Posts: 10 | Thanked: 1 time | Joined on Mar 2012
#1
hello
i want to execute a command each 5 minutes in user mode
Code:
 syncevolution --sync slow funambol
i installed the cron package but the executable works only with root
so how can in execute a program in user mode with crontab in root
i tried su - user 'mycmd'
but i have this response
Code:
su: can't set groups: Operation not permitted
i tried fcron but i need to create a fcron user so i installed the adduser deb package
Code:
https://build.pub.meego.com/package/files?package=adduser&project=home%3Arzr%3Aharmattan
but the problem is chowning 1000:1000 the directory /home/fcron
so i created this directory then i re execute the adduser command
and it works
Code:
 ./adduser fcron
Adding user `fcron' ...
Adding new group `fcron' (1000) ...
Adding new user `fcron' (1000) with group `fcron' ...
The home directory `/home/fcron' already exists.  Not copying from `/etc/skel'.
adduser: Warning: The home directory `/home/fcron' does not belong to the user you are currently creating.
Changing password for fcron
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
New password: 
Re-enter new password: 
Password changed.
Changing the user information for fcron
Enter the new value, or press ENTER for the default
	Full Name []: 
	Room Number []: 
	Work Phone []: 
	Home Phone []: 
	Other []: 
Is the information correct? [Y/n]
but now i have this problem
Code:
chown root:fcron /etc/fcron.*
chown: /etc/fcron.allow: Operation not permitted
chown: /etc/fcron.conf: Operation not permitted
chown: /etc/fcron.deny: Operation not permitted

thanks for your help

Last edited by noog; 2012-07-25 at 23:02.
 
Posts: 7 | Thanked: 4 times | Joined on Jan 2013
#2
Did you manage to fix the cron permission issues? I am having the same permission issues and it's driving me insane !
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:46.