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

changing permissions

Started by pedplar, March 10, 2008, 12:00:44 PM

Previous topic - Next topic

pedplar

How do I change permissions on an entire hard drive so I can copy media to it.  right now the owner is root.  How would I give write access to user linuxmce

Zaerc

Try running: sudo adduser linuxmce public That should add the linuxmce user to the public group and allow him to copy files to /home/public/data/*.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

fibres

Are you talking about a second either internal or external drive here?

If this is an extra drive that has been connected to the system if you told linuxmce to use it. It should have mounted that drive as accessible.
If not you can either change the permissions on the root mountpoint and do it recursively which will effect all files on the drive or you can change the owner to be linuxmce.

To change the ownership a command like the following would perform this for a drive mounted as /mnt/data
chown -R linuxmce.public /mnt/data

To change the file permissions to give everyone in the system read/write access would be somethin like
chmod -R 0777 /mnt/data

Regards

pedplar

yes this was a second internal drive actually 2 different ones.  I told linuxmce to use it, but I couldn't add anything to it because the owner was root.