-   Linux - Newbie (
-   -   can't access ntfs partition as normal user (

rezzie 11-24-2005 06:02 AM

can't access ntfs partition as normal user
i have an ntfs partition on /dev/hda1, but when i mount it as normal user i cant read anything from it

there is no problem when mounting and accessing fat partition on /dev/hda5

here is two line from my /etc/fstab

/dev/hda1 /mnt/hda1 ntfs ro,user 0 0
/dev/hda5 /mnt/hda5 vfat rw,user,umask=133 0 0

abisko00 11-24-2005 06:22 AM

Try the umask parameter (e.g. umask=000) for the ntfs partition as well. Also check the permission of the mountpoint (/mnt/hda1).

rezzie 11-24-2005 06:35 AM

i dont think the usmak can solve the problem

but here is information about permission:

owner: root
group: disk
owner: root
group: disk

owner: root
group: disk
chmod: 660
owner: root
group: disk
chmod: 660

when i mount the /dev/hda1 i notice that the permission
of the /mnt/hda1 changed to:
owner: root
group: root
chmod: 600

note: the normal user account is a member of 'disk' group

abisko00 11-24-2005 07:10 AM

Why don't you think umask will help? I am willing to learn!

From what I know it controls the default permissions on the mounted filesystem and this is what goes wrong here. You can also try to set gid=disk, but with these permissions set, the group still does not have access.

But maybe I am wrong.

rezzie 11-26-2005 07:03 AM

because i've tried it...

and from what i read it will change the default permission of all files on the mounted directory NOT the mounted directory itself

hmmm, i think i'll read more on man pages carefully

ethics 11-26-2005 07:09 AM

/dev/hda2 /mnt/windows ntfs user,umask=000

that's my line in Fstab, i can read from both root/normal user.

rezzie 11-26-2005 08:09 AM

well, i think i found the solution, it is still related to umask (sorry to abisko00 for saying that wouldn't solve the problem :))

i must enter the umask four digit to get it work correctly like what i want

All times are GMT -5. The time now is 12:21 PM.