Topic "ERROR: Unexpected directory listing"

Author Message
factorial

Guest


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:

Quote:

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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Please try to check Alias LS to display group name.
_________________
Martin Prikryl
factorial

Guest


Can this option be set in the console?
factorial

Guest


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

Code:

call alias ls='ls -lo'
call alias ls='ls -ln'
call alias ls='ls -la'
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
factorial wrote:
Can this option be set in the console?

You need to pre-configure stored session with the option set.
_________________
Martin Prikryl
cs94njw

Guest


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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
WinSCP does "ls -l -g", doesn't it for you?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
For list of reasons WinSCP cannot parse directory listing and possible resolutions, see documentation.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License