Topic "root i jailed"

Author Message
drorla
[View user's profile]

Joined: 2009-03-11
Posts: 1
Location: CYBERSPACE
Hi there.

I have been using winscp for 3 years now without a glitch.

In the last week I can login to my server as user root but

I'm jailed to my directory. If I try to go above to /

directory I get disconnected by winscp.

Putty works fine and logging to the server with my browser

via FTP as root and then going to the / directory works

also.

I searched some forum and found that you can jail a user to

his home directory but I don't know how to "free" him.

If anyone know the exact syntax (as I'm not a unix expert),

may he live long and prosper.

Thank you.

D.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Can you post a log file?
_________________
Martin Prikryl
drorla1

Guest


prikryl wrote:
Can you post a log file?


well, i actually got in once, the settings were the same.

Since then can't get in again so i'm not sure it's credantials.

maybe it's time out period.i changed it to 1 minute, no dice.

please remember that i log-in instantlly but when i go up to

/ directory it fails to connect. in the end i get

Error listing directory '/'.
Error changing directory to '/'.

here is the log-

. 2009-03-15 11:14:05.125 Session name: prodaction
. 2009-03-15 11:14:05.125 Host name: x.x.x.x (Port: 22)
. 2009-03-15 11:14:05.125 User name: root (Password: Yes, Key file: No)
. 2009-03-15 11:14:05.125 Tunnel: No
. 2009-03-15 11:14:05.125 Transfer Protocol: SFTP (SCP)
. 2009-03-15 11:14:05.140 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-03-15 11:14:05.140 Proxy: none
. 2009-03-15 11:14:05.140 SSH protocol version: 2; Compression: No
. 2009-03-15 11:14:05.140 Bypass authentication: No
. 2009-03-15 11:14:05.140 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-03-15 11:14:05.140 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-03-15 11:14:05.140 SSH Bugs: -,-,-,-,-,-,-,-
. 2009-03-15 11:14:05.140 SFTP Bugs: -,-
. 2009-03-15 11:14:05.140 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-03-15 11:14:05.140 Shell: default, EOL: 0
. 2009-03-15 11:14:05.140 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-03-15 11:14:05.140 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-03-15 11:14:05.140 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-03-15 11:14:05.140 Cache directory changes: Yes, Permanent: Yes
. 2009-03-15 11:14:05.140 DST mode: 1
. 2009-03-15 11:14:05.140 --------------------------------------------------------------------------
. 2009-03-15 11:14:05.187 Looking up host "x.x.x.x"
. 2009-03-15 11:14:05.187 Connecting to x.x.x.x port 22
. 2009-03-15 11:14:05.453 Server version: SSH-1.99-OpenSSH_3.9p1
. 2009-03-15 11:14:05.453 We claim version: SSH-2.0-WinSCP_release_4.1.8
. 2009-03-15 11:14:05.546 SSPI: acquired credentials for: drorius@DROR
. 2009-03-15 11:14:05.546 Cannot convert IP address to SPN: DNS is not trusted
. 2009-03-15 11:14:05.546 GSSKEX disabled:
. 2009-03-15 11:14:05.546 Using SSH protocol version 2
. 2009-03-15 11:14:05.546 Doing Diffie-Hellman group exchange
. 2009-03-15 11:14:05.671 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-03-15 11:14:06.171 Host key fingerprint is:
. 2009-03-15 11:14:06.171 ssh-rsa 1024 54:7d:a8:1d:90:4c:1c:07:b5:23:5d:7b:a5:31:c2:3d
. 2009-03-15 11:14:06.171 Initialised AES-256 SDCTR client->server encryption
. 2009-03-15 11:14:06.171 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-03-15 11:14:06.171 Initialised AES-256 SDCTR server->client encryption
. 2009-03-15 11:14:06.171 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-03-15 11:14:06.296 Using username "root".
. 2009-03-15 11:14:06.312 Prompt (6, SSH password, , &Password: )
. 2009-03-15 11:14:06.312 Using stored password.
. 2009-03-15 11:14:06.328 Sent password
. 2009-03-15 11:14:06.359 Access granted
. 2009-03-15 11:14:06.437 Opened channel for session
. 2009-03-15 11:14:06.468 Started a shell/command
. 2009-03-15 11:14:06.468 --------------------------------------------------------------------------
. 2009-03-15 11:14:06.531 Using SFTP protocol.
. 2009-03-15 11:14:06.531 Doing startup conversation with host.
> 2009-03-15 11:14:06.531 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2009-03-15 11:14:06.546 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2009-03-15 11:14:06.546 SFTP version 3 negotiated.
. 2009-03-15 11:14:06.546 We believe the server has signed timestamps bug
. 2009-03-15 11:14:06.546 We will use UTF-8 strings for status messages only
. 2009-03-15 11:14:06.546 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2009-03-15 11:14:06.546 Getting current directory name.
. 2009-03-15 11:14:06.546 Getting real path for '.'
> 2009-03-15 11:14:06.546 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2009-03-15 11:14:06.562 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2009-03-15 11:14:06.562 Real path is '/root'
. 2009-03-15 11:14:06.562 Listing directory "/root".
> 2009-03-15 11:14:06.562 Type: SSH_FXP_OPENDIR, Size: 14, Number: 267
< 2009-03-15 11:14:06.578 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2009-03-15 11:14:06.578 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2009-03-15 11:14:06.718 Type: SSH_FXP_NAME, Size: 6913, Number: 524
> 2009-03-15 11:14:06.718 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2009-03-15 11:14:06.750 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2009-03-15 11:14:06.750 Status/error code: 1
> 2009-03-15 11:14:06.750 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
. 2009-03-15 11:14:06.750 Startup conversation with host finished.
. 2009-03-15 11:14:14.875 Cached directory change via "/" to "/".
. 2009-03-15 11:14:14.875 Getting current directory name.
. 2009-03-15 11:14:14.875 Listing directory "/".
> 2009-03-15 11:14:14.875 Type: SSH_FXP_OPENDIR, Size: 10, Number: 1291
< 2009-03-15 11:14:14.875 Type: SSH_FXP_STATUS, Size: 24, Number: 1028
. 2009-03-15 11:14:14.875 Discarding reserved response
< 2009-03-15 11:14:14.890 Type: SSH_FXP_HANDLE, Size: 13, Number: 1291
> 2009-03-15 11:14:14.890 Type: SSH_FXP_READDIR, Size: 13, Number: 1548
. 2009-03-15 11:14:29.890 Waiting for data timed out, asking user what to do.
. 2009-03-15 11:14:29.890 Asking user:
. 2009-03-15 11:14:29.890 Host has not answered for 15 seconds.
. 2009-03-15 11:14:29.890
. 2009-03-15 11:14:29.890 Wait for another 15 seconds? ()
. 2009-03-15 11:17:43.578 Attempt to close connection due to fatal exception:
* 2009-03-15 11:17:43.578 Terminated by user.
. 2009-03-15 11:17:43.578 Closing connection.
. 2009-03-15 11:17:43.578 Sending special code: 12
. 2009-03-15 11:17:43.578 Sent EOF message
* 2009-03-15 11:17:43.609 (ESshFatal) Terminated by user.
* 2009-03-15 11:17:43.609 Error listing directory '/'.
* 2009-03-15 11:17:43.609 Error changing directory to '/'.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
I do not think that this has anything to do with jail. Generally some users of OpenSSH have the same problems entering root directory. Seems to be some problem of OpenSSH.
_________________
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