Author Topic: [solved] which rights for a usb HDD?  (Read 447 times)

Offline aguila

  • Hero Member
  • *****
  • Posts: 1210
  • soaring high = no Windows here :-D
[solved] which rights for a usb HDD?
« on: January 09, 2012, 01:34:25 PM »
Just a quick question:

I'ld like to format a portable HDD to ext4 for backup purposes.

Which rights should I give so I can use it on any of my machines? 777?

FAT/NTFS don't ask those questions....  ::)
« Last Edit: January 09, 2012, 02:38:22 PM by aguila »
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11532
  • ----IOFLU----
Re: which rights for a usb HDD?
« Reply #1 on: January 09, 2012, 02:07:37 PM »
Just a quick question:

I'ld like to format a portable HDD to ext4 for backup purposes.

Which rights should I give so I can use it on any of my machines? 777?

FAT/NTFS don't ask those questions....  ::)

You have two ways to go.

1. Set permissions to 777, but this means anybody can write to or delete your files.

2. Mount the partition somewhere, then as root use the chown command to give ownership of the partition to your user.

[root@localhost ~]# chown -R <user>:<user> <mount-point-directory>

Replace <user> with your actual user name, and <mount-point-directory> with the directory where the partition is mounted. You will then personally own the partition, wherever it is mounted in the future, and can, as your normal user, give read/write access to other users, as you see fit.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline aguila

  • Hero Member
  • *****
  • Posts: 1210
  • soaring high = no Windows here :-D
Re: which rights for a usb HDD?
« Reply #2 on: January 09, 2012, 02:37:52 PM »
Thank you so much, old-polack!

That was exactly what I thought. I think I'll go with 777, of course anybody could write or delete my files, but not Windows users  ;D ;D ;D

This drive is only for backups of my home machines, and I'm the only one who touches it. And, of course, I'm root on all those machines  ;D ;D

Thank you once more!
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD