Re: access to second disk sdb
Originally Posted by
mike acker
ok, I got the additional SATA cables and hooked up the second disk. got it formatted and created a partition -- type EXT4 -- which it selected apparently as the default.
now I can get it mounted but what do i do to grant permissions on it ?
I see the device is mounted and owned by /media/ -- which is owned by root.
so a SUDO command is going to be needed,--
can I sudo mkdir and then sudo chomod permission on that directory ? if i sudo mkdir the new directory will be owned by root still,-- i think
Firstly, this assumes you have already added the partition to /etc/fstab to be automatically mounted
Do multiple users need to access the drive?
If not, chowning the drive to the user
Code:
chown -R user:user /path/to/mountpoint
should do it.
Otherwise, you can either
a) Create a group that can write to the folder, and add any user that wants to access the drive to the group.
Code:
chown -R root:group_name /path/to/mountpoint
chmod -R 770 /path/to/mountpoint
b) Just chmod to 777 - that will allow anyone to access it.
Last edited by sandyd; October 13th, 2012 at 09:41 PM.
Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.
Bookmarks