You are not logged in.
I ran "chmod 710 ~" on my home, and "ls -lhd ~" shows
drwx--x---+ 1 me me 718 Aug 11 11:26 /home/me
but I run "su" and "sudo -u nobody bash"
"id" shows
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
So I think I shouldn't be able to enter /home/me, but it's not the fact.
I can still enter /home/me, and if I knows the directory name, for example "/home/me/.config", and I can still "cd /home/me/.config" and "ls", and even more "cat filename" to get some file's content.
Could anyone tell me how to prevent this from happening?
I installed lxd from snap( lxd from the package always hangs and ca't start, I don't know why) and lxc from package, maybe it's the reason?
Last edited by wisecrick (2021-08-12 06:45:34)
Offline
Online
Yes!
I run "setfacl -b me" and "chmod 710 me", the problem has been fixed
Offline
Please be sure to edit your first post and prepend [SOLVED] to the title. Thanks.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline