Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-09-2008, 12:14 AM
|
#1
|
LQ Newbie
Registered: Dec 2006
Location: Australia
Distribution: Lime or Android (Tablet and Phone)
Posts: 3
Rep:
|
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
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/sdb6 /mnt/DAD vfat rw,users,umask=0003,gid=dad 0 0
/dev/sdb9 /mnt/DATA vfat rw,users,umask=0003,gid=dad 0 0
/dev/sdb8 /mnt/FAMILY vfat rw,users,umask=0003,gid=dad 0 0
/dev/sdb10 /mnt/GENERAL vfat rw,users,umask=0003,gid=dad 0 0
/dev/sdb7 /mnt/MUSIC vfat rw,users,umask=0003,gid=dad 0 0
/dev/sda7 /mnt/EXTRATHREE vfat rw,users,umask=0003,gid=dad 0 0
/dev/sda6 /mnt/EXTRATWO vfat rw,users,umask=0003,gid=dad 0 0
/dev/sda5 /mnt/EXTRAONE vfat rw,users,umask=0003,gid=dad 0 0
|
|
|
02-09-2008, 01:51 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
Have you tried su - root
|
|
|
02-09-2008, 01:57 AM
|
#3
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
Fat partitions do not have access rights like ext 3(or most other linux FS) do.
|
|
|
02-09-2008, 02:54 AM
|
#4
|
Member
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44
Rep:
|
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.
|
|
|
02-09-2008, 04:00 AM
|
#5
|
LQ Newbie
Registered: Dec 2006
Location: Australia
Distribution: Lime or Android (Tablet and Phone)
Posts: 3
Original Poster
Rep:
|
Re Operation Not Permitted
Many thanks to everybody. Was unaware of problems with fat32 and Linux. Tried Ubuntu 7.04 and it didn't seem to have the same problem.
One further question. If I change gid to users will any user have access to that drive or do I have to attempt to change group name to users as well?
|
|
|
02-09-2008, 05:31 AM
|
#6
|
Member
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44
Rep:
|
"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.
|
|
|
02-09-2008, 07:03 AM
|
#7
|
LQ Newbie
Registered: Dec 2006
Location: Australia
Distribution: Lime or Android (Tablet and Phone)
Posts: 3
Original Poster
Rep:
|
Re Operation Not Permitted
Hi again all (especially Lepakko)
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?
|
|
|
02-10-2008, 05:56 AM
|
#8
|
Member
Registered: Feb 2008
Location: Mannheim, Germany
Distribution: Debian Etch
Posts: 44
Rep:
|
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/ ).
|
|
|
All times are GMT -5. The time now is 01:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|