- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Avoid users to see commands executed by others
mkinitramfs
Output:
Command 'mkinitramfs' is available in the following places
* /sbin/mkinitramfs
* /usr/sbin/mkinitramfs
The command…
Avoid users to see commands executed by others
ls -lh /boot/initrd.img-6.1.0-26-amd64
-rw-r--r-- 1 root root 37M Oct 6 11:33 /boot/initrd.img-6.1.0-26-amd64
file /boot/initrd.img-6.1.0-26-amd64
/…
Avoid users to see commands executed by others
ls -l /initrd.img
lrwxrwxrwx 1 root root 30 Oct 6 11:33 /initrd.img -> boot/initrd.img-6.1.0-26-amd64
I don't want a crontab solution as the statement may not be the…
Avoid users to see commands executed by others
https://ubuntuforums.org/archive/index.php/t-2443493.html does not seem helpful.
Could give a try to /etc/fstab, see the Super User question 1858984.
Avoid users to see commands executed by others
time grep -r 'hidepid' / --exclude-dir={proc,sys}
Output:
grep: /usr/lib/x86_64-linux-gnu/systemd/libsystemd-core-252.so: binary file…
Avoid users to see commands executed by others
mount /proc -o remount,hidepid=2
does not return anything.
mount
List files a user can see names of and contents
head /file.swap
head: cannot open '/file.swap' for reading: Permission denied
Can regular user check previous erased data on disk?
List files a user can see names of and contents
ls /var/log/
Output:
alternatives.log apt cron.log.4.gz dpkg.log.7.gz letsencrypt syslog xrdp.log.1.gz…
List files a user can see names of and contents
tree /var/spool/cron/
Output:
/var/spool/cron/
├── atjobs [error opening dir]
├── atspool [error opening dir]
└──…
List files a user can see names of and contents
tree /var/www/
<details>
<summary>Output:</summary>
/var/www/ [error opening dir]
0 directories, 1 file
</details>