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.
No, I don't think you'll have to reinstall. I'm assuming that since you have them under /mnt that they are on a seperate device/partition than the rest of your system. What did you mount this device/partition with? If you've got a referring entry in /etc/fstab for this mount point, please post it.
Well you said it's a partition of another harddrive then the one running linux. Does that mean that it's also a different partition type like maybe FAT32. Because FAT32 can't handle permissions per file so you have to set default permissions for the whole partition. You can do that by editing the /etc/fstab file.
This would make all the files on the partition owned by user-id 500 and group-id 500. The umask tells it to make all file permissions 775. Those are the most important ones which you have to play with.
Ahhh, yes. We now see the problem I should have thought of this when you first mentioned /mnt
Yeah, you will need to also add a umask to be able to write to a fat32 filesystem. If you only want root to be able to write to it, a umask=022 will be sufficient.
I'd suggest doing this in /etc/fstab as this will make it easier for future use, so try an entry like this:
/dev/hda5 /mnt/e vfat users,auto,umask=022,rw 0 0
Then unmount and remount the drive with:
mount -a -o remount
This will unmount and mount the drive with the new permissions.
Subtract it. That's the easiest way to look at it. If you want to have something with a chmod of 555, then subtract it from 777, and that's your umask. So a chmod 555 is equal to a umask 222
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.