Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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:
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
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.
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!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.