Linux – CentOs, Folder Permissions

centoschmodchownlinuxpermissions

I would like to give an FTP user permission to write in a folder but should not be able to alter other files in the folder or sub folder in the main folder.

I have a root account, we are using the web server to run from /home/usera –> the default www path.

Now we have a user account whom we will give FTP access to upload files in /home/usera but do not want him to change or go into the other folder present in /home/usera.

Best Answer

I think you'll need to change ownership of the files/folders which usera is not allowed to change. And set permissions accordingly. You can set permission on 3 levels:

owner group everyone

You might want to look here: http://www.zzee.com/solutions/unix-permissions.shtml.

However, I believe the normal situation is, that usera has ownership of the files and folders in his own home directory.