Re: Newbie questions...

From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 08/04/02


From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Date: Sun, 04 Aug 2002 04:08:52 GMT


"Stephen Biggs" <Spammers@AreLowLifes.com-INVALID-MUNGED> wrote in message
news:Xns925FA2BD749B8SpammersAreLowLifes@64.164.98.7...
> "Nico Kadel-Garcia" <nkadel@bellatlantic.net> wrote in
> news:DlX29.3996$Bb6.1319@nwrddc01.gnilink.net:
>

> >> > By the way: how are you getting SSHD to run at start-up time on
> >> > Windows, unattended? I've never worked that out!
> >>
> >> Ah, a bit of black magic.
> >> cygrunsrv -I sshd -e "CYGWIN=tty ntsec" -d "Cygwin SSHD" -1
> > /var/log/sshd.log
> >> -2 /var/log/sshd.log -t manual -y Tcpip -p /usr/sbin/sshd.exe -a '-e
> >> -D'
> >
> > Hmm. Where does this get started from at boot time?
>
> What do you mean? This is installed as a service in the NT service manager
> database. I have \cygwin\bin as part of my path so cygrunsrv should take
> care of it, dealing with the cygwin directories.

That's what I was looking for: thank you.

> > Ooooh! Ooooh! You want my chroot builder!
> > http://www.merl.com/people/nkadel/.
>
> I looked at this, but was able to do it by hand. Your script wants all of
> the contents of the bin directory to have the -r attribute which I don't
> want, since I don't want anybody even listing the <chroot jail>/bin
> directory. This doesn't solve my problem of how to get links to work if
they
> are only -x.

Hmm. If they're "a-r", then they won't show up in the "PATH" for system
commands. I'm not sure you can defeat that easily.

> Fine, they don't. But, how do I hide these files from users while still
> enabling the system to be able to read them?? Perhaps changing owner to
> SYSTEM and then chmod 600 ?

No one does this. There are traditionally a bunch of library functions that
need to look up information from there.



Relevant Pages