Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc
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.
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc
Hi Folks
I have been using Linux (mostly Red Hat/Fedora) for many years and have found its requirements for manipulation to achieve same as Wingows, the main reason most "non-techs" won't use it.
Recently installed Fedora 8 on SATA drive with other Fat32 partitions on it. As usual, getting Fedora to mount the partitions was a nightmare. Eventually rewrote Fstab and can now access drives but still have major problem.
When I log in as root and try to use chmod, chgrp etc I get "operation not permitted". Why??. I am root. Fstab below. Any suggestions
Aye. You may want to read about FAT by e.g. Wikipedia, where it says that 1) FAT is developed by Microsoft and as such by design is not really optimal, especially in Linux, 2) fragmentates rather quickly when compared to Linux filesystems, and most importantly 3) doesn't support POSIX standard file owners and permissions. In other words, there are no permissions, which is why you can't change them. Unfortunately you get the standard error message, when a better error would've been "There are no permissions to change."
You can still use FAT if you want to share files between Windows and Linux though, but if you'd rather change it to get the file permission support (and if you can change the FS without data loss), there are ext2/ext3 drivers for Windows available here.
"gid" is a number, so you can't change that to "users", but you can change that to the gid of the group "users", like 200. You can see the list of the groups of the system in /etc/group, with the group name corresponding to each group (gid). So changing the group name doesn't make a difference, it's the group ID (the number) that does. chgrp accepts either group names or gid's. This all, of course, doesn't apply to the files on a FAT filesystem, since FAT doesn't know about groups, but you probably wanted to change the gid of the corresponding device file (like /dev/sdb7) anyway.
Once again, many thanks for adding to my limited knowledge of Linux. You have all told me that fat32 does not have permissions etc yet, when I use Gnome File Browser and open the properties ->permissions for a file or directory, I get a full list of permissions for owner, group and others. Is this because of what I have entered in my fstab file??
This is a dual boot system (Fedora 8 and Windoze XP). Would it be quicker and simpler (and better) if I reformatted the partitions in question to ext3? What would be the implications with windows XP?
Gnome File Browser shows the permissions as they are (allow everything for everyone), but you can't change them. It's the same if you do 'ls -l' to FAT files; you see the rwxrwxrwx, since there are no permissions (or more exactly there are no limits). Having no support for permissions means basically you can't restrict the rights, everything is allowed instead.
It would make using your FAT partitions simpler and faster in Fedora if you reformatted them in Ext3, but you'd lose all your data during the process. There is an Ext2/3-driver for Windows, so that you would still be able to access your files of an Ext3-filesystem from Windows using that driver (found at http://www.fs-driver.org/ ).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.