man-pages installation change

Gerard Beekmans gerard at
Tue Jan 16 17:24:36 PST 2001

> This has been discussed on lfs-security a while ago:
> Old man-pages installation: cp -avi
> This will retain ownership of the files as they were in the tarball which 
> happens to be non-root. The new way of copying the files are with: cp -dRiv
> It's the same as cp -avi, but this won't preserve the attributes like userid, 
> groupid and such. Depending on umasks used the files may not end up with mode 
> 644 so we'll have to figure that out too. There are some options like this:
> for i in man1 man2 man3 man4 man5 man6 man7
> do
> 	cd /usr/share/man/$1
> 	chmod 644 *
> done

Then again, we copy other things as well and don't run chmod on those
files. So if we do it here, we should do it for all files we 'cp' in or
outside chroot. I don't know if I want to do that. Optinions anybody?

Gerard Beekmans

-*- If Linux doesn't have the solution, you have the wrong problem -*-

Unsubscribe: send email to lfs-discuss-request at
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list