tech-userlevel archive

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

Re: METALOG permission error



In article <20130129164108.GA60727%lor.one-eyed-alien.net@localhost>,
Brooks Davis  <brooks%freebsd.org@localhost> wrote:
>-=-=-=-=-=-
>
>In /etc/Makefile, log entries are created for the files created by
>pwd_mkdb with the code:
>
>       ( \
>               for metaent in passwd pwd.db spwd.db; do \
>                       echo "./etc/$${metaent} type=file mode=0644 uname=root 
> gname=wheel
>tags=etc_pkg"; \
>               done; \
>       ) | ${METALOG.add}
>
>This makes spwd.db world readable which is probably not what is desired.
>On FreeBSD I'm planning to use:
>
>       ( \
>               echo "./etc/passwd type=file mode=0644 uname=root gname=wheel" \
>               echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel" \
>               echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel" 
> \
>       ) | METALOG.add
>
>-- Brooks

Fixed, thanks!

christos



Home | Main Index | Thread Index | Old Index