LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-permissions-301893/)

canuck_barlow 03-15-2005 10:52 AM

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?

Genesee 03-15-2005 11:02 AM

what are the permissions on the mount directory?

Matir 03-15-2005 11:02 AM

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.

canuck_barlow 03-15-2005 03:30 PM

The file system is NTFS because I used this drive with my Win XP sometimes.

How do I check the permissions again?

Matir 03-15-2005 03:35 PM

I believe umask would apply to NTFS as well.

Genesee 03-15-2005 05:54 PM

Quote:

Originally posted by canuck_barlow

How do I check the permissions again?

http://www.redhat.com/docs/manuals/l...ownership.html

canuck_barlow 03-16-2005 08:40 AM

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.

Genesee 03-16-2005 09:40 AM

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)

fssengg 03-16-2005 09:51 AM

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

Matir 03-16-2005 10:46 AM

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.

canuck_barlow 03-16-2005 06:43 PM

Thanks Matir, that works great!!

Matir 03-16-2005 09:33 PM

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.


All times are GMT -5. The time now is 05:18 PM.