Hi All,
apologies if i get this wrong but it is my first post, I am trying to setup a local user for SFTP to push a file into a CIFS share. So I ran:
useradmin user add orbitfeet -g users
fas3020> useradmin user list orbitfeed
Name: orbitfeed
Info:
Rid: 131073
Groups: Users
Full Name:
Allowed Capabilities: api-snmp-get,api-snmp-get-next,api-system-api-*
Password min/max age in days: 0/4294967295
Status: enabled
I then placed the following entries in the usermap.cfg
FAS3020\orbitfeed => orbitfeed
FAS3020\orbitfeed <= orbitfeed
I then placed the following entry in /etc/passwd
orbitfeed:_J9../AsNpchihmSCXSQ:10:10::/vol/vol1/dump:
I created a volume /vol/vol1/ and set it to have NTFS permissions
I created a folder called dump and gave the local user FAS3020\orbitfeed full control
I set the following options in red:-
fas3020> options sftp
sftp.auth_style mixed
sftp.bypass_traverse_checking on
sftp.dir_override /vol/vol1/dump
sftp.dir_restriction off
sftp.enable on
sftp.idle_timeout 900s
sftp.locking none
sftp.log_enable on
sftp.log_filesize 512k
sftp.log_nfiles 6
sftp.max_connections 15
sftp.max_connections_threshold 75%
sftp.override_client_permissions off
fas3020>
however when the user trys to login I get the following error:-
Wed Jan 27 14:12:45 GMT [sftp.connection.request.failed:error]: SFTP (SSH File Transfer Protocol) connection request from client system 192.168.110.128, user orbitfeed failed, because the user is not permitted to do SFTP (SSH File Transfer Protocol) operations.
Wed Jan 27 14:12:45 GMT [sshd_2:error]: error: Disconnecting: SFTP connection creation failed
I get the same issue if try with root, if use FTP with either it works perfect my FTP settings are detailed below:-
fas3020> options ftp
ftpd.3way.enable off
ftpd.anonymous.enable off
ftpd.anonymous.home_dir
ftpd.anonymous.name anonymous
ftpd.auth_style mixed
ftpd.bypass_traverse_checking on
ftpd.dir.override /vol/vol1/dump
ftpd.dir.restriction off
ftpd.enable on
ftpd.explicit.allow_secure_data_conn on
ftpd.explicit.enable off
ftpd.idle_timeout 900s
ftpd.implicit.enable off
ftpd.ipv6.enable off
ftpd.locking none
ftpd.log.enable on
ftpd.log.filesize 512k
ftpd.log.nfiles 6
ftpd.max_connections 500
ftpd.max_connections_threshold 0%
ftpd.tcp_window_size 28960
One final thing to note is that is I use FAS3020\orbitfeed it works perfectly too with both protocols. However I plan to use SSH keys which means I have to use the UNIX user format to enable the authorzed keys
I have tried the all the settings for sftp.auth_style but still get the same issue.
Any help much appreciated
Thanks,
James