Web lists-archives.com

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




In-Reply-To: <201905201306.13667.gheskett@xxxxxxxxxxx>

>./crontabs:
>total 24
>drwx-wx--T 2 root     systemd-timesync 4096 Mar 31 09:15 .
>drwxr-xr-x 5 root     root             4096 Feb  3  2015 ..
>-rw------- 1 amanda   systemd-timesync  281 Nov 16  2018 amanda
>-rw------- 1 gene     systemd-timesync 1430 Aug  2  2018 gene
>-rw------- 1 root     systemd-timesync  662 Mar 31 09:15 root
>-rw------- 1 www-data systemd-timesync 1117 Jul 22  2017 www-data
>
>Looks good to me ????, but strace says I can't open the file "gene"

Find whatever command you used to change group owner, and undo it?

# ls -la /var/spool/cron
total 12
drwxr-xr-x 3 root root    4096 Dec 11  2017 .
drwxr-xr-x 8 root root    4096 Aug 20  2018 ..
drwx-wx--T 2 root crontab 4096 May  3  2015 crontabs
# grep chown .bash_history 
man chown 
chown bw:bw * 
chown bw:bw * 
man chown 
chown -R bw:bw *