Newly created/copied files not inheriting parent directory's permission.
Posted on 2007-10-17
Environment: ESX 3
Attempting to: USe WinSCP382 (logged on as root) to copy files from Windows PC up to ESX host.
Issue: When copying the new files to the /vmfs/volumes/volume1 directory, the default file permissions applied to the building temp file file are: rw-r--r--. This causes copying problems when the copy process finishes and the program tries to rename the temp file with the original's name.
What I have done: Very little because I am new to Linux. However, I did attempt to use WINSCP382's ability to force the proper permissions, but that does not work. I also did logged on with a puTTY session as root, navigated to the directory in question and did the following:
1. Performed an LS -L command and saw that the directory in question is set to: rwxrwxrwx
2. Created a new file from inside the puTTY session, using ECHO "test" > TEST. This created a new file called TEST and it still had the rw-r--r-- file permissions.
Is there a system variable that I have to change in order to force all newly created files to use the directories file permissions?