LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-28-2013, 06:13 AM   #1
The Seeker 11
Member
 
Registered: Apr 2004
Location: Adelaide, AU
Distribution: Slackware
Posts: 48

Rep: Reputation: 18
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.
 
Old 02-28-2013, 07:04 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
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.

Last edited by GazL; 02-28-2013 at 07:05 AM.
 
Old 02-28-2013, 07:37 AM   #3
The Seeker 11
Member
 
Registered: Apr 2004
Location: Adelaide, AU
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by GazL View Post
This is assuming it's a linux filesystem and not vfat/ntfs ofcourse.
Yes, ext4.
 
Old 03-04-2013, 01:10 AM   #4
jtsn
Member
 
Registered: Sep 2011
Posts: 925

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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).
 
Old 03-04-2013, 04:43 AM   #5
The Seeker 11
Member
 
Registered: Apr 2004
Location: Adelaide, AU
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by jtsn View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which group and which owner ndaka123488 Linux - Software 5 09-20-2011 05:54 PM
Allowing Group and Owner for 3 users acctman Linux - Server 3 04-20-2009 10:34 AM
Changing owner and group of file surfbass Linux - General 2 12-12-2005 02:25 PM
group owner etc MI3GTO Mandriva 3 02-27-2005 08:26 PM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration