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.
Hello guys! I have a partition at my HD, /dev/hda3, which filesystem is FAT32 and I have some music and other stuff there. When I try to mount it in a dir and open any music there with any regular user, I just see it cannot access the files, and I suppose this is the reason:
drwxr--r-- 8 root root 4096 1969-12-31 21:00 hda3
I think I should make this with the "rx" parameter to the other users, right?
As root, I have already tryed the following commands:
chmod 755 /dev/hda
chmod 755 /dev/hda3
chmod 755 /mnt/hda3 (the dir where it is mounted)
But it not worked. For some reason, the permission just keep as it is, "r" but not "rx" for the other users. I could just as root copy my mp3s from this partition to any dir under my linux partition and make them acessable for the other users, and that is what I actually do. But the problem is that I have a lot of mp3 and I think it can be waste of HD space and maybe there is another intelligent way to solve the problem.
So I would like to know, please, if anyone can help me in this problem.
You might try doing the chmod recursively, as the command you did on ly changed the permissions on the directory itself, not the files contained within. To do this, just type
Hmmm sorry but it did not work again...I had even tryed to set the permissions again but no success. I can see the icon to "hda3" in my desktop and it shows the first files, but not the others...just like before...it says "attempt to log in failed" when trying to access a file or a folder. Permissions still "r" and not "rw" for the others. See:
I'm sorry, I konw this must be getting a bit annoying for you...
I'm out of ideas for now. I guess you could always try and enter it into fstab just like the root partition, and see if that works. I must be honest and admit that I don't know alot about what all the parameters in fstab mean. But, the nice thing about linux is you can play around with this stuff and not totally destroy your system. It's great for trial-and-error guys like me.
So, I guess if you're not sick of this, you can always try making the fstab line look like this...
/dev/hda3 /mnt/hda3 vfat defaults 0 0
or, if that doesn't work...
/dev/hda3 /mnt/hda3 vfat defaults 1 1
I have NO idea what the 0 0 or the 1 1 do, but obviously you see them at the end of most of the entries...so try them both...
Oh, and it occurs to me that perhaps the partition is never being mounted, so after a reboot do:
less /etc/mtab
and make sure it's listed in there. If not, do
mount /mnt/hda3
and see if that mounts it...
Good luck and, again, sorry I'm not more knowledgeable here...
Oh thanks so much michaelk! Now it worked*...I was really not trying to change the permissions while the partition was mounted, I have care to umount before...but unfortunately until I add the line you said in /etc/fstab the things didn't work...now they are working thanks .
* I had to change for 022 to have I really wanted
jeffreybluml: thats ok man, thanks so much you too for at least trying to help! . The solution was really that...
Does anyone has any link for some site that explains well these things about fstab? Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.