ch6: kernel headers - chown

Jack Brown jbrown at kmts.ca
Sun Jan 25 15:34:17 PST 2004


Florian Engelhardt wrote:
> Greg Schafer wrote:
> 
>> ??
>>
>> root:~# touch /tmp/crap
>> root:~# chown 2000:2000 /tmp/crap
>> root:~# ls -l /tmp/crap
>> -rw-r--r--    1 2000     2000            0 Jan 26 08:35 /tmp/crap
>> root:~# cp -HR /tmp/crap .
>> root:~# ls -l crap
>> -rw-r--r--    1 root     root            0 Jan 26 08:35 crap
> 
> 
> Mmh, okay. I was 100% sure that if you copy files as root, the ownership 
> doesn't change. I must have somehow confused this with the tar 
> behaviour. Sorry ;-)

For the record a nice way to avoid having the untared kernel tree be 
owned by someone other than root, is just to use the "--no-same-owner" 
option when untaring as root.

Jack Brown



More information about the lfs-dev mailing list