Download your favorite Linux distribution at LQ ISO.
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 04-22-2008, 09:33 AM   #1
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Wink chown

i configured samba server. and created a share folder. if any body pastes files or folders in to it, the same owner shold not be able to delete them. so, i am cnanging ownwrship like this.
#chown root:root /share/*

Now i want to do it automaticall. that is as soon as get any files or folders, their ownership should change as root.root, is it possible if yes how.
many thanks for any help......
Old 04-22-2008, 09:59 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The easiest method would be to put the commands in a script, then set cron to run the script at the end of every day. This gives owners a chance to change mistakes before you steal^H^H^H^H^H remove their ownership.


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
chown rust8y Solaris / OpenSolaris 3 11-02-2007 05:04 PM
chown strycnine Slackware 5 12-07-2006 10:39 AM
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 05:23 PM
chown -R ujotne Programming 3 02-25-2004 01:02 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:08 PM.

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