[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpm --setperms





Ronald Warsow wrote:

hi

thank for input on the barely documented rpm feature.
but what's about:

[root obelix sysstat-5.0.1]# cd /dev
[root obelix dev]# ll hdd
brw------- 1 ronald disk 22, 64 Feb 23 22:02 hdd
[root obelix dev]# chmod u+x hdd
[root obelix dev]# ll hdd
brwx------ 1 ronald disk 22, 64 Feb 23 22:02 hdd
[root 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 obelix dev]# rpm --setperms /dev/hdd
sh: line 1: package: command not found
[root obelix dev]# ll hdd
brwx------  1 ronald disk 22, 64 Feb 23 22:02 hdd
[root obelix dev]# rpm --setperms /dev/hdd
sh: line 1: package: command not found

ronald







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]