LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-30-2003, 12:38 AM   #1
m3rc_2003
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
Mounting folder in vfat partition as read-only


Hi,
I am trying to run an ftp server on my machine (vsftpd), with anonymous write enabled. I want only the "uploads" folder to be writable and all the others to be read-only. The problem is that I'm not able to set read-only mount permissions on these other folders. The specific line in the fstab file is:

/mnt/intersys/Songz /var/ftp/Songz none ro,bind 0 0

The "/mnt/intersys/Songz" folder is the folder on the fat32 partition which I want to mount as read-only on the "/var/ftp/Songz" folder. However I see that anonymously logged clients are still able to perform write operations here. Delete operations are not possible but that's because the server property disallows that (by setting anon_other_write_enable to 'NO' in the vsftpd.conf file). Can anyone tell me why the ro mount isn't working?

P.S. I've also mounted a folder on a reiserfs partition on /var/ftp with 'ro'and this is working fine. The lines used to mount the vfat and the reiserfs partion are:

/dev/hda5 /usr reiserfs notail 1 2
/dev/hda3 /mnt/intersys vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

(These were generated automatically during the linux installation)
 
Old 11-30-2003, 12:46 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
I'm by no means an expert on this, but from experience, this is partially why MS is moving to NTFS. vfat has no real read/write limits available. Despite attempts to implement a good solution, nothing is really foolproof. There are simply too many ways to access that filesystem. By allowing write access on one folder, you intrinsically allow that on all of them. The permissions in vfat aren't for the folders, but for the drive itself.

Like I said, I'm no expert, but there's a reason MS recommends ntfs for anything critical.
 
Old 11-30-2003, 01:09 AM   #3
m3rc_2003
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Hey...
Turns out that's exactly what the problem was!! I shifted the uploads folder to a reiserfs partition, leaving all the vfat mounts as 'ro' and things r working fine now!!

Thanks a lot!!!
 
  


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
Can't allow partion permissions for a vfat partition, mounted as my home folder DrD Linux - General 19 07-26-2006 12:26 PM
Need help mounting a VFat partition r/w frandres Linux - Newbie 7 01-17-2005 07:31 AM
user can't read/write (vfat) partition MykilX Slackware 6 07-04-2003 05:32 PM
vfat partition is read only Andrastus Linux - General 18 06-03-2003 01:12 PM
Mounting extended vfat partition shaggz Linux - General 15 05-26-2003 06:33 AM

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

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