LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-22-2005, 06:38 PM   #1
mreinecker
Member
 
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31

Rep: Reputation: 15
Issues with permissions of a mounted drive


I just installed FC3 on my computer. I have a partition on my only hard drive that's about 20 gb in size, and it contains all of my music. It's a ntfs partition. I added a line to my /etc/fstab to automaticly mount it, however while using a regular user's account, I cannot access the drive. This is what the line looks like:
Code:
/dev/hda5 /music ntfs ro,user,auto 0 0 umask=0222
What's wrong with it ? Why are the permissions wrong, not allowing a regular user to view the drive contents ? The permissions were the same way even without the umask=0222 added onto it. I appreciate the help.
 
Old 03-22-2005, 06:43 PM   #2
calcon
Member
 
Registered: Mar 2005
Location: somewhere over the rainbow theres a place....
Distribution: Ubuntu Dapper and Arch
Posts: 121

Rep: Reputation: 15
If you have the option "user" you need to specify "uid=yourusername" in the options. Or you can use "users" for all users to be able to use it.

Also, if you want to be able to write to it use "rw".

So it would look like this with the user option:
Code:
/dev/hda5 /music ntfs ro,user,uid=yourusername,auto 0 0 umask=0222
Or you could use "users"
Code:
/dev/hda5 /music ntfs ro,users,auto 0 0 umask=0222
calcon
 
Old 03-22-2005, 06:46 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Have you set the permissions on the directory /music. Like chmod 777 music.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 03-22-2005, 06:55 PM   #4
mreinecker
Member
 
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31

Original Poster
Rep: Reputation: 15
I typed chmod 777 /music into a terminal as root.
Code:
[root@localhost ~]# chmod 777 /music
chmod: changing permissions of `/music': Read-only file system
If that is the correct response I should have gotten, then I guess I did that right.

Here's what my line in fstab looks like now:
Code:
/dev/hda5               /music                  ntfs     rw,user,uid=marc,auto 0 0 umask=0222

However, I still face the same problem.
 
Old 03-22-2005, 07:48 PM   #5
calcon
Member
 
Registered: Mar 2005
Location: somewhere over the rainbow theres a place....
Distribution: Ubuntu Dapper and Arch
Posts: 121

Rep: Reputation: 15
So if you go to /music, you can't get the files?

Not sure...
 
Old 03-22-2005, 08:08 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I would chmod /music before mounting the partition and see what happens. The values in fstab should overwrite them though. What about using umask=000.

This the line I use in my fstab for ntfs mount of winxp. Remove noauto if you wish for it to mount on boot.
Code:
/dev/hda1		/mnt/winxp		ntfs	umask=000,users,noauto,owner,ro 0 0
My directory from the command ' ls -la ' - ' drwxrwxrwx 1 root root 8192 Jan 9 19:09 winxp '
I rarely mount it but just mounted as my user account and can see all.

Brian1
" Google the Linux way @ http://www.google.com/linux "

Last edited by Brian1; 03-22-2005 at 08:10 PM.
 
Old 03-22-2005, 08:08 PM   #7
mreinecker
Member
 
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31

Original Poster
Rep: Reputation: 15
Correct... Is a reboot required in this situation ?
 
Old 03-22-2005, 08:11 PM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
No reboot is required. Changes if fstab are ready to go. You will need to manually mount it for now till reboot.

Brian1
 
Old 03-22-2005, 08:52 PM   #9
mreinecker
Member
 
Registered: Mar 2005
Location: New Jersey
Distribution: SuSE Professional 9.2
Posts: 31

Original Poster
Rep: Reputation: 15
Thumbs up

I have all problems fixed. I removed the /music directory I made, unmounted the partition, and removed the line from /etc/fstab. Then I did everything over, in a more logical order. It worked. I also just solved my sound problem. I now I can use XMMS to play music, and still hear sounds in gaim.

Thanks everyone.
 
  


Reply


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
mounted vfat permissions n3tw0rk Linux - General 3 12-05-2003 05:41 PM
Mounted drive permissions? Vfat kiteless Linux - General 3 08-29-2003 01:32 PM
permissions on mounted smbfs-- elsakka Linux - Newbie 0 07-08-2003 03:29 AM
r/w permissions on a mounted ext3 hard drive harperonline Linux - Hardware 1 03-19-2003 06:22 PM
Proplems with mounted drive permissions Davschm Linux - Newbie 2 09-15-2002 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 PM.

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