Latest LQ Deal: Latest LQ Deals
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 11-30-2013, 03:53 AM   #1
LQ Newbie
Registered: Nov 2013
Posts: 1

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


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, 08:53 PM   #2
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.
Old 12-02-2013, 04:32 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,873

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


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

All times are GMT -5. The time now is 08:26 AM.

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
Open Source Consulting | Domain Registration