tech-install archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: arbitrary write permissions on built files?

Le 2019-10-11 14:23, Greg Troxel a écrit :
Frédéric Fauberteau <> writes:

I used for building NetBSD-9.0_BETA/amd64 sets and it is a
awesome tool! When I tried to upgrade a machine using sysupgrade, I
realized that I forgot the x{base,comp,...} sets. It is when I
reupload the newly built release I realized that some files had
read-only permissions (because permission denied during scp). On the
system where I built the release, I get:
$ ls -l amd64/binary/kernel/
total 42324
-rw-r--r-- 1 triaxx users      508 10 oct.  23:21 MD5
-r--r--r-- 1 triaxx users 10109837 10 oct.  23:11 netbsd-GENERIC.gz

Arguably it's a bug that they are different.

But, I'd say 444 is right, and you should use scp -pf if that's what you

Thanks! I did not know scp -pf. But surprisingly, man 1 scp does not document '-f'.

Home | Main Index | Thread Index | Old Index