LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-07-2005, 11:16 PM   #1
ExoZagNoid
Member
 
Registered: Jun 2004
Location: Gibbons, Alberta, Canada
Distribution: Fedora Core
Posts: 51

Rep: Reputation: 15
User can't write mounted fat32 drive?


Hello all.

Using Kubuntu (Hoary).

My primary drive is dual boot XP and Kubuntu.

I have a secondary drive (Primary slave [hdb]) which is formatted using fat32. I used to use it to transfer files between XP and linux. Problem is since installing kubuntu (from FC4 test I believe), only root can write to the drive. I'd like for my user to be able to write to the drive.

Here's the line in my fstab:

# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hdb1 /mnt/40GB_F32 vfat rw,users 0 0

Here's the permissions on the /mnt/40GB_F32 directory:
drwxr-xr-x 9 root root 16384 2005-06-05 23:16 40GB_F32

Even after a "sudo chmod 777 40GB_F32/" the permissions don't change.

I've also tried "chown -R exo:exo 40GB_F32" but that didn't seem to do anything either.

I'm not sure what I'm missing here. Root can do everything just fine.

Thanks,
Exo
 
Old 06-07-2005, 11:37 PM   #2
smokybobo
LQ Newbie
 
Registered: Feb 2003
Posts: 29

Rep: Reputation: 15
Here's a workable entry in my fstab:

Code:
# Windows FAT32 File Systems
/dev/hda9       /shared vfat    nodev,noexec,nosuid,gid=fat32,umask=007    0       0
On my system I have a group called 'fat32', and all users that I want to be able to write to the above partition I include them in the group. The umask option gives all files 0770 permissions, so only the owner and people in the specified group can read and write to the partition.

The 'users' option in your fstab means any user can mount and unmount the partition. But since I'm guessing this is auto-mounted when you boot your system, then root would be the one to mount, hence the permissions for only root.
 
Old 06-08-2005, 10:49 PM   #3
septanla
Member
 
Registered: Sep 2003
Posts: 69

Rep: Reputation: 15
I think adding usmak in your fstab should be able to solve your problem. Using umask=0 0 0 to give a try.
 
Old 06-08-2005, 11:54 PM   #4
bluesman2333
Member
 
Registered: Dec 2003
Location: Phoenix, Az.
Distribution: Xubuntu Edgy
Posts: 330

Rep: Reputation: 30
This might help:

http://my.opera.com/forums/showthrea...threadid=83440
 
Old 06-09-2005, 08:05 PM   #5
ExoZagNoid
Member
 
Registered: Jun 2004
Location: Gibbons, Alberta, Canada
Distribution: Fedora Core
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks people.
It works with the "nodev,noexec,nosuid,gid=mygroup,umask=007" options for now. Maybe it just needs the group or the umask. I'll have to read up on it a bit more. Thx for the link.

Exo
 
  


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
FAT32 shared drive lacks user write access abijah Linux - General 2 06-28-2004 06:28 PM
Why cant i write to a mounted ide drive as user? timmie merc Linux - Newbie 2 03-07-2004 09:42 AM
Accessing mounted fat32 partitions as user linuxgamer09483 Linux - Newbie 3 02-13-2004 05:43 PM
write access to mounted drive woja Linux - Newbie 3 11-05-2003 02:24 AM
Slack 9: mounted FAT32 partitions cannot be accessed by normal user Obi-Wan_Kenobi Slackware 6 07-12-2003 11:15 PM

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

All times are GMT -5. The time now is 01:10 AM.

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