setting permissions for the root dir

quik

Dabbler
Joined
May 19, 2019
Messages
15
How should i change the root dir permissions? Atm all root folder (boot, bin, conf, lib etc.) are set to rwxr-xr-x
I think no all users should have access. can i safely chmod 750 all directories in the root folder (expect for the /mnt/ folder, where all the files are)?
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
Why would want to do this? FreeNAS OS on freenas-boot is separate to your data pool which is mounted under /mnt/.... Can't think of a reason why a non-root user should have access to the files/dirs you listed which are apart of the FreeNAS OS.
 

quik

Dabbler
Joined
May 19, 2019
Messages
15
Because atm when i start an ftp server, the entire folder structure is readable for the user with filezilla. I want to share some files with ftp to some friends. But i don't want them to have access to my entire system. Only one folder. With chrome they see only the one folder. But with filezilla i can see the entire folder/file structure of my freenas server
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
How should i change the root dir permissions? Atm all root folder (boot, bin, conf, lib etc.) are set to rwxr-xr-x
I think no all users should have access. can i safely chmod 750 all directories in the root folder (expect for the /mnt/ folder, where all the files are)?
No, you can't. Applications need to be able to read/traverse to their config files and many other locations. This most likely will break your server.
 
Top