Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #208920

Re: nother problem I can't access my crontab, no perms

From Étienne Mollier <etienne.mollier@mailoo.org>
Newsgroups linux.debian.user
Subject Re: nother problem I can't access my crontab, no perms
Date 2019-05-20 20:30 +0200
Message-ID <xZVcR-40a-1@gated-at.bofh.it> (permalink)
References <xZSRI-2oR-3@gated-at.bofh.it> <xZTXr-3hO-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Good Day Gene,

On coyote, /var/spool/cron contained:
> drwx-wx--T  2 root   systemd-timesync 4096 Mar 31 09:15 crontabs
         ^^^
You can't go through this "crontab" directory if you are not
root, or a member of the group systemd-timesync.  That includes
that you can't read any file below, even if it is attributed to
you.

I would tend to believe that execution of "crontab" related
commands will benefit from the proper UIDs when operating.  On
my machine, at the same working directory, I have:

	$ sudo ls -lR
	.:
	total 0
	drwx-wx--T 2 root crontab 21 Feb 28 22:49 crontabs
	
	./crontabs:
	total 4
	-rw------- 1 user crontab 381 Feb 28 22:49 user

It would seem that your restore attempt conserved UIDs, but
crontab's former UID has become systemd-timesyncd one.  Perhaps
a well placed `chgrp -R crontab crontabs/` will do?

Kind Regards,
-- 
Étienne Mollier <etienne.mollier@mailoo.org>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

nother problem I can't access my crontab, no perms Gene Heskett <gheskett@shentel.net> - 2019-05-20 18:00 +0200
  Re: nother problem I can't access my crontab, no perms Gene Heskett <gheskett@shentel.net> - 2019-05-20 19:10 +0200
    Re: nother problem I can't access my crontab, no perms Étienne Mollier <etienne.mollier@mailoo.org> - 2019-05-20 20:30 +0200
      Re: nother problem I can't access my crontab, no perms Gene Heskett <gheskett@shentel.net> - 2019-05-20 20:50 +0200
        Re: nother problem I can't access my crontab, no perms Étienne Mollier <etienne.mollier@mailoo.org> - 2019-05-20 21:00 +0200

csiph-web