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] |
--- Dan Kegel <dank@kegel.com> wrote: > EJS wrote: > 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()) getpwuid(getuid()) did the trick! Thanks Dan. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ------ 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] |