직장에서는 PC에 대한 액세스가 제한되어 있으므로 nix 패키지 관리자에 액세스할 수 있도록 /nix가 설치된 상태에서 proot를 실행합니다. 그러나 특정 setuid 명령은 루트에서 실행될 때 실패합니다.
$ proot /usr/bin/crontab -e
/var/spool/cron/<name>: Permission denied
$ proot sh -c '/usr/bin/sudo --help'
sh: /usr/bin/sudo: Permission denied
$ stat /usr/bin/sudo
File: /usr/bin/sudo
Size: 169896 Blocks: 336 IO Block: 4096 regular file
Device: 805h/2053d Inode: 872550951 Links: 1
Access: (4111/---s--x--x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-09-10 07:50:25.000000000 -0400
Modify: 2018-09-10 07:50:25.000000000 -0400
Change: 2020-06-22 17:53:31.590999394 -0400
Birth: -
$ stat /usr/bin/crontab
File: /usr/bin/crontab
Size: 67592 Blocks: 136 IO Block: 4096 regular file
Device: 805h/2053d Inode: 872476679 Links: 1
Access: (4755/-rwsr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-10-31 08:36:56.000000000 -0400
Modify: 2018-10-31 08:36:56.000000000 -0400
Change: 2020-06-22 17:53:06.061999510 -0400
Birth: -
왜이런 일이 일어날까요? 고칠 수 있나요?