Puede editar su crontab de usuario si tiene acceso de superusuario, sin modificar permissions:
$ sudo crontab -u username -e
Pensé que usted podría corregir su usuario crontab sin sudo, pero consigo los mismos problemas del permiso que usted, incluso después de
crontab
grupo de crontab
. Los permissions en el crontab de mi usuario ( /var/spool/cron/crontabs
) son -rw-------
, el grupo es crontab
.
dbsa@dbsa-X406UA:~$ ssh root@172.16.10.99
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic-pae i686)
* Documentation: https://help.ubuntu.com/
System information as of Tue Jul 21 13:27:48 WIT 2020
System load: 0.0 Processes: 119
Usage of /: 35.2% of 18.57GB Users logged in: 1
Memory usage: 13% IP address for eth0: 172.16.10.99
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
New release '14.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
You have new mail.
Last login: Mon Jul 20 16:46:26 2020 from 172.17.10.182
root@orafin-central-tax:~# su - tplinux
tplinux@orafin-central-tax:~$ crontab -l
crontabs/tplinux/: fopen: Permission denied
tplinux@orafin-central-tax:~$ uname -a
Linux orafin-central-tax 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
tplinux@orafin-central-tax:~$ sudo crontab -u tplinux -e
[sudo] password for tplinux:
tplinux is not in the sudoers file. This incident will be reported.
tplinux@orafin-central-tax:~$ exit
logout
You have new mail in /var/mail/root
root@orafin-central-tax:~# sudo crontab -u tplinux -e
No modification made
root@orafin-central-tax:~# sudo crontab -u root -e
No modification made
root@orafin-central-tax:~#
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic-pae i686)
* Documentation: https://help.ubuntu.com/
System information as of Tue Jul 21 13:27:48 WIT 2020
System load: 0.0 Processes: 119
Usage of /: 35.2% of 18.57GB Users logged in: 1
Memory usage: 13% IP address for eth0: 172.16.10.99
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
New release '14.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
You have new mail.
Last login: Mon Jul 20 16:46:26 2020 from 172.17.10.182
root@orafin-central-tax:~# su - tplinux
tplinux@orafin-central-tax:~$ crontab -l
crontabs/tplinux/: fopen: Permission denied
tplinux@orafin-central-tax:~$ uname -a
Linux orafin-central-tax 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
tplinux@orafin-central-tax:~$ sudo crontab -u tplinux -e
[sudo] password for tplinux:
tplinux is not in the sudoers file. This incident will be reported.
tplinux@orafin-central-tax:~$ exit
logout
You have new mail in /var/mail/root
root@orafin-central-tax:~# sudo crontab -u tplinux -e
No modification made
root@orafin-central-tax:~# sudo crontab -u root -e
No modification made
root@orafin-central-tax:~#
Tidak ada komentar:
Posting Komentar