rpm --setperms

Jeff Vian jvian10 at CHARTER.NET
Thu May 27 00:59:32 UTC 2004



Ronald Warsow wrote:

>hi
>
>thank for input on the barely documented rpm feature.
>but what's about:
>
>[root at obelix sysstat-5.0.1]# cd /dev
>[root at obelix dev]# ll hdd
>brw-------  1 ronald disk 22, 64 Feb 23 22:02 hdd
>[root at obelix dev]# chmod u+x hdd
>[root at obelix dev]# ll hdd
>brwx------  1 ronald disk 22, 64 Feb 23 22:02 hdd
>[root at obelix dev]# rpm --setperms hdd
>  
>
Ronald,

hdd is not a package, it is part of the contents of a package.....

Also /dev/hdd is the raw device on the secondary ide slave.  It is not a 
filesystem and cannot be accessed by anything AFAIK except using fdisk 
(and associates), or dd tools on it.  It cannot even be mounted.

You should not be changing permissions on the /dev devices, but rather 
on the filesystems that are accessible when those devices are mounted.

>sh: line 1: package: command not found
>[root at obelix dev]# rpm --setperms /dev/hdd
>sh: line 1: package: command not found
>[root at obelix dev]# ll hdd
>brwx------  1 ronald disk 22, 64 Feb 23 22:02 hdd
>[root at obelix dev]# rpm --setperms /dev/hdd
>sh: line 1: package: command not found
>
>ronald
>
>
>  
>





More information about the users mailing list