chmod chown permissions not working operation not allowed
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Slack, Solaris, whatever I have space for
Posts: 32
Rep:
chmod chown permissions not working operation not allowed
This is a repost of a great answer in a thread with a non-descriptive title. Having burned 3 hours of my time on earth digging through posts trying to find this, I thought it might help others with the same issue. The original thread can be found here. I found #3 in this post to be exceptionally helpful.
Quote:
Originally Posted by Excalibur
1) Your NIC card may be a RTL8139 based card and the system is attempting to load the driver. However, there are two drivers available. 8139cp and 8139too The first is usually the 8139cp and it appears to be failing, however, the 8139too may be loading. You can check this by using the lsmod command to list the loaded modules. If 8139too is loaded then you can fairly safely assume the errors can be ignored.
2) If you are logged in as a normal user and want to mount a data CD then you need to add the "user" or "users" option in the /etc/fstab file to allow a user to mount the CD. The line should look like;
/dev/cdrom /mnt/cdrom iso9660 users,noauto,ro 0 0
Also, an audio CD cannot be mounted like a data CD. So you will not be able to "see or view" the tracks in the directory tree of any mount point. If you wish to just play an audio CD then try "kscd". If you wish to play, rip, mp3 encode, catalog, etc. then search for a program called "grip". Google should turn up a location.
3) When a FAT16(32) partition type is mounted, the mount command changes the permissions on the directory according to the default umask setting in /etc/profile which is 022. This setting equats to a 755 (rwxr-xr-x). I believe this is because the file system types do not have their own permision settings so it will inherit the mount point permision on all files. If you desire to mount the partitions to allow all users write permission then mount it with the option of umask=000. This will equate to a 777 (rwxrwxrwx). So an fstab entry would look like below;
If your system has some other options then simply add them together using the comma as a separator.
4) Hard disks are identified by the hdx or sdx type device name. The partitons are the disk device name with a partition number added. So that /dev/hda is the first IDE hard disk and /dev/hda1 is the first IDE hard partition number one. The device /dev/hda cannot be directly mounted because it is not a partition. There are operations that can be done on the disk device name but they are few. For instance when you want to create partitions you always use the disk device name and never the partiton number. So the use of these device names are context sensitive as well.
5) On the /dev/cdrom link. It is just a symlink. Normally all symlinks are by default set with full permisisons allowed. It is the real device name that many times must have the permisions changed. For example; if the device /dev/cdrom points to /dev/scd0 then change the permisions on /dev/scd0. Since normally only root can mount/umount hard disk partitions, it doesn't seem to make much sense to attempt to change permissions on the device name. But then again I have never had a need to either. It would be better to just specify them in the /etc/fstab and let the system mount them when you boot. Then use the "users" option on removable media like a cdrom drive.
Sorry, I do not know anything about themes or blackbox and stuff like that. I am not one for eye candy so I just leave it the way it is unless it is obtrusive to the use of the system.
Hope the info above will at least help in the other areas that I think you were asking about.
Last edited by UMG:Chicken_Soüp; 11-05-2007 at 11:28 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.