checking file/folder ownership/permissions
Hilario J. Montoliu
hmontoliu at ubuntu.com
Sat Sep 26 14:04:06 UTC 2009
Aljosa Mohorovic escribió:
> is there some easy way to check file/folder ownership/permissions
> based on packages installed?
> something like "rpm -Va"?
> or maybe some script?
>
> Aljosa Mohorovic
>
The command like "rpm -Va" I believe it's debsums; ie:
$ rpm -vV ed
........ /bin/ed
........ /bin/red
........ /usr/share/doc/ed-0.2
........ d /usr/share/doc/ed-0.2/ChangeLog
........ d /usr/share/doc/ed-0.2/NEWS
........ d /usr/share/doc/ed-0.2/POSIX
........ d /usr/share/doc/ed-0.2/README
........ d /usr/share/doc/ed-0.2/THANKS
........ d /usr/share/doc/ed-0.2/TODO
........ d /usr/share/info/ed.info.gz
........ d /usr/share/man/man1/ed.1.gz
........ d /usr/share/man/man1/red.1.gz
$ debsums ed
/usr/share/man/man1/ed.1.gz OK
/usr/share/doc/ed/changelog.Debian.gz OK
/usr/share/doc/ed/TODO OK
/usr/share/doc/ed/AUTHORS OK
/usr/share/doc/ed/copyright OK
/usr/share/doc/ed/changelog.gz OK
/usr/share/doc/ed/NEWS.gz OK
/usr/share/doc/ed/README.gz OK
/usr/share/info/ed.info.gz OK
/bin/ed OK
However I'm not sure the files inside a deb have permissions or are them
set after unpacking them (forgive my ignorance :-) )
More information about the ubuntu-server
mailing list