LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting a drive so all users can see it (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-drive-so-all-users-can-see-it-397873/)

shortman101n 12-30-2005 10:55 AM

mounting a drive so all users can see it
 
I need help mounting a drive so that all users can read it. I have got it mounted before but only root can see the files. I am dual booting linux and windows xp so the drive I am tring to mount is my NTFS windows drive. I only want to be able to read the files because I have heard of some of the write problems with NTFS and linux. as I said I have got it mounted but when I go into my GUI and click where it is mounted it says I don't have permission to access these files. But when I go into the terminal as root I can type ls and see the files. I need full user access!

cuiq 12-30-2005 10:59 AM

Please post your fstab file;)


Peace V:cool:

anti.corp 12-30-2005 11:03 AM

open up your fstab filein a editor (as root)

Code:

pico /etc/fstab
Insert users in the line so it looks someting like this:

Assuming that your windows drive is named hda1

Code:

/dev/hda1            /windows/C          ntfs      noauto,ro,users,gid=users,umask=0002,nls=utf8 0 0

That should do it :)

shortman101n 12-30-2005 08:49 PM

Thanks antiloaded it worked oh and by the way can anyone tell me what each option does?

pixellany 12-30-2005 10:26 PM

try "man fstab"---or any of many good introductory books

Also try experimenting: use mkdir to set up a directory, mount something there and then play with permissions, etc.

Recognize the above as smokescreen cuz I dont know specific answer??

btmiller 12-31-2005 12:30 AM

Basically, Windows filesystems don't understand Unix style permissions, so the VFS layer in the kernel grafts permissions on to files in Windows partitions. The uid and gid parameters tell which user and group respectively should own the files. The umask determines which permissions are given to other users. Starting from a base of all permissions granted, the umask tells which permissions should then be denied. A umask of 0002 says that only write permissions from "others" should be denied. Please read the man page for chmod and umask for a more thorough description of how this all works.


All times are GMT -5. The time now is 08:45 PM.