LinuxMCE Forums

General => Users => Topic started by: pedplar on March 10, 2008, 12:00:44 PM

Title: changing permissions
Post by: pedplar on March 10, 2008, 12:00:44 PM
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
Title: Re: changing permissions
Post by: Zaerc on March 10, 2008, 06:31:28 PM
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/*.
Title: Re: changing permissions
Post by: fibres on March 11, 2008, 03:24:46 AM
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
Title: Re: changing permissions
Post by: pedplar on March 11, 2008, 07:50:49 AM
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.