How to close access to a directory in 'Linux' without the possibility of opening and viewing its files through file managers and terminals?
- didn't chmod help? - pavel
- @pavel, chmod works, but I can go into folders and see files, but not edit them. - CockLobster
|
1 answer
user@PC:~$ sudo mkdir testdir user@PC:~$ sudo chmod 700 testdir/ user@PC:~$ cd testdir/ bash: cd: testdir/: Permission denied user@PC:~$ ls testdir/ ls: cannot open directory testdir/: Permission denied Or instead of a root, create a directory from another user. The key point is who owns this directory.
PS fun
|