nm, just read that part .. haa

King Spook wrote:
I'm having trouble getting cron to be usable by normal users.

I'm running vixie-cron 4.1-r10 on Gentoo Linux. My user is a member of
both cron and crontab groups (being unsure which I needed, but
speculating the former). There is no cron.allow, and an empty
cron.deny file in /etc.

Every time I try "crontab -e" as my user, I get this:
Code:

~~~
no crontab for user - using an empty one
crontab: installing new crontab
chown: Operation not permitted
crontab: edits left in /tmp/crontab.XXXXsXePXF

~~~

Naturally, I'm guessing permissions problems. Here are the permissions:

~~~
host2 spool # cd /var/spool
host2 spool # ls -alR cron/
cron/:
total 16
drwxr-x--- 4 root cron    4096 Mar  6 17:16 .
drwxr-xr-x 6 root root    4096 Apr 13 16:02 ..
-rw-r--r-- 1 root root       0 Mar  6 17:16 .keep_sys-process_cronbase-0
drwx-wx--T 2 root crontab 4096 May 16 14:39 crontabs
drwxr-x--- 2 root root    4096 Mar  6 17:16 lastrun

cron/crontabs:
total 12
drwx-wx--T 2 root crontab 4096 May 16 14:39 .
drwxr-x--- 4 root cron    4096 Mar  6 17:16 ..
-rw-r--r-- 1 root crontab    0 Mar  6 17:16 .keep_sys-process_vixie-cron-0
-rw------- 1 root crontab  328 Apr 27 12:25 root

cron/lastrun:
total 8
drwxr-x--- 2 root root 4096 Mar  6 17:16 .
drwxr-x--- 4 root cron 4096 Mar  6 17:16 ..
-rw-r--r-- 1 root root    0 Mar  6 17:16 .keep_sys-process_cronbase-0
host2 spool #
~~~


"crontab -e" does not error out when run as root.
"crontab -u myuser -e", when run as root, does create a crontab, which
appears to be owned by root, grouped by root, and with rw permissions
for owner only.

How can I fix this?
Thanks.

--
gentoo-user@lists.gentoo.org mailing list

Reply via email to