Thread: [Chrootssh-users] Cannot find account for uid
Brought to you by:
punkball
From: Bob R. <bo...@ro...> - 2003-10-08 11:48:47
|
I saw an email on this list from a month or two ago about someone seeing the following error when running sshd -d (but saw no post about a solution): login_get_lastlog: Cannot find account for uid xxx I'm having the same problem and was wondering if a solution was found. I am running the latest (I think) tarball openssh-3.7.1p2-chroot.tar.gz If I have the user without the /./ in the path, he can login fine. If I use root and run chroot /his/path /bin/sh I get a working, chroot-ed shell. If I try to ssh I get immediately disconnected with the above error showing up in the log. Any suggestions on where to look? thanks, bob |
From: James D. <ja...@fi...> - 2003-10-08 15:11:45
|
Try copying /etc/passwd into the chroot. Write back if that doesn't work. -James On Wednesday, October 8, 2003, at 07:48 AM, Bob Robison wrote: > > I saw an email on this list from a month or two ago about someone > seeing the following error when running sshd -d (but saw no post about > a solution): > > login_get_lastlog: Cannot find account for uid xxx > > I'm having the same problem and was wondering if a solution was found. > I am running the latest (I think) tarball > openssh-3.7.1p2-chroot.tar.gz > > If I have the user without the /./ in the path, he can login fine. If > I use root and run chroot /his/path /bin/sh I get a working, > chroot-ed shell. If I try to ssh I get immediately disconnected with > the above error showing up in the log. > > Any suggestions on where to look? > > thanks, > bob > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Chrootssh-users mailing list > Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > |
From: Niall O'H. <np...@ei...> - 2003-10-08 15:37:24
|
I was the one originally with this problem and copying etc/passwd doesn't make any difference :( not for me anyway I never got a solution :( -----Original Message----- From: chr...@li... [mailto:chr...@li...] On Behalf Of James Dennis Sent: 08 October 2003 16:11 To: Bob Robison Cc: chr...@li... Subject: Re: [Chrootssh-users] Cannot find account for uid Try copying /etc/passwd into the chroot. Write back if that doesn't work. -James On Wednesday, October 8, 2003, at 07:48 AM, Bob Robison wrote: > > I saw an email on this list from a month or two ago about someone > seeing the following error when running sshd -d (but saw no post about > a solution): > > login_get_lastlog: Cannot find account for uid xxx > > I'm having the same problem and was wondering if a solution was found. > I am running the latest (I think) tarball > openssh-3.7.1p2-chroot.tar.gz > > If I have the user without the /./ in the path, he can login fine. If > I use root and run chroot /his/path /bin/sh I get a working, > chroot-ed shell. If I try to ssh I get immediately disconnected with > the above error showing up in the log. > > Any suggestions on where to look? > > thanks, > bob > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Chrootssh-users mailing list Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Chrootssh-users mailing list Chr...@li... https://lists.sourceforge.net/lists/listinfo/chrootssh-users |
From: James D. <ja...@fi...> - 2003-10-08 15:46:37
|
Can we get some more information? OS, structure of chroot, etc...? -James On Wednesday, October 8, 2003, at 11:36 AM, Niall O'Hara wrote: > I was the one originally with this problem and copying etc/passwd > doesn't > make any difference :( not for me anyway > > I never got a solution :( > > -----Original Message----- > From: chr...@li... > [mailto:chr...@li...] On Behalf Of James > Dennis > Sent: 08 October 2003 16:11 > To: Bob Robison > Cc: chr...@li... > Subject: Re: [Chrootssh-users] Cannot find account for uid > > > Try copying /etc/passwd into the chroot. Write back if that doesn't > work. > > -James > > On Wednesday, October 8, 2003, at 07:48 AM, Bob Robison wrote: > >> >> I saw an email on this list from a month or two ago about someone >> seeing the following error when running sshd -d (but saw no post about >> a solution): >> >> login_get_lastlog: Cannot find account for uid xxx >> >> I'm having the same problem and was wondering if a solution was found. >> I am running the latest (I think) tarball >> openssh-3.7.1p2-chroot.tar.gz >> >> If I have the user without the /./ in the path, he can login fine. If >> I use root and run chroot /his/path /bin/sh I get a working, >> chroot-ed shell. If I try to ssh I get immediately disconnected with >> the above error showing up in the log. >> >> Any suggestions on where to look? >> >> thanks, >> bob >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Chrootssh-users mailing list Chr...@li... >> https://lists.sourceforge.net/lists/listinfo/chrootssh-users >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Chrootssh-users mailing list > Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Chrootssh-users mailing list > Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > |
From: Niall O'H. <np...@ei...> - 2003-10-08 16:38:02
|
Sure James, here's mine anyway. My problem is a little different as in I can get a chroot via ssh but = cannot transfer using scp? Bob if you follow my structure you will be able to get a chrooted ssh connection. I get the following error when I try to transfer a file using winscp3 to = the linux box: ! unknown user 501 OS: Redhat 9 Ver: openssh-3.7.1p2-chroot Chroot structure [root@application /]# ls -Rl /trans /trans: total 16 drwx--x--- 2 root trans 4096 Sep 12 16:49 bin drwx--x--- 2 root trans 4096 Sep 12 17:50 etc drwxr-x--- 4 root trans 4096 Sep 12 15:28 home drwx--x--- 3 root trans 4096 Sep 12 13:55 lib /trans/bin: total 1400 -rwxr-xr-x 1 root root 626028 Sep 11 23:14 bash -rwxr-xr-x 1 root root 47732 Sep 12 01:50 cp -rwxr-xr-x 1 root root 1671 Sep 12 18:02 groups -rwxr-xr-x 1 root root 14236 Sep 12 16:49 id -rwxr-xr-x 1 root root 67668 Sep 12 01:36 ls -rwxr-xr-x 1 root root 28504 Sep 12 13:51 scp -rwxr-xr-x 1 root root 626028 Sep 12 01:17 sh /trans/etc: total 12 -rw-r--r-- 1 root root 617 Sep 12 15:50 group -rw-r--r-- 1 root root 1568 Sep 12 16:34 passwd -r-------- 1 root root 1088 Sep 12 16:34 shadow /trans/home: total 8 drwx------ 2 aer aer 4096 Sep 12 13:31 aer drwx------ 2 aer2 aer2 4096 Sep 12 15:02 aer2 /trans/home/aer: total 0 /trans/home/aer2: total 0 /trans/lib: total 1876 -rwxr-xr-x 1 root root 104560 Sep 12 13:42 ld-linux.so.2 -rwxr-xr-x 1 root root 5572 Sep 12 13:54 libcom_err.so.3 -rwxr-xr-x 1 root root 969116 Sep 12 13:53 libcrypto.so.4 -rwxr-xr-x 1 root root 15900 Sep 12 13:41 libdl.so.2 -rwxr-xr-x 1 root root 73724 Sep 12 13:55 = libgssapi_krb5.so.2 -rwxr-xr-x 1 root root 63880 Sep 12 13:54 libk5crypto.so.3 -rwxr-xr-x 1 root root 385220 Sep 12 13:53 libkrb5.so.3 -rwxr-xr-x 1 root root 91624 Sep 12 13:53 libnsl.so.1 -rwxr-xr-x 1 root root 76572 Sep 12 13:52 libresolv.so.2 -rwxr-xr-x 1 root root 11784 Sep 12 13:41 libtermcap.so.2 -rwxr-xr-x 1 root root 12716 Sep 12 13:52 libutil.so.1 -rwxr-xr-x 1 root root 52616 Sep 12 13:53 libz.so.1 drwxr-xr-x 2 root root 4096 Sep 12 13:41 tls /trans/lib/tls: total 1508 -rwxr-xr-x 1 root root 1536292 Sep 12 13:41 libc.so.6 -----Original Message----- From: chr...@li... [mailto:chr...@li...] On Behalf Of James Dennis Sent: 08 October 2003 16:46 To: Niall O'Hara Cc: chr...@li... Subject: Re: [Chrootssh-users] Cannot find account for uid Can we get some more information? OS, structure of chroot, etc...? -James On Wednesday, October 8, 2003, at 11:36 AM, Niall O'Hara wrote: > I was the one originally with this problem and copying etc/passwd > doesn't > make any difference :( not for me anyway > > I never got a solution :( > > -----Original Message----- > From: chr...@li... > [mailto:chr...@li...] On Behalf Of=20 > James Dennis > Sent: 08 October 2003 16:11 > To: Bob Robison > Cc: chr...@li... > Subject: Re: [Chrootssh-users] Cannot find account for uid > > > Try copying /etc/passwd into the chroot. Write back if that doesn't=20 > work. > > -James > > On Wednesday, October 8, 2003, at 07:48 AM, Bob Robison wrote: > >> >> I saw an email on this list from a month or two ago about someone=20 >> seeing the following error when running sshd -d (but saw no post=20 >> about a solution): >> >> login_get_lastlog: Cannot find account for uid xxx >> >> I'm having the same problem and was wondering if a solution was=20 >> found. I am running the latest (I think) tarball=20 >> openssh-3.7.1p2-chroot.tar.gz >> >> If I have the user without the /./ in the path, he can login fine. =20 >> If I use root and run chroot /his/path /bin/sh I get a working,=20 >> chroot-ed shell. If I try to ssh I get immediately disconnected with = >> the above error showing up in the log. >> >> Any suggestions on where to look? >> >> thanks, >> bob >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf=20 >> _______________________________________________ >> Chrootssh-users mailing list Chr...@li... >> https://lists.sourceforge.net/lists/listinfo/chrootssh-users >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program.=20 > SourceForge.net hosts over 70,000 Open Source Projects. See the people = > who have HELPED US provide better services: Click here:=20 > http://sourceforge.net/supporters.php > _______________________________________________ > Chrootssh-users mailing list Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program.=20 > SourceForge.net hosts over 70,000 Open Source Projects. See the people = > who have HELPED US provide better services: Click here:=20 > http://sourceforge.net/supporters.php > _______________________________________________ > Chrootssh-users mailing list Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. = SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED = US provide better services: Click here: = http://sourceforge.net/supporters.php _______________________________________________ Chrootssh-users mailing list Chr...@li... https://lists.sourceforge.net/lists/listinfo/chrootssh-users |
From: Bob R. <bo...@ro...> - 2003-10-09 03:16:43
|
Well, fortunately for me the etc/passwd file did the trick for the ssh problem. I was then able to ssh into a chroot'ed shell as expected. I was really after scp or sftp as well. I was able to get sftp to work by re-arranging my directory structure somewhat. I originally had sftp-server in the chroot'ed file-system at /usr/local/libexec/sftp-server. However, I needed to move it to /usr/libexec/openssh/sftp-server, then I could use sftp (command line ftp-like interface) which is adequate for my needs. When I tried scp I got the similar problem with an error no the userid, but I didn't try to track it down very far. thanks everyone for the help! bob On Wed, 8 Oct 2003 16:36:21 +0100 "Niall O'Hara" <np...@ei...> wrote: > I was the one originally with this problem and copying etc/passwd doesn't > make any difference :( not for me anyway > > I never got a solution :( > > -----Original Message----- > From: chr...@li... > [mailto:chr...@li...] On Behalf Of James > Dennis > Sent: 08 October 2003 16:11 > To: Bob Robison > Cc: chr...@li... > Subject: Re: [Chrootssh-users] Cannot find account for uid > > > Try copying /etc/passwd into the chroot. Write back if that doesn't > work. > > -James > > On Wednesday, October 8, 2003, at 07:48 AM, Bob Robison wrote: > > > > > I saw an email on this list from a month or two ago about someone > > seeing the following error when running sshd -d (but saw no post about > > a solution): > > > > login_get_lastlog: Cannot find account for uid xxx > > > > I'm having the same problem and was wondering if a solution was found. > > I am running the latest (I think) tarball > > openssh-3.7.1p2-chroot.tar.gz > > > > If I have the user without the /./ in the path, he can login fine. If > > I use root and run chroot /his/path /bin/sh I get a working, > > chroot-ed shell. If I try to ssh I get immediately disconnected with > > the above error showing up in the log. > > > > Any suggestions on where to look? > > > > thanks, > > bob > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Chrootssh-users mailing list Chr...@li... > > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Chrootssh-users mailing list > Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Chrootssh-users mailing list > Chr...@li... > https://lists.sourceforge.net/lists/listinfo/chrootssh-users |