cannot change to root directory after login

Advertisement

glasswalk3r
Joined:
Posts:
3
Location:
Brazil

cannot change to root directory after login

Hello,

I'm 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 directory called /stuff. When I try to issue any command (cd /, ..) to go to root, the window is refresh but I remain in the same directory.

I tried this using both command line and GUI interfaces.

Thanks in advance

Reply with quote

Advertisement

glasswalk3r
Joined:
Posts:
3
Location:
Brazil

Re: cannot change to root directory after login

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 doesn't show any error message. What could be happening?

Thanks,
Alceu

Reply with quote

martin
Site Admin
martin avatar

Re: cannot change to root directory after login

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:/?

Reply with quote

glasswalk3r
Joined:
Posts:
3
Location:
Brazil

Re: cannot change to root directory after login

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

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

It's a really weird problem. Doesn't matter if I type .. or cd /, the result is always coming back to SPC:/.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: cannot change to root directory after login

glasswalk3r wrote:

Well, SPC:/ is my "home" directory. When I log in the server, I'm automatically moved to this directory.
OK, but what does it mean, SPC? How I can I reproduce it? What version of Vandyke server are you using. I suppose that it is Windows version, is it?

Reply with quote

Advertisement

You can post new topics in this forum