Unix Technical Forum

hotplug-2004_09_23-noarch-5: Permission denied

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 02:37 PM
Jan Meskens
 
Posts: n/a
Default hotplug-2004_09_23-noarch-5: Permission denied

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 02:37 PM
olive
 
Posts: n/a
Default Re: hotplug-2004_09_23-noarch-5: Permission denied

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 02:37 PM
loop0
 
Posts: n/a
Default Re: hotplug-2004_09_23-noarch-5: Permission denied

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 02:37 PM
Melissa Danforth
 
Posts: n/a
Default Re: hotplug-2004_09_23-noarch-5: Permission denied

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 02:39 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: hotplug-2004_09_23-noarch-5: Permission denied

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
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com