LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   External HDD owner:group (http://www.linuxquestions.org/questions/slackware-14/external-hdd-owner-group-4175452061/)

The Seeker 11 02-28-2013 06:13 AM

External HDD owner:group
 
When changing ownership on my external HDD (currently root:root), should I also change the group to users, or leave as root? In other words:

Code:

chown -R seeker /media/external
or

Code:

chown -R seeker:users /media/external
The drive is accessed only by me.

GazL 02-28-2013 07:04 AM

I'd change it to 'users', but if it's intended for use by a single user I'd also be inclined to chmod 700 it.

This is assuming it's a linux filesystem and not vfat/ntfs ofcourse.

The Seeker 11 02-28-2013 07:37 AM

Quote:

Originally Posted by GazL (Post 4901572)
This is assuming it's a linux filesystem and not vfat/ntfs ofcourse.

Yes, ext4.

jtsn 03-04-2013 01:10 AM

Another option would be root:root with mode 1777 (world writeable with sticky bit set): Any user can put files there, but can only access or remove his own files (depending on umask of course).

The Seeker 11 03-04-2013 04:43 AM

Quote:

Originally Posted by jtsn (Post 4904108)
Another option would be root:root with mode 1777 (world writeable with sticky bit set): Any user can put files there, but can only access or remove his own files (depending on umask of course).

Interesting. Thanks for the info :)


All times are GMT -5. The time now is 03:57 AM.