Author Topic: changing permissions  (Read 2880 times)

pedplar

  • Veteran
  • ***
  • Posts: 89
    • View Profile
changing permissions
« 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

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: changing permissions
« Reply #1 on: March 10, 2008, 06:31:28 pm »
Try running:
Code: [Select]
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


fibres

  • Guru
  • ****
  • Posts: 306
    • View Profile
    • LinuxMCE 08.10 RC Mirror.
Re: changing permissions
« Reply #2 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

pedplar

  • Veteran
  • ***
  • Posts: 89
    • View Profile
Re: changing permissions
« Reply #3 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.