Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th May 2007, 11:15 PM
senthilpr_in Offline
Registered User
 
Join Date: Aug 2005
Posts: 13
How to start a process with specific uid/gid during bootup?

Hi all,

I have a process which I startup at boot time by adding the following line to my rc.local file

/usr/local/dcmtk/bin/dcmqrscp -c /home/db/dcmqrscp.cfg 2100 &

'dcmqrscp' is a server program, which receives files and writes them to a temp directory on disk. All Users can run a script which processes the files in this temp directory and deletes them after the processing is complete. The temp directory has 777 permission, but the files are created (by dcmqrscp) with a default permission of 644 and with the owner being root.

Should I start 'dcmqrscp' with a specific gid, to which all my users belong, so that they can delete the files in the temp directory, once they are done with their processing? What I'm looking for, is a way to make all the files created by 'dcmqrscp' program, world writeable, so that the script run by my users, will delete these files, once the processing is complete.

Thanks!

Senthil
Reply With Quote
  #2  
Old 17th May 2007, 06:04 AM
danwaineo's Avatar
danwaineo Offline
Registered User
 
Join Date: Nov 2005
Location: Portland, OR
Posts: 243
Hi,

I haven't done this before, but I suppose you can try putting the following in rc.local:

sudo -u user command

Looking more closely at you email, I don't think this alone would work for you since th files are 644. Only the owner "user" or root would be able to delete them - not other users even if they belong to the same group

What if you SUID the second program (that clears out temp) with the same owner "user". Then each of your users should be able to clean out the temp folder without requiring root permissions.

I'm not an expert, but this sounds safe enough to me.
Reply With Quote
Reply

Tags
bootup, process, specific, start, uid or gid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache fails to start when listening on specific IP angusm Servers & Networking 2 18th July 2008 03:35 AM
Bootup process searches for unavailable scsi devices moiyo Using Fedora 2 27th March 2008 07:19 PM
How to filter outgoing traffic for specific process name/id? alarm9k Servers & Networking 4 15th March 2008 02:07 AM
fedora bootup process marky_xyz Using Fedora 2 11th October 2007 09:54 PM
How do I get NetworkManagerInfo to start at bootup? terry_g Servers & Networking 1 14th August 2005 12:50 AM


Current GMT-time: 14:51 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat