Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to update crontab with KCron
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
santo
n00b
n00b


Joined: 24 Apr 2002
Posts: 44
Location: Belgium

PostPosted: Wed Feb 05, 2003 8:14 am    Post subject: unable to update crontab with KCron Reply with quote

I can't edit my crontab with KCron.
When I want to save my settings in KCron, I get this error:
Quote:
An error occurred while updating crontab


When I add an entry to the cron from the command line, with
Code:
crontab -e

and then open KCron again, the entry I just added doesn't show up.
Even more, the cron is always empty.

Which cron does KCron use and as which user does it run ?
I supposed it tries to open the cron for the user who's KDE session is running, but why isn't it showing the contents of that crontab then ?


Note: I already googled for it, but didn't found any result at all
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Wed Feb 05, 2003 3:45 pm    Post subject: Reply with quote

Have you tried running KCron as root? Also what cron proggy did you emerge? VCron, etc?

You can set KDE menu items to run as different users, FYI... go to the Menu Editor (right click on the K Menu button) & navigate down to the proggy icon.. not sure if this will help...
Back to top
View user's profile Send private message
santo
n00b
n00b


Joined: 24 Apr 2002
Posts: 44
Location: Belgium

PostPosted: Wed Feb 05, 2003 4:01 pm    Post subject: Reply with quote

No, I didn't try to run KCron as root, because I want a user to be able to modify its own cron tab without having to know the root password.

Indeed, I emerged VCron. I suppose this should be ok ?

I just modified the "shortcut" for KCron to run as root and now it appears to work.
But of course I have to provide the root password, and I don't want that because of the reason I mentioned in the first paragraph.

But hey, now it works already (as root).
I can live with it for now, but nevertheless I want to be able to run it as another user.

Thanx already !
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Wed Feb 05, 2003 6:01 pm    Post subject: Reply with quote

Great! I don't need user crontabs, since Im the only one using the machine, and I mainly just use that to run periodic stuff that would be good for all users anyways...
Back to top
View user's profile Send private message
wyleyrabbit
n00b
n00b


Joined: 05 Mar 2003
Posts: 5

PostPosted: Wed Mar 12, 2003 7:34 am    Post subject: solution to Kcron issues Reply with quote

Hi all,

I had the same problem you were talking about.

The solution for me seemed to be to make sure that each user is a member of the "cron" group. Just open "kuser" and add each user to the "cron" group.

Let us know if it works for you.

Wyleyrabbit
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Wed Oct 08, 2003 8:14 am    Post subject: Reply with quote

The error message is related to the shadow file. People were having the same problem with Kuser. If you run "pwconv" as root, this will generate shadow passwords for you and allow you to use Kcron as a non-root user.

nahpets

Quote:


$ man pwconv

NAME
pwconv, pwunconv, grpconv, grpunconv - convert to and from shadow passwords and groups.

Back to top
View user's profile Send private message
The Dealy Lama
n00b
n00b


Joined: 10 Jun 2003
Posts: 35
Location: Da'ath

PostPosted: Thu Nov 27, 2003 8:31 am    Post subject: Re: solution to Kcron issues Reply with quote

wyleyrabbit wrote:
Hi all,

I had the same problem you were talking about.

The solution for me seemed to be to make sure that each user is a member of the "cron" group. Just open "kuser" and add each user to the "cron" group.

Let us know if it works for you.

Wyleyrabbit


IMHO, this info should be put into the ebuild of the respective cron packages! Had a tough time configuring a users crontab until I spotted the possibility of adding this user to the cron-group(fcron is my preferred app.). Fixed it good! :roll:
_________________
"The shadows of this world are perceived by mortals, and they think they know the Truth, but the Reality which casts the shadows is hidden from them, and they do not perceive the Light." (Sayings 2:2)"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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