This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: ssh-host-config doesn't chown /var/empty properly from setup.exe
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: "Thrall, Bryan" <bryan dot thrall at flightsafety dot com>
- Cc: cygwin-apps at cygwin dot com
- Date: Mon, 19 Jun 2006 17:40:55 -0400 (EDT)
- Subject: Re: ssh-host-config doesn't chown /var/empty properly from setup.exe
- References: <297343D29C14AA4D822142893ABEAEF301CED52D@srv1163ex1.flightsafety.com>
- Reply-to: cygwin-apps at cygwin dot com
On Mon, 19 Jun 2006, Thrall, Bryan wrote:
> I've created a package which does some automatic configuration in its
> postinstall script, including running `ssh-host-config -y < /dev/null`.
> When setup.exe runs this postinstall script, ssh-host-install works
> almost perfectly, except that it doesn't chown /var/empty properly:
> /var/empty ends up owned by the user who is running setup.exe and group
> "none" when it should be SYSTEM.root. It also ends up with 700
> permissions instead of 755.
>
> ssh-host-config has no problems when run from an xterm or tty; I've only
> noticed it happening when executed from a postinstall script. I'm trying
> to install on a WinXP machine, the user has administrative privileges,
> and I tested the latest setup snapshot (2.529) but no luck. I didn't
> notice any obvious clues from the setup source, either.
>
> Any suggestions? Cygcheck output from the target machine is attached, in
> case it helps.
At a guess, your package is not dependent on the "base-passwd" package,
and thus setup is free to run your postinstall script before /etc/passwd
is created (which would result in chown not knowing who SYSTEM or root
is). Add base-passwd to the "requires:" line of your setup.hint, and see
if it helps.
You can check that by looking at the order of script execution in
setup.log.full.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"