Scott,
I added/tested the ADDENVVAR to my AJS job, using *JOB instead of *SYS.
10 ADDENVVAR ENVVAR(PASE_USRGRP_LIMITED) VALUE(N) LEVEL(*JOB)
SFTP is now successful with a user of 10 characters.
Is this a supported fix/option?
Not easily found in IBM documentation, found this one link.
http://www-01.ibm.com/support/docview.wss?uid=nas8N1011847
There is an eight-character limitation on the user profiles that can access the IBM i through SSHD. The eight-character limitation is also placed on any group profile that the user might be a member of. If any of the other members in a group profile have more than eight characters in their user name, access to the system will be denied. In order to get around the eight-character limitation, you can either create system wide environment variable or add a specicial directive to the sshd_config file:
ADDENVVAR ENVVAR(PASE_USRGRP_LIMITED) VALUE('N') LEVEL(*SYS)
ibmpaseforienv PASE_USRGRP_LIMITED=N
A restart of SSHD is required when the # of characters in the user profile is increased for inbound ssh, sftp, or scp connections to the IBM i.
Thanks
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Friday, October 23, 2015 1:54 AM
To: Midrange Systems Technical Discussion
Subject: Re: SFTP via PASE - No user exists for uid 356
Paul,
This usually happens because PASE carries over an old AIX limitation of
8 characters in a userid. You can eliminate that limitation by doing the following:
ADDENVVAR ENVVAR(PASE_USRGRP_LIMITED) VALUE(N) LEVEL(*SYS)
You may have to sign off and on again to pick up the change. This turns off the 8 character userid limitation, and will work perfectly with SFTP (and other SSH tools -- and YES, SFTP _is_ SSH, despite your reply to another poster).
However, if you are running anything that relies on the AIX 8 character limit being in place (something besides SFTP/SSH which does not) this variable might result in "unexpected results". I have not yet run into this myself -- but I thought it might be worth mentioning.
Using a userid that's 8 characters or shorter is another way to work around this -- but IMHO, that's an ugly "fix."
-SK
On 10/22/2015 1:46 PM, Steinmetz, Paul wrote:
I'm converting an FTP script job to SFTP using PASE.
User, passwords, ip, etc all remain the same, from what the vendor has told us.
I'm receiving the below error message.
No user exists for uid 356
Is there a reason a user would work for FTP and not SFTP.
Thank You
_____
Paul Steinmetz
IBM i Systems Administrator
Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071
610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home
psteinmetz@xxxxxxxxxx
http://www.pencor.com/
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.