LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Only root access for mounted harddisks (https://www.linuxquestions.org/questions/linux-hardware-18/only-root-access-for-mounted-harddisks-169179/)

lord-darkness 04-12-2004 11:35 AM

Only root access for mounted harddisks
 
Hi to everyone!
:)

:Pengy: I have a big problem with my SuSE Linux 9.0 and my NTFS-partions...:cry:

I can mount them without problems, unmount and stuff, but only root is able to accsses the partitions.

In my fstab are lines like this for all my ntfs partions:

/dev/hda1 /media/windows/C ntfs noauto,user,ro,exec 0 0

So, where is the problem? why cant normal users accsses the partions?:scratch:
Why cant I use chmod to give accsess-rights like 777 or 755?:scratch:


Please help! I'm totally frustrated!:jawa:

:newbie:

320mb 04-12-2004 11:45 AM

Code:

/dev/hda1 /media/windows/C ntfs noauto,owner,users,exec,ro 0 0

try this........

aaa 04-12-2004 12:07 PM

(when I looked there was nothing to try) try this:
/dev/hda1 /media/windows/C ntfs umask=0,noauto,exec,ro 0 0
This sets to '777'. 'chmod' won't work on Windows drives. 'noauto' causes the drive to not be mounted on bootup (remove it if you don't want this). 'owner' only lets root mount. 'users' is for letting regular users mount and unmount (put that in if you want, but if it's being mounted automatically on bootup it's not needed).

Hammett 04-12-2004 12:13 PM

I'm not quite sure of that, as i'm not in my PC, but you can also add uid=xxx to fstab file, xxx meaning your normal user ID (mine i think is 500 or 501)
Try also to do a 'chown user:user /media/windows/C' (user is of course your username)

Hope it helps

aaa 04-12-2004 12:17 PM

'chown' won't work. 'uid=' sets the ownership of the files to the referenced user. You can put the name instead of the id if you want: 'uid=jdoe'.

lord-darkness 04-12-2004 12:45 PM

Thanks!
 
Thanks to U all !

I'll try this later...


Succes or Unsucces will follow...

lord-darkness 04-12-2004 01:05 PM

SUCCESS!!
 
Great! :)

THX again to you all, espacially to aaa. your version was right for my Linux (Suse 9.0).:study:

That version 320mb posted was not working!



See you.....:D


All times are GMT -5. The time now is 05:43 AM.