Topic "cannot change to root directory after login"

Author Message
glasswalk3r
[View user's profile]

Joined: 2004-10-28
Posts: 3
Location: Brazil
Hello,

Im trying to connect to a SFTP and everything works fine BUT I cannot change to the ROOT directory. For instance, I login in the server automatically in my home diretory called "/stuff". When I try to issue any comand (cd /, ..) to go to root, the window is refresh but I remain in the same directory. Crying or Very sad

I tried this using both command line and GUI interfaces.

Thanks in advance
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Can you post a log file?
_________________
Martin Prikryl
glasswalk3r
[View user's profile]

Joined: 2004-10-28
Posts: 3
Location: Brazil
[quote="prikryl"]Can you post a log file?[/quote]

Ok, here is:

---
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SFTP protocol.
. Doing startup conversation with host.
> Type: SSH_FXP_INIT, Size: 5, Number: -1
< Type: SSH_FXP_VERSION, Size: 359, Number: -1
. SFTP version 4 negotiated.
. Unknown server extension newline@vandyke.com=0x000000020D0A
. Server requests EOL sequence 0x0D0A.
. Unknown server extension fs-roots@vandyke.com=0x0000000353504307000000067765626465
76070000000777656270726F640700000000
. Unknown server extension default-fs-attribs@vandyke.com=0x00000001000000095C2F3A2A3F223C3E
7C0000001700000004434F4D3100000004434F4D3200000004434F
4D3300000004434F4D3400000004434F4D3500000004434F4D3600
000004434F4D3700000004434F4D3800000004434F4D3900000004
4C505431000000044C505432000000044C505433000000044C5054
34000000044C505435000000044C505436000000044C5054370000
00044C505438000000044C5054390000000350524E00000003434F
4E00000003415558000000034E554C00000006434C4F434B24
> Type: SSH_FXP_EXTENDED, Size: 38, Number: 5832
< Type: SSH_FXP_STATUS, Size: 96, Number: 5832
< Status/error code: 8
. Server does not recognise WinSCP.
. Getting current directory name.
. Getting real path for '.'
> Type: SSH_FXP_REALPATH, Size: 10, Number: 6160
< Type: SSH_FXP_NAME, Size: 23, Number: 6160
. Real path is 'SPC:/'
. Listing directory "SPC:/SPC:".
> Type: SSH_FXP_OPENDIR, Size: 18, Number: 6411
< Type: SSH_FXP_HANDLE, Size: 13, Number: 6411
> Type: SSH_FXP_READDIR, Size: 13, Number: 6668
< Type: SSH_FXP_NAME, Size: 1421, Number: 6668
> Type: SSH_FXP_READDIR, Size: 13, Number: 6924
< Type: SSH_FXP_NAME, Size: 463, Number: 6924
> Type: SSH_FXP_READDIR, Size: 13, Number: 7180
< Type: SSH_FXP_STATUS, Size: 44, Number: 7180
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 7428
< Type: SSH_FXP_STATUS, Size: 34, Number: 7428
< Status/error code: 0
. Startup conversation with host finished.
. Changing directory to "..".
. Getting real path for 'SPC:/..'
> Type: SSH_FXP_REALPATH, Size: 16, Number: 7696
< Type: SSH_FXP_NAME, Size: 23, Number: 7696
. Real path is 'SPC:/'
. Trying to open directory "SPC:/".
> Type: SSH_FXP_OPENDIR, Size: 13, Number: 7947
< Type: SSH_FXP_HANDLE, Size: 13, Number: 7947
> Type: SSH_FXP_CLOSE, Size: 13, Number: 8196
< Type: SSH_FXP_STATUS, Size: 34, Number: 8196
< Status/error code: 0
. Getting current directory name.
. Listing directory "SPC:/SPC:".
> Type: SSH_FXP_OPENDIR, Size: 18, Number: 8459
< Type: SSH_FXP_HANDLE, Size: 13, Number: 8459
> Type: SSH_FXP_READDIR, Size: 13, Number: 8716
< Type: SSH_FXP_NAME, Size: 1421, Number: 8716
> Type: SSH_FXP_READDIR, Size: 13, Number: 8972
< Type: SSH_FXP_NAME, Size: 463, Number: 8972
> Type: SSH_FXP_READDIR, Size: 13, Number: 9228
< Type: SSH_FXP_STATUS, Size: 44, Number: 9228
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 13, Number: 9476
< Type: SSH_FXP_STATUS, Size: 34, Number: 9476
< Status/error code: 0
. Closing connection.

---

As you can see, the log doesnt show any error message. What could be happening?

Thanks,
Alceu
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
There maybe some problem with path not starting with slash. But I personally test WinSCP against Vandyke server without any problem. However my paths are like C:/xxx. What is that SPC:/ ?
_________________
Martin Prikryl
glasswalk3r
[View user's profile]

Joined: 2004-10-28
Posts: 3
Location: Brazil
prikryl wrote:
There maybe some problem with path not starting with slash. But I personally test WinSCP against Vandyke server without any problem. However my paths are like C:/xxx. What is that SPC:/ ?


Well, SPC:/ is my "home" directory. When I log in the server, Im automatically moved to this directory.

With other programs like PSFTP I can change to the root directory, which is not SPC:/.

Its a really weird problem. Doesnt matter if I type ".." or "cd /", the result is always coming back to SPC:/.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
glasswalk3r wrote:
Well, SPC:/ is my "home" directory. When I log in the server, Im automatically moved to this directory.

OK, but what does it mean, "SCP"? How I can I reproduce it? What version of Vandyke server are you using. I suppose that it is Windows version, is it?
_________________
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