1 |
nm, just read that part .. haa |
2 |
|
3 |
King Spook wrote: |
4 |
> I'm having trouble getting cron to be usable by normal users. |
5 |
> |
6 |
> I'm running vixie-cron 4.1-r10 on Gentoo Linux. My user is a member of |
7 |
> both cron and crontab groups (being unsure which I needed, but |
8 |
> speculating the former). There is no cron.allow, and an empty |
9 |
> cron.deny file in /etc. |
10 |
> |
11 |
> Every time I try "crontab -e" as my user, I get this: |
12 |
> Code: |
13 |
> |
14 |
> ~~~ |
15 |
> no crontab for user - using an empty one |
16 |
> crontab: installing new crontab |
17 |
> chown: Operation not permitted |
18 |
> crontab: edits left in /tmp/crontab.XXXXsXePXF |
19 |
> |
20 |
> ~~~ |
21 |
> |
22 |
> Naturally, I'm guessing permissions problems. Here are the permissions: |
23 |
> |
24 |
> ~~~ |
25 |
> host2 spool # cd /var/spool |
26 |
> host2 spool # ls -alR cron/ |
27 |
> cron/: |
28 |
> total 16 |
29 |
> drwxr-x--- 4 root cron 4096 Mar 6 17:16 . |
30 |
> drwxr-xr-x 6 root root 4096 Apr 13 16:02 .. |
31 |
> -rw-r--r-- 1 root root 0 Mar 6 17:16 .keep_sys-process_cronbase-0 |
32 |
> drwx-wx--T 2 root crontab 4096 May 16 14:39 crontabs |
33 |
> drwxr-x--- 2 root root 4096 Mar 6 17:16 lastrun |
34 |
> |
35 |
> cron/crontabs: |
36 |
> total 12 |
37 |
> drwx-wx--T 2 root crontab 4096 May 16 14:39 . |
38 |
> drwxr-x--- 4 root cron 4096 Mar 6 17:16 .. |
39 |
> -rw-r--r-- 1 root crontab 0 Mar 6 17:16 .keep_sys-process_vixie-cron-0 |
40 |
> -rw------- 1 root crontab 328 Apr 27 12:25 root |
41 |
> |
42 |
> cron/lastrun: |
43 |
> total 8 |
44 |
> drwxr-x--- 2 root root 4096 Mar 6 17:16 . |
45 |
> drwxr-x--- 4 root cron 4096 Mar 6 17:16 .. |
46 |
> -rw-r--r-- 1 root root 0 Mar 6 17:16 .keep_sys-process_cronbase-0 |
47 |
> host2 spool # |
48 |
> ~~~ |
49 |
> |
50 |
> |
51 |
> "crontab -e" does not error out when run as root. |
52 |
> "crontab -u myuser -e", when run as root, does create a crontab, which |
53 |
> appears to be owned by root, grouped by root, and with rw permissions |
54 |
> for owner only. |
55 |
> |
56 |
> How can I fix this? |
57 |
> Thanks. |
58 |
> |
59 |
|
60 |
-- |
61 |
gentoo-user@l.g.o mailing list |