LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-15-2006, 01:56 PM   #1
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Rep: Reputation: 15
how to give ordinary users write permission to fat32


I decided to format my windows partition in fat32 so that I can read AND write from linux, and I added this line in fstab
Code:
/dev/sda1       /c              vfat    rw,users        0 0
It is mounted automatically, and normal users can read its contents. However, normal users can't write to /c at all. (and when I do ls -l it shows that root owns everything). Normal users CAN unmount and then remount /c. After doing this normal users have write access.

My question is, how can I have it be mounted automatically with rw access for normal users?
 
Old 01-15-2006, 02:09 PM   #2
zhelezov
Member
 
Registered: Jan 2006
Location: Bulgaria
Distribution: debian, grml, ubuntu
Posts: 69

Rep: Reputation: 15
FAT file systems don't deal with any file permissions...i suggest modifying fstab with the following:
Code:
/dev/sda1       /c          vfat    defaults,umask=0000 0 0
This would give everyone full access to that drive, so be careful if that's not exactly what you wish!

Good luck!
vlado
 
Old 01-15-2006, 02:35 PM   #3
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thank you! That worked perfectly. I'm the only user on my system, so I'm not concerned with "all users" having access.
 
Old 01-15-2006, 03:03 PM   #4
zhelezov
Member
 
Registered: Jan 2006
Location: Bulgaria
Distribution: debian, grml, ubuntu
Posts: 69

Rep: Reputation: 15
just because i just saw you didn't have 'auto' option enabled in the original posting...

one more remark - 'defaults' includes automounting at boot time, so you may replace it by anything...you feel useful.

Last edited by zhelezov; 01-15-2006 at 03:08 PM.
 
  


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
give regular users permission to NTFS drives carl0ski SUSE / openSUSE 24 12-31-2005 08:30 PM
fat32 partition, ordinary users read/write quietbyday Linux - General 1 08-01-2005 11:31 PM
give users permissions to write dragosp Linux - Security 2 09-12-2004 06:53 AM
give users permission to install software in their directory? ksgill Linux - Newbie 7 12-17-2003 11:16 AM
How do I give users read but not delete permission suse7.1user Linux - General 2 09-03-2003 05:13 PM

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

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