Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-30-2005, 10:55 AM   #1
LQ Newbie
Registered: Dec 2005
Location: Maine
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
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!
Old 12-30-2005, 10:59 AM   #2
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
Please post your fstab file

Peace V
Old 12-30-2005, 11:03 AM   #3
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
open up your fstab filein a editor (as root)

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

Assuming that your windows drive is named hda1

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

That should do it
Old 12-30-2005, 08:49 PM   #4
LQ Newbie
Registered: Dec 2005
Location: Maine
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks antiloaded it worked oh and by the way can anyone tell me what each option does?
Old 12-30-2005, 10:26 PM   #5
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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??
Old 12-31-2005, 12:30 AM   #6
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.


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 a fat drive for non-root users sadarax Linux - Hardware 2 05-17-2006 02:51 AM
mounting hard drive partition write for normal users jojotx0 Linux - Hardware 1 04-19-2005 12:10 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
Mounting NTFS drive for all users laurentbon Slackware 7 10-27-2003 06:13 AM
Mounting a FAT32 drive to be Read_write_execute for all users? Please help shassouneh Linux - Hardware 7 05-19-2002 08:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration