LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-11-2014, 09:10 PM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
automatically change the owner , mode


I have a folder , I will always create new file in it , would advise if I want all new file will be changed to a specific owner , mode once it is created , what can I do , except use cron job to change it , is there any other method ? thanks
 
Old 11-12-2014, 10:37 PM   #2
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
is it impossible to that ? thanks
 
Old 11-12-2014, 10:51 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

I think you can achieve exactly what you describe with setfacl, but I suspect a solution to the actual problem might be possible by setting a sticky bit which chmod. Perhaps if you could describe the bigger picture about what you actually want to achieve you will get more help.

Evo2.
 
Old 11-13-2014, 05:16 AM   #4
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
thanks reply ,

For example , I have a folder which used for keeping the logs for a specific group of users to share , different users will generate new files to this folder , to make sure all user its group is "edp" can read these files , so I want these files changed the owner to "user1:edp" and the file mode to "644" once it is created , is it possible ?

Thanks
 
  


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
[SOLVED] [withdrawn] Cannot change owner CollieJim Ubuntu 1 04-09-2013 04:35 AM
[SOLVED] Change owner of mounted fs tech_soul8 Slackware 10 01-04-2012 09:17 AM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 10:36 AM
Change owner arubin Linux - Newbie 3 04-30-2004 01:23 PM
Change owner juno Linux - General 3 01-08-2003 08:03 AM


All times are GMT -5. The time now is 10:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration