Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Error looking up user groups

Please post few lines more (at front).
For 'groups' error: uncheck "Lookup user groups" on Shell tab of Login dialog.
bkell2

Error looking up user groups

I have a chroot jail installed on my server and use WinSCP2 to access the directories.

I received the following two errors, after the error screens are cleared the connection is made successfully. Could you please help me to identify what is causing these errors so I could remove them?

< WinSCP: this is end-of-file:0
. Return code variable "$?" selected.
. Clearing all aliases.
> unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
> unalias "%s" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:1
. Clearing national user variables.
> unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
! -jail: unalias: not found
< WinSCP: this is end-of-file:0
> unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
> unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
. Looking up current user groups.
> groups ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1

* (ECommand) Error looking up user groups.
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
! -jail: groups: not found
< /home/aoz200
< WinSCP: this is end-of-file:0
* (ECommand) Error getting name of current remote directory.
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
< /home/aoz200
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
< total 276
< drwxr-x--- 2 304 300 512 Apr 25 19:45 .
< drwxr-xr-x 7 0 1 512 Sep 23 2002 ..
< -rwxr-x--- 1 0 1 123712 Apr 25 19:45 scp
< WinSCP: this is end-of-file:0
. Startup conversation with host finished.
. Closing connection.


Thank you for your assistance.

I found that unchecking groups removed the group error.
Secondly, I hardcoded the user home directory under "Directories" - removing the directory reference allowed it to figure out the jailed home directory itself. Thanks for your help!!! :roll: