Advertisement

10.17.2007 at 09:26AM PDT, ID: 22899473
[x]
Attachment Details

Newly created/copied files not inheriting parent directory's permission.

Asked by jedifenner in Linux, Linux Administration, VMware

Tags: permissions, inherit, parent, linux, files

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? Start Free Trial
[+][-]10.17.2007 at 10:07AM PDT, ID: 20095124

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2007 at 12:22PM PDT, ID: 20096189

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 07:14AM PDT, ID: 20101143

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.25.2007 at 07:30AM PDT, ID: 20147914

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Administration, VMware
Tags: permissions, inherit, parent, linux, files
Sign Up Now!
Solution Provided By: jedifenner
Participating Experts: 3
Solution Grade: B
 
 
[+][-]10.25.2007 at 07:32AM PDT, ID: 20147929

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.03.2008 at 10:18AM PST, ID: 20809411

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628