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

Solution

For list of reasons WinSCP cannot parse directory listing and possible resolutions, see documentation.
martin

Re: I think I've solved the problem...

WinSCP does "ls -l -g", doesn't it for you?
cs94njw

I think I've solved the problem...

The short answer is that WinSCP needs to execute:

ls -lg


"ls -g" on its own won't show groups on some systems.

The workaround is:

1. edit ~/.cshrc and add an alias:

alias ls 'ls -g'

2. Edit session in WinSCP to *not* "Clear aliases"


Long answer:

System with problem with groups is:

SunOS #####.net 5.8 Generic_117350-43 sun4u sparc SUNW,Ultra-60

"ls -g" returns a list of files with no attributes, group names, file sizes, etc.

System with *no* problem with groups is:

SunOS #####.com 5.10 Generic_118833-20 sun4u sparc SUNW,Sun-Fire-V445

"ls -g" returns a list of files with attributes, group names, file sizes, etc.
martin

factorial wrote:

Can this option be set in the console?

You need to pre-configure stored session with the option set.
factorial

BTW, I tried doing each of the following from the console and none of them produced different results:

call alias ls='ls -lo'

call alias ls='ls -ln'
call alias ls='ls -la'
factorial

Can this option be set in the console?
martin

Re: ERROR: Unexpected directory listing

Please try to check Alias LS to display group name.
factorial

ERROR: Unexpected directory listing

This error occurs in console and GUI mode, but I'm primarily interested in making things work in the console. Here is what is happening:


winscp> open scp://user:password@example.com
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "user".
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user@example.com
winscp> cd /home/anotheruser/share
/home/anotheruser/share
winscp> ls
Error listing directory '/home/anotheruser/share'.
Unexpected directory listing line 'drwxr-xr-x 13 root 512 Apr 5 2006 .'.

(A)bort, (R)etry, (S)kip: Skip
EAccessViolation
winscp>


Retries generate the same error. Anyone know what's up? Note: if I don't connect to the host via scp:// authentication fails entirely.