LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-03-2014, 10:48 AM   #1
praveenpa
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
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
  


Reply

Tags
file permission



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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