LinuxQuestions.org
Register a domain and help support LQ
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 11-30-2013, 04:53 AM   #1
docscsi
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
Multiuser env: move files between users without using root


Hi

I consolidated several applications on one linux host. Every applications runs in its own environment with its own user.
Application A, which can be compared as an E-Mail Client, is receiving and creating files that application B is processing. After processing by B, it is then processed again by A and sent away.

What I set up is an cronjob running under root that moves files from A to B and vice-versa. The job not only moves files, it also set the file permissions and owner to ensure the files can be processed.

I would like to have such a job without running it under root (security reasons). The job itself is part of the application stack and therefore I want it to run in a user environment.

So far I thought of these solutions:
  1. running all applications under the same user account (no prob to move files, but less secure as one user is able to interact not only with "his" application but also with others running under the same user)
  1. creating Files using ACLs. So for example the cronjob running on B can only move files created by A, but cannot change other files (like configuration files, binaries, etc) from A.

Can you think of other solutions?
 
Old 11-30-2013, 09:53 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Maybe this will help you.
http://www.yolinux.com/TUTORIALS/Lin...ingGroups.html
 
Old 12-02-2013, 05:32 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
I agree that keeping the apps separated wrt to users, but sharing a group is a good idea.
 
  


Reply


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
Screen - Multiuser access + Start as root from other users LexLuthar Linux - Software 3 05-09-2011 10:59 AM
Move to Maildir, users mail owned by root now. DaveQB Linux - Server 2 06-05-2010 10:11 PM
Can not move files to root files in kubuntu 9.04. Bjornmagne Linux - Newbie 16 08-18-2009 02:50 PM
Cannot su to root successfully / Cannot copy/move *.bz2 files from Sosreport jbottiger Linux - Newbie 17 02-06-2009 10:28 AM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 12:12 PM


All times are GMT -5. The time now is 06:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration