[SOLVED] Enabling all Linux users to write to a partition
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I created a seperate partition (FAT32) to exchange files between Windows XP and Linux (Mandriva 2007 Free) but I can't write any files to it when I'm on Mandriva. So I checked the permissions and 'Group' and 'Other' are set to 'Can View Content'. I want to change this to 'Can View & Modify content' but when I select that option it says 'Access denied to /mnt/wind_d'. So I figured I had to be logged in as root to change it but I don't know how to start a session as 'root' (when I try logging in it says 'root logins are disabled' and I read on these forums that it's because of safety concerns). Then I tried opening a terminal and browsing to 'hda8' (the partition) to use the command 'chmod' but the only one I managed to find was in /dev/ and that's not the actual partition I think. How could I solve this problem? Thanks in advance,
if you're already successfully mounting on boot to /mnt/win_d or similar then just edit /etc/fstab and on the line there that's already doing the mounting, add "umask=000" to the options section. that will force *everything* within that partition to be world readable and writable. note that as this is crappy old fat32, you have to lie and coerce file permissions, and can't change them at an individual file leve, as there is no where for that information to actually go or to be understood by the fat32 format.
if you're already successfully mounting on boot to /mnt/win_d or similar then just edit /etc/fstab and on the line there that's already doing the mounting, add "umask=000" to the options section. that will force *everything* within that partition to be world readable and writable. note that as this is crappy old fat32, you have to lie and coerce file permissions, and can't change them at an individual file leve, as there is no where for that information to actually go or to be understood by the fat32 format.
Thanks for the help, but I'm still having problems. Here's the line in my fstab:
I tried creating a new textfile on hda8 but it still won't let me, do I have to run something first in order to let the changes be recognized? (Keep in mind I'm a real newb to Linux)
The code looks right--did you run "mount" after changing the fstab?
If you do ls -l, what permissions are shown after mounting with your new fstab?
I did not run 'mount' but I rebooted and it works now, running mount would have done the same thing? So 'mount' basically re-does the 'commands' in fstab?
I did not run 'mount' but I rebooted and it works now, running mount would have done the same thing? So 'mount' basically re-does the 'commands' in fstab?
fstab is the code that tells the system what to mount and where (and when).
The default is mount automatically at boot time.
If there is "noauto" in the options, then you have to mount manually.
If it mounts at boot, you can always unmount (umount) and mount manually.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.