LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-15-2005, 10:52 AM   #1
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
Mounting Permissions


I have an external hard drive for my laptop that I am able to mount with the sda1 device. However, after I mount it, I can't access it from my regular user account.

Do I have to adjust the permissions somehow or mount it differently?
 
Old 03-15-2005, 11:02 AM   #2
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
what are the permissions on the mount directory?
 
Old 03-15-2005, 11:02 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 116Reputation: 116
Well, you didn't say which filesystem you are using, but I'm going to guess it's FAT32, as with any linux filesystem, it would be just like any other drive.

You'll want to look into the umask= mount option. umask=000 will give all users full rw access (assuming it is mounted rw) to the drive.
 
Old 03-15-2005, 03:30 PM   #4
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
The file system is NTFS because I used this drive with my Win XP sometimes.

How do I check the permissions again?
 
Old 03-15-2005, 03:35 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 116Reputation: 116
I believe umask would apply to NTFS as well.
 
Old 03-15-2005, 05:54 PM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by canuck_barlow

How do I check the permissions again?
http://www.redhat.com/docs/manuals/l...ownership.html
 
Old 03-16-2005, 08:40 AM   #7
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
Can somebody write down the exact code I need to use to get this to work?

I've trying changing permissions, ownership, you name it... can't get it to work.
 
Old 03-16-2005, 09:40 AM   #8
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
barlow -

it would help if you posted exact steps you've taken, and what exactly you're trying to do. what is the output of

ls -l <mountpoint> (mountpoint being the dir you mounted the external partition to)
 
Old 03-16-2005, 09:51 AM   #9
fssengg
Member
 
Registered: Feb 2005
Location: Kerala(God's own country)
Distribution: Redhat-8
Posts: 35

Rep: Reputation: 15
i think not all distos support ntfs file system currently .first check ur distibution support it.
check the proc/modules list

Last edited by fssengg; 03-16-2005 at 09:52 AM.
 
Old 03-16-2005, 10:46 AM   #10
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 116Reputation: 116
Quote:
Originally posted by fssengg
i think not all distos support ntfs file system currently .first check ur distibution support it.
check the proc/modules list
He said he can mount it, but a normal user can't read it.

Code:
mount -t ntfs -o umask=000 /dev/sda1 /mnt/point
Should do it for you.
 
Old 03-16-2005, 06:43 PM   #11
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks Matir, that works great!!
 
Old 03-16-2005, 09:33 PM   #12
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 116Reputation: 116
No problem. I'm assuming this is a single user system, but if it does have multiple users, you need to be aware that ALL users will now have access. There are uid= and gid= options, IIRC, that would be able to deal with that. On a single user system, I wouldn't worry about it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mounting and permissions kronchev Linux - Software 2 03-26-2005 04:28 AM
folder permissions when mounting to them Lokheed Linux - Hardware 2 09-16-2004 09:52 PM
Mounting and Permissions ngreimel Linux - Newbie 3 08-10-2004 04:26 PM
Mounting Permissions ewto Linux - Newbie 2 09-30-2003 04:22 AM
Mounting permissions loganwva Linux - Networking 2 04-25-2002 04:14 PM


All times are GMT -5. The time now is 01:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration