News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Prevent other users to delete files

Started by DragonK, January 08, 2012, 08:16:15 AM

Previous topic - Next topic

DragonK

Hi Guys,

Is there a way to prevent users to delete files using an orbiter?
I.e when chosing a movie to watch, there are options :
Play, Move, Delete, Close.

I dont want other users to be able to delete or move files.

PS. My 2 step boys (5 & 8) accidently deleted some movies...... Wife not happy....  :(

Karel

Kezza

I think there is another thread discussing this and from memory you cannot do it oob..... but I guess if really want it you could remove that button from the skin you use?


DragonK


pointman87

Hi. Another way is to use chmod and chown, chown user:group /path/to file and chmod 644 so other users can read, and only the owner of the file can delete it. appending chmod +t to a dir sets the same permissions to all files in that dir and makes it "sticky"

BR Daniel
BR Daniel

[url="http://wiki.linuxmce.org/index.php/User:Pointman87"]http://wiki.linuxmce.org/index.php/User:Pointman87[/url]

klovell

If you have windows shares you can do what I did.  I gave the user that lmce uses to access the shares read and write permissions but NOT modify.  This allows lmce to create cd, dvd rips, and add id tag information but doesn't allow it to delete anything.  I think this is along the same lines as what Pointman is recommending but with his recommendation lmce might not be able to add or change content.  Pointman correct me if i'm wrong.

Also, if you're using a windows share, depending on your OS version, you can setup snap shots of your data and auditing.  This way if something was deleted or changed you can easily restore it after being notified by the auditing.  I have a 21.5TB storage solution so snap shots are easy for me.  Video files, depending on compression, are generally large files (as you already know) so you will require a decent amount of addition, unused space for snap shots.  How much space depends on how often you snapshot, how long you keep a snapshot and the over all size of your data.

bongowongo

Is it me, or should this feature work oob? Maybe put it in feature request or make ticket?

klovell

Quote from: bongowongo on January 09, 2012, 07:21:03 PM
Is it me, or should this feature work oob? Maybe put it in feature request or make ticket?

You're absolutle right, this should be implemented.  It'll have to be done at the samba level somehow so some one couldn't "accidentally" delete the file from \\dcerouter.