I just got hold of a linux machine running ubuntu from my friend. It places 644 permission on all new files created by a user.
But for some purposes I want 755 permission on all files and folder created by that user, I have been searching on internet from all day long but did not got hold of any useful resources plus I am a beginner to linux system as well.
If I use mkdir in a php script to create a folder, then I have full access on this folder to add files or create folder inside it.
If I then login on the server via ssh, create a second folder, chown(recursively or not) to the exact same user:group as the one created by the php mkdir(), and chmod it to the the same exact permissions as the first folder then trying to a
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 am trying to change the owner permission of file as "read only" when the file is rcp
(remote copy ) from server to another for security reason.
Any way to change to permission as readonly access for owner and group ( 550 )when transfer the file using the rcp command ? I tested but still retain the original permission as source file.