Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

crontab issue

14 views
Skip to first unread message

William A. Mahaffey III

unread,
Jul 25, 2015, 10:19:52 AM7/25/15
to


I am trying to install a user-specific crontab file:

[wam@4256EE1, ~, 9:21:43am] 416 % lltr
total 136
-rw------- 1 wam users 5796 Nov 10 2011 .crontab
-rw-r--r-- 1 wam users 166 Sep 29 2014 .shrc
-rw-r--r-- 1 wam users 1516 Sep 29 2014 .profile
-rw-r--r-- 1 wam users 265 Sep 29 2014 .logout
drwxr-xr-x 2 wam users 512 Jul 16 08:24 .ssh/
-rw-r--r-- 1 wam users 1923 Jul 17 08:22 .cshrc
-rw-r--r-- 1 wam users 694 Jul 19 11:11 .login
drwxr-xr-x 2 wam users 512 Jul 20 08:15 misc/
drwxr-xr-x 2 wam users 512 Jul 20 08:15 pub/
drwxr-xr-x 2 wam users 512 Jul 20 08:15 lib/
-rw-r--r-- 1 wam users 1044 Jul 20 10:36 .Usual
drwxr-xr-x 2 wam users 512 Jul 20 14:22 work/
-rw------- 1 wam users 11119 Jul 22 08:17 .history
drwxr-xr-x 2 wam users 512 Jul 24 10:52 bin/
[wam@4256EE1, ~, 9:21:46am] 417 % ll /var/cron/
total 8
-rw-r--r-- 1 root wheel 4 Jul 24 11:00 allow
drwx------ 2 root wheel 512 Jul 1 01:29 tabs/
[wam@4256EE1, ~, 9:21:52am] 418 % crontab -u wam .crontab
crontab: must be privileged to use -u
[wam@4256EE1, ~, 9:22:16am] 419 % cat /var/cron/allow
wam
[wam@4256EE1, ~, 9:24:18am] 420 %

The man page implies that users have access to set their crontab files
by default under NetBSD. My user 'wam' is in the wheel group. What am I
doing wrong here ? TIA & have a nice weekend.


--

William A. Mahaffey III

----------------------------------------------------------------------

"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Timo Buhrmester

unread,
Jul 25, 2015, 11:01:36 AM7/25/15
to
> I am trying to install a user-specific crontab file:
Your crontabs are in /var/cron/tabs, to edit them you could use crontab -e.

William A. Mahaffey III

unread,
Jul 25, 2015, 11:24:26 AM7/25/15
to
On 07/25/15 10:07, Timo Buhrmester wrote:
>> I am trying to install a user-specific crontab file:
> Your crontabs are in /var/cron/tabs, to edit them you could use crontab -e.
>

Yeah, but I already have the file ready to go, I would like to install
it directly. Someone else pointed out that I don't need the '-u wam'
part of the command, & it indeed worked that way, so I am off to the
races. Thanks for your reply :-).

--

William A. Mahaffey III

----------------------------------------------------------------------

"The M1 Garand is without doubt the finest implement of war
ever devised by man."
-- Gen. George S. Patton Jr.


Eric Haszlakiewicz

unread,
Jul 25, 2015, 12:10:40 PM7/25/15
to
On July 25, 2015 11:01:19 AM EDT, Timo Buhrmester <fstd...@gmail.com> wrote:
>> I am trying to install a user-specific crontab file:
>Your crontabs are in /var/cron/tabs, to edit them you could use crontab -e.

Yes, but it should be possible to specify a file to replace it with. Try just "crontab .crontab" without any -u option.

If that doesn't work, check the /etc/cron.{allow,deny} files.

Eric
0 new messages