ERROR: Unexpected directory listing

Advertisement

factorial
Guest

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.

Reply with quote

Advertisement

factorial
Guest

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'

Reply with quote

martin
Site Admin
martin avatar

factorial wrote:

Can this option be set in the console?
You need to pre-configure stored session with the option set.

Reply with quote

Advertisement

cs94njw
Guest

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.

Reply with quote

Advertisement

You can post new topics in this forum