Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-03-2014, 10:48 AM   #1
LQ Newbie
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
Setting file permissions for dynamically generated files

I'm working in a linux server where wrappers are executed by multiple users of different groups. The log and output files are created with 554 permissions by default. This is stopping other users to run the wrappers unless the log and output files are deleted or given 777 permission. Setting SUID and SGID on the wrappers and folders is not helping. I don't want to set 777 permission for the scripts. What is the better way of doing this without removing the files for each run or giving 777 permission?Please suggest
Old 04-03-2014, 06:13 PM   #2
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,517

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
Perhaps change the wrappers so that a new set of of uniquely named log and output files is created each time the wrapper is run?
1 members found this post helpful.
Old 04-04-2014, 04:49 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,326

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
One soln is to create a common group just to run the wrappers and create the logs.
Look at chmod g+s for the dir(s) holding the logs.
Note that users can belong to more than one group...
1 members found this post helpful.


file permission

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set permissions to the newly generated files in the directory vishnu15 Linux - Newbie 1 02-28-2013 12:35 AM
Changing file permissions of generated /var/log files jeriryan Linux - Security 2 06-13-2012 09:25 AM
caching dynamically generated pages linuxmandrake Linux - Server 1 01-16-2009 04:53 PM
Dynamically generated graphs with image maps DMeerholz Programming 2 10-25-2007 01:27 PM
Setting file permissions so Apache can serve my files thomasfingram Linux - Security 6 12-06-2005 05:54 PM

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration