[Samba] Unable to mount with cifs.mount, but file browser mount...

dmulder at samba.org dmulder at samba.org
Thu May 26 18:36:54 UTC 2022


On 5/26/22 1:59 AM, Marco Gaiarin via samba <samba at lists.samba.org> wrote:
> 
> I'm a but puzzled.
> 
> File server: debian stretch, louis packages 4.10.18+dfsg-0.1stretch1, AD domain,
> same samba revision.
> 
> Client: mint ulyssa, aka ubuntu focal, samba 4.13.17~dfsg-0ubuntu0.21.04.2 .
> 
> 
> Client configured with Kerberos, winbind, nss/pam; i can login into client
> with domain credential, flawlessy.
> After login, i can run 'caja' (Mate file manager) and mount shares from the
> server.
> 
> 
> But i need als to automount some dirs (also homes), so i've setup pam_mount;
> that does not work. But seems that cifs.mount does not work at all:
> 
> 	root at archimede:~# mount.cifs //VDMSV1.AD.FVG.LNF.IT/Users/gaio /mnt --verbose -o username=gaio
> 	Password for gaio@//VDMSV1.AD.FVG.LNF.IT/Users/gaio:  **********
> 	mount.cifs kernel mount options: ip=10.5.1.3,unc=\\VDMSV1.AD.FVG.LNF.IT\Users,user=gaio,prefixpath=gaio,pass=********
> 	mount error(13): Permission denied
> 	Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
> 
> and in log:
> 
> 	[ 3285.806313] CIFS: Attempting to mount //VDMSV1.AD.FVG.LNF.IT/Users/gaio
> 	[ 3285.806358] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
> 	[ 3285.822830] CIFS VFS: cifs_mount failed w/return code = -13
> 
> I've tried every combination of 'vers=' and 'sec=' but no one works...
> 
> 
> What i'm missing? Thanks.
> 
> 

Maybe your server doesn't support SMB1? Also, SMB1 support can be compiled out of the kernel now. Maybe you have an SMB1 server and an SMB2+ kernel?



More information about the samba mailing list