Permissions can't be changed on mounted Fat32 USB HDD
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Permissions can't be changed on mounted Fat32 USB HDD
I'm new to Linux but have a little experience with it, using UBUNTU 11.04, I have an external 1TB USB HDD mounted to this computer which is running dual boot with Windows7. The HDD is formatted FAT32 and I've set the share options but the permissions for allowing others to access it say NONE and cannot be changed. my other UBUNTU 11.04 computer can see the ShareName that I set for my HDD and even individual files on my usb HDD that I've shared but it is unable to access them. Error recieved: unable to mount location - Failed to mount windows share. I formatted a thumbdrive to ext3 and was able to change permissions and my other computer accesses it just fine.
Other Threads seem close to this but not quite the same thing, in my research FSTAB is not for removable data and I am unfamiliar with how to run CHMOD 777, I don't know what it does, and have heard that it doesn't fix my issue anyways
Are you sure that it is formatted Fat32? If it is NTFS (very common with Windows) then you will need to install from your repositories ntfs-3g in order to access it. Like this:
apt-get install ntfs-3g
I'm using Mint 10, which is very similar to your Ubuntu, and have no difficulty accessing either Fat32, or NTFS on a USB drive.
Try doing a gksudo nautilus to manage the permissions on the drive. Be careful and be sure of what your doing. I have done this in the past
sometimes when switching distros.
First, you were curious about chmod. chmod CHanges file MODes. The file 'mode' is usually called permissions, and is whether it is readable, writeable, or executable (ie. if you can run it as a program, or if the execute permission is set on a directory, whether you can set it as your current directory). You also have the user who owns the file and its group.
I suspect that the files on the drive are set not to be readable by anyone other than the logged-in-user (and probably their group) when the drive is plugged in and the machine turned on. The machine trying to use the drive accesses it as the user/group depending on what your machine is set up to allow them to use, which is failing because it that user is not you.
You can set the USB disk to be mounted to be readable by everyone (not sure how to do this in the GUI, but adding options to an entry in fstab for the drive would allow it - may need to create a permanent entry which the system should use again each time). This obviously is less secure. Or you can make the USB drive mounted by a group/user that both of you can read/write as appropriate. Not sure what user the remote computer is accessing it as - is there an equivalent local user on your machine? Or maybe its accessing it as a general network-share 'guest' or equivalent anonymous user (if so, you probably dont want to open up the drive to be accessed by guest cos then anyone at all on the network could do the same read/write).
Sorry for not providing easy command lines or places to change in config files/a user-interface step-through, but I think thats the basics of how to make it do what you want.
Just a guess. If the "immutable" flag is set not even root can change permissions or delete the file. Take a look at man chattr and man lsattr. So look with lsattr /path/dir_or_file. If you see an "i" in the first field, that's what stops you. I think ls -l /path/file may also show this. chmod is good to know as well. chmod 775 will give -rwxrwxr-x perms. If this is a directory x perms are needed to cd into the dir. Hope this helps.
---------- Post added 07-01-11 at 01:09 PM ----------
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.