This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
I'm trying to set up a cross toolchain from a windox
box running cygwin to a fedora box. I've followed
Dan's instructions and built crosstool successfully
(after much trial and error). Im now trying to test my
configuration using the crosstest script. I'm
currently trying to set up a chroot jail on my fedora
box and I'm running into problems. I've followed the
instructions in the Chroot Login Howto and am using
http://kegel.com/crosstool/crosstool-0.38/chrootshell.c;
however when I try to telnet into the jail using my
jailed user. The chrootshell throws an error:
chrootshell: USER not set?!; died on line 131, errno 0
It looks like the User environment variable is not getting set upon login. Any ideas how to troubleshoot this?
Hmm. (I suppose you could check the sshd source code to see if it sets USER.)
http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+login says that USER isn't in the initial environment. Maybe chrootshell should set it using getpwuid(getuid()) or something like that...
-- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |