Unable to use sftp(1) when user shell is rksh(1) (Doc ID 1374511.1)

Last updated on JULY 29, 2016

Applies to:

Solaris Operating System - Version 10 9/10 U9 to 11 11/11 [Release 10.0 to 11.0]
Information in this document applies to any platform.
Checked for relevance on 2013/05/05.

Symptoms

Running "sftp" on a SSH client becomes unsuccessful and gets the "Connection closed" message when the target user is using "rksh" as its login shell on the SSH server.

# getent passwd testuser
testuser: x:1101:10:Test User:/home/testuser:/usr/bin/rksh

 

$ sftp testuser@server
Connecting to 192.168.1.2
Password:
Connection closed

Changes

Patch 145044-03 (Solaris 10 Sparc) or 145045-03 (Solaris 10 X86) has changed "rksh" to correctly enforce restrictions on command executions.

Patch-ID# 145044-03 Synopsis: SunOS 5.10: ksh pfksh rksh xargs sh patch

Patch-ID# 145045-03 Synopsis: SunOS 5.10_x86: ksh pfksh rksh xargs sh patch

 

145044-03 or 145045-03 and above fixes the following bug:

Bug 15010761 CR# 4302187 rksh allows user to run commands with '/' in them: regression via 1262257

 

the bugfix is also in Solaris 8 and Solaris 9

110662-26 5.8

110663-26 5,8_x86

112964-18 5.9 

114343-16  5.9_x86

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms