SFTP user is put in a invalid directory path.

  • 3771810
  • 11-Oct-2006
  • 27-Apr-2012

Environment

Novell NetWare 6.5 Support Pack 4
Novell OES NetWare SP1
OpenSSH
SFTP
OpenSSH SSH SSHD.NLM SFTP SFTP-SVR.NLM

Situation

After applying NetWare 6.5 SP4 or OES NetWare SP1, then the follow potential symptoms occur:
SFTP users are put in invalid directory paths after login.
Server name is missing from SFTP users directory path.
When the SFTP user's home directory is on the same (local) server where the SSH/SFTP connection was made, the user's starting path is built incorrectly.
This appears to be associated with a LIBC.NLM change in NetWare 6.5 SP4. The way the path is built and returned appears to strip off the server name if the path is local. The Problem does not occur on NW 6.5 SP3, even with SSH materials from SP4 added. Once adding the LIBC materials from SP4, the problem occurs.

Resolution

A change has been made in LIBC.NLM to correct this issue. This fix is publicly released in NetWare 6.5 SP5 (OES NetWare SP2). The fix is also present in separate NetWare Library updates. Check https://support.novell.com/filefinder and search for NWLIB6*.EXE. NWLIB6E.EXE (or newer: NWLIB6F, etc) contains this fix.

Without the fix, various workarounds could be used:

- CD to the correct path before proceeding. i.e. cd /servername/volname/dir (this is the recommended solution).
or
- Move the user's home directory off the local server
or
- Keep the user's home dir where it is, but reach it through a different SSH/SFTP server.

Additional Information

Formerly known as TID# 10098889