PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 24, 2012, 06:14:58 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: [solved] which rights for a usb HDD?  (Read 222 times)
aguila
Hero Member
*****
Offline Offline

Posts: 935


soaring high = no Windows here :-D


« on: January 09, 2012, 03: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....  Roll Eyes
Logged

All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, 160 GB HDD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9694


----IOFLU----


« Reply #1 on: January 09, 2012, 04: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....  Roll Eyes

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.
Logged

Old-Polack

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



Lest we forget...
aguila
Hero Member
*****
Offline Offline

Posts: 935


soaring high = no Windows here :-D


« Reply #2 on: January 09, 2012, 04: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  Grin Grin Grin

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  Grin Grin

Thank you once more!
Logged

All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, 160 GB HDD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM