How to ensure that any uploaded file gets the permission 666 & directories get the permission 777 when they will be uploaded into “PUB” directory by anonymous user?
on 05/06/2012 – Made popular on 05/06/2012
I have files created into my home directory with only user read permission (r-- --- ---). I want to copy this file to another directory /etc/test/ which has the folder permission of 744 (rwx r-- r--). I need to allow for the file I am copying to inherit the permission of the folder it is copied in because so far when I copy it, the files permissions are still the same (r-- --- ---).
I want to set permissions to a folder such that, when I'm normally logged in (meaning not as root), this folder isn't deletable, but I can still change the name of this folder and move in around in my system ?
IS this possible and if yes, how to set the permission ?
I have set up a FTP server using vsftpd and enabled anonymous upload and download. The problem I have is that when I upload a directory it will be uploaded successfully (I can see it in server), but the next time I want to check that directory, FTP client shows an empty directory!!
I have a samba share with a folder called Sandbox that i want to allow guests to be able to write to. Sandbox is the only folder i want guests to write too, and the permissions for everything else is already set to readonly for 'other'. But if i set the everything permissions on Sandbox, anyone will be able to write to it, and delete the folder itself.
I need to transfer directories/files between 2 Unix servers, with same folder permission.
I tried scp, but it retains the the permissions, but changes the owner of the directory/file to the user used to copy them to the destination. I don't want that to happen.
If possible without any other additional installation of tools.