Author Topic: Change permissions to external HD  (Read 295 times)

Offline Crow

  • Hero Member
  • *****
  • Posts: 8770
  • OBJECTS IN MIRROR... ARE LOSING
Change permissions to external HD
« on: December 20, 2012, 10:59:58 PM »
I need to change permissions to an external HD because sometimes doesn't let other computers write files. I can't do it using PCManFM. How can I do it?

Here is an image. Tried as root and didn't work.

« Last Edit: December 20, 2012, 11:02:18 PM by Crow »
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: Change permissions to external HD
« Reply #1 on: December 20, 2012, 11:58:55 PM »

what file system does the hard drive use?

With certain file systems like fat and ntfs,the file permissions can not be changed as these file systems do not support unix permissions.

With these file systems,permissions are simulated and are set at the time when the file system is mounted and they stay put,cant be changed afterwards,the only way to change them is to remount the file system with new permissions.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Crow

  • Hero Member
  • *****
  • Posts: 8770
  • OBJECTS IN MIRROR... ARE LOSING
Re: Change permissions to external HD
« Reply #2 on: December 21, 2012, 12:03:08 AM »
Is FAT32

The HD has problems when used in other computers like Mac and some Windows machines, never in Linux
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: Change permissions to external HD
« Reply #3 on: December 21, 2012, 12:37:23 AM »

The permissions will have to be set when the drive is being mounted.

The point to do that will be to add the drive to "/etc/fstab" with mount options you prefer and hope the tool you use to do mounting will respect them.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Crow

  • Hero Member
  • *****
  • Posts: 8770
  • OBJECTS IN MIRROR... ARE LOSING
Re: Change permissions to external HD
« Reply #4 on: December 21, 2012, 06:07:11 AM »
Thank you muungwana, had to sleep was 1:30 in the morning  :) 7:00 o'clock now.

The HD had a virus and didn't mount appropriately so I thought in a corrupted partition table, I  rewrote the partition table and formatted again, now it mounts and I can write to it but when I tried to write an antivirus from Windows it reported "disk full" and it was empty  :P  I copied a folder and now windows reports a disk the size of the new folder. I don't have a Mac to test for now. Permissions in Linux are as in the first image.

This disc is used to carry files between computers so the need to be read from multiple machines.
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412