LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-26-2014, 12:28 PM   #1
QGchi2
LQ Newbie
 
Registered: Jan 2014
Location: Rapid City, SD
Distribution: Ubuntu 14.04
Posts: 2

Rep: Reputation: Disabled
Allowing an external hard drive to be used by two users in Ubuntu 14.04


I am having an interesting issue:

I have 1 laptop and I made two user accounts for myself (ldm) and (a10).

I am using Ubuntu 14.04 which is running locally on the laptop.

The user called ldm is extracting data from an offsite location and saving the data to an external hard drive for space issues.

My second user, a10, must be able to access this data and display it with a software package I installed.

The data is stored therefore in /media/ldm/A10_2
(A10_2 is the name of the external)

However, when i log in as the A10 user rather than the ldm user and go to /media/ldm/A10_2, it won't let me view it due to permission issues.

Thus, I tried to do the following command:

chmod -R 777 /media/ldm/A10_2

This did not change the permissions

Then I tried to do

chown a10 A10_2

this did not change the owner.

I then tried to mount to the drive using the following command

mount --bind /media/a10 /media/ldm/A10_2

this mounted the location, but the a10 user could not see the data, but the ldm user could see both.

What I need is for both user accounts to be able to access this data saved and be able to rwx.

How can I do this?
 
Old 08-26-2014, 03:35 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Your command:

Code:
chmod -R 777 /media/ldm/A10_2
run with sudo permission would fix the issue, because it would allow 'others' to rwx.

I think more traditionally, you could use groups; there should be an 'ldm' group that got created when you created the 'ldm' user. Add a10 to this group with usermod or use System Settings > Users and Groups.

Then make sure that all the files on the drive are owned by the ldm user and the ldm group, and change the permissions to 770. a10 should be able to rwx through the group permission.
 
  


Reply

Tags
external hdd, mounting, permissions



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu on an External Hard Drive robertsd0714 Linux - Newbie 6 10-23-2011 12:13 AM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Setting permissions on an external USB hard drive so that all users can read from it? Pi Man Linux - Hardware 2 09-07-2004 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:28 PM.

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