I am a Windows admin and my boss requested that I build a sftp and samba server. The sftp and samba server both use Windows AD to authenticate. The external customers need to only sftp and must be jailed to their directory. The internal users have to be able to open all file and folders to upload/download the docs to the external customers.
- I have configured a CentOS sftp server and have the users jailed (when they connect to directlty to the sftp server)
- I have the CentOS samba server configured and the internal users are able to read/write/traverse the shares.
The issue that I am having is connecting the sftp server to the samba server. Users are able to download the files but are unable to upload.
# mount -t cifs //10.x.x.x/share /mnt -o username=xxxxxxxxxxi,workgroup=DOMAIN
If I type
# mount -t cifs //10.x.x.x/sftp /mnt -o username=xxxxxxxx
the permissions are 0755.
I tried to mount via fstab:
//10.x.x.x/share /mnt cifs nofail,iocharset=utf8,username=xxxxxxxx,file_mode=0775,dir_mode=0775 0 0
I get an error in /var/log/secure when I attempt to upload a file.
pam_krb5[19725]: error reading ccache's default principal name from "KEYRING:persistent:573216638", not reading externally-provided creds