LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Saving files to other folder (https://www.linuxquestions.org/questions/linux-software-2/saving-files-to-other-folder-74445/)

klmn1 07-20-2003 11:10 PM

Saving files to other folder
 
I am an administrator for the RH8.0 server and sometimes I does require to generates reports for other user/department.

My problem, whenever I try to save the generated reports to any folder example, FINANCE and the report name, X.

The FINANCE user will open the X report as READ-ONLY. I had tried using the following command;

chmod -R 777 FINANCE/

and it works but somehow everytime I generates the report, I got to perform this task.

Is there any better way to overcome this small issue.

thanx

trickykid 07-21-2003 12:58 AM

umask is what your looking for.

man umask for more details!

RolledOat 08-11-2003 01:28 PM

The reason you need to recursively perform the -R is that the owner, who writes the file, saves, by default with 700 (normal users) or 755 (root). That means that only the owner can write to the file. After you generate a new report AFTER executing the -R chmod, the new file is again, 700 or 755. You can simply chmod 775 /FINANCE/<reportname>.

RO


All times are GMT -5. The time now is 04:19 PM.