LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-28-2007, 12:05 AM   #1
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406
Blog Entries: 4

Rep: Reputation: 80
mount permissions get changed


Hello,
I have a partition /dev/sdb2 which is formated to vfat, but cannot write to it except as root. Does not matter how it is mounted. When it is mounted the file permissions get changed to drwxr-xr-x have tryed all different mount options. Is it something to do with udev?

nigelc
 
Old 08-28-2007, 12:15 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Post your /etc/fstab file. You have to edit the fstab entry for vfat partitions to change read/write permissions. It's easier to explain if we can see your current fstab.
 
Old 08-28-2007, 01:13 AM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 406

Original Poster
Blog Entries: 4

Rep: Reputation: 80
I have fixed it now.
it needed the umask
here is the fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/sdb2 /mnt/win_d vfat umask=00 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
 
Old 08-28-2007, 01:20 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Your fstab entry seems to indicate that it allow "other" write permissions. Try unmounting it and remounting it manually as a test. First try "umask=000".

sudo umount /dev/sdb2
sudo mount /mnt/win_d

ls -ld /mnt/win_d

For a globally writable vfat partition, I would use "dmask=000,fmask=111,noexec,noatime" instead of "umask=000".

You can also use the "uid=<username>,gid=<groupname>" options to make yourself the owner of the partition. For removable usb drives, I use this with the UUID number for the device and the user option as well.

Last edited by jschiwal; 08-28-2007 at 01:31 AM.
 
  


Reply



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
changed permissions, ls does not work blizunt7 Linux - General 3 09-26-2005 07:12 AM
file permissions cant be changed! shishimo Fedora 1 12-04-2004 10:23 AM
changed permissions shosh Linux - General 3 11-02-2004 05:07 AM
Something Changed File Permissions anthony114 Linux - Security 2 08-12-2003 08:53 PM
Permissions changed crashmeister Linux - Security 3 11-13-2002 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:18 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