This is a discussion on hotplug-2004_09_23-noarch-5: Permission denied within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello everyone, I have currently a very strange problem with some packages on my system. When I act as ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello everyone, I have currently a very strange problem with some packages on my system. When I act as root and I try to install/remove or upgrade a package I get always the following messages : root@slackie:/tmp/mono-gtk-sharp-2.4.1# removepkg mono-gtk-sharp-2.4.1 Removing package /var/log/packages/mono-gtk-sharp-2.4.1... Removing files: ls: hdparm-6.1-i486-1: Permission denied ls: hotplug-2004_09_23-noarch-5: Permission denied ls: infozip-5.52-i486-1: Permission denied and after such a message he starts deleting/installing. When I'm looking in /var/log/packages I can see the files of the packages but I can 't move/edit/view the files. I've also tried reinstalling the hotplugpackage, but then I get the following message : root@slackie:/home/jan/packages# installpkg hotplug-2004_09_23-noarch-5 Installing package hotplug-2004_09_23-noarch-5... PACKAGE DESCRIPTION: hotplug: hotplug (scripts to detect and configure hardware devices) hotplug: hotplug: This package contains scripts used to initialize and configure hotplug: hardware at boot time or when it is plugged into the machine (aka hotplug: hotplugging). The /sbin/hotplug script will be called by the hotplug: kernel to load the appropriate support modules and set up the device. hotplug: /sbin/installpkg: line 408: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 409: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 410: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 411: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 413: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 414: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 416: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 418: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied /sbin/installpkg: line 422: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied ..... Does someone knows what could be the reason for the error ? Distro : Slackware 10.2 Thanks in advance, Jan Meskens |
| |||
| Jan Meskens wrote: > Hello everyone, > > I have currently a very strange problem with some packages on my system. > When I act as root and I try to install/remove or upgrade a package I get > always the following messages : > > root@slackie:/tmp/mono-gtk-sharp-2.4.1# removepkg mono-gtk-sharp-2.4.1 > > Removing package /var/log/packages/mono-gtk-sharp-2.4.1... > Removing files: > ls: hdparm-6.1-i486-1: Permission denied > ls: hotplug-2004_09_23-noarch-5: Permission denied > ls: infozip-5.52-i486-1: Permission denied > > and after such a message he starts deleting/installing. When I'm looking > in /var/log/packages I can see the files of the packages but I can 't > move/edit/view the files. > > I've also tried reinstalling the hotplugpackage, but then I get the > following message : > > root@slackie:/home/jan/packages# installpkg hotplug-2004_09_23-noarch-5 > Installing package hotplug-2004_09_23-noarch-5... > PACKAGE DESCRIPTION: > hotplug: hotplug (scripts to detect and configure hardware devices) > hotplug: > hotplug: This package contains scripts used to initialize and configure > hotplug: hardware at boot time or when it is plugged into the machine (aka > hotplug: hotplugging). The /sbin/hotplug script will be called by the > hotplug: kernel to load the appropriate support modules and set up the device. > hotplug: > /sbin/installpkg: line 408: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 409: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 410: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 411: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 413: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 414: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 416: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 418: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > /sbin/installpkg: line 422: /var/log/packages/hotplug-2004_09_23-noarch-5: Permission denied > .... > > Does someone knows what could be the reason for the error ? > > Distro : Slackware 10.2 > > Thanks in advance, > > Jan Meskens > Check the permissions of the directories /bin /usr/bin /sbin ... and others directories in your PATH and in the root PATH. Most probably you have installed a malformed package that have messed up these permissions (did you use rpm2tgz?). (the standard permission/ownerships are for /usr/bin drwxr-xr-x 2 root bin 32768 2006-01-17 02:40 /usr/bin/) Olive |
| |||
| Le 15.02.2006 15:34, Jan Meskens a écrit : > Hello everyone, > > I have currently a very strange problem with some packages on my system. > When I act as root and I try to install/remove or upgrade a package I get > always the following messages : > > root@slackie:/tmp/mono-gtk-sharp-2.4.1# removepkg mono-gtk-sharp-2.4.1 > > Removing package /var/log/packages/mono-gtk-sharp-2.4.1... > Removing files: > ls: hdparm-6.1-i486-1: Permission denied > ls: hotplug-2004_09_23-noarch-5: Permission denied > ls: infozip-5.52-i486-1: Permission denied > <snip> If i was you i will try cd /var/log/packages chmod 644 hdparm-6.1-i486-1 chmod 644 hotplug-2004_09_23-noarch-5 chmod 644 infozip-5.52-i486-1 Christophe |
| |||
| Jan Meskens <meskensjan@gmail.com> wrote: : root@slackie:/tmp/mono-gtk-sharp-2.4.1# removepkg mono-gtk-sharp-2.4.1 : Removing package /var/log/packages/mono-gtk-sharp-2.4.1... : Removing files: : ls: hdparm-6.1-i486-1: Permission denied : ls: hotplug-2004_09_23-noarch-5: Permission denied : ls: infozip-5.52-i486-1: Permission denied You need to provide more information such as ls -l on each of the files which causes the errors and ls -ld on all the directories along the tree to those files. In addition, check if the immutable bit or other related bits have been set via the chattr command by doing lsattr on each of the files. Post that information because without it, it is impossible to tell if this is a permission error or an immuntable bit error. |
| ||||
| Jan Meskens wrote: > When I act as root and I try to install/remove or upgrade a package I get > always the following messages : > > root@slackie:/tmp/mono-gtk-sharp-2.4.1# removepkg mono-gtk-sharp-2.4.1 > > Removing package /var/log/packages/mono-gtk-sharp-2.4.1... > Removing files: > ls: hdparm-6.1-i486-1: Permission denied > ls: hotplug-2004_09_23-noarch-5: Permission denied > ls: infozip-5.52-i486-1: Permission denied (In addition to others' suggestions that file permissions might be worth examining ...) immutable flags? What does lsattr say on the files that give you trouble? read-only disk? -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems and Network analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ---------------------------------------------------------------------- |