ch6: kernel headers - chown

Florian Engelhardt f.engelhardt at gmx.net
Sun Jan 25 13:54:24 PST 2004


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 ;-)



More information about the lfs-dev mailing list