Hello
I am quite a linux newbie.
I have been asked to check the mount a windows share on a CentOs7 box, before working and now not working anymore (no clue from the customer on what could be changed)
Local mount point /backup
Windows share //xx.xx.xx.xx/000_BCK
I can ping the Windows machine with no problem
The local mount point exists
Code:
ls /backup
Prod Test
I can see the share via smbclient
Code:
smbclient -L xx.xx.xx.xx -U backup -m SMB2
Enter SAMBA\backup's password:
Sharename Type Comment
--------- ---- -------
000_BCK Disk
ADMIN$ Disk Amministrazione remota
B$ Disk Condivisione predefinita
C$ Disk Condivisione predefinita
IPC$ IPC IPC remoto
VBRCatalog Disk
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to xx.xx.xx.xx failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
fstab is configured as follows
Code:
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Jul 26 12:32:02 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
//xx.xx.xx.xx/000_BCK /backup cifs uid=1000,credentials=/var/.smb39,iocharset=utf8,noperm,vers=1.0 0 0
I verified the credential file and it contains the correct credentials (those I used with smbclient)
if I run sudo mount -a I get "Host is down" as message
Code:
sudo mount -a
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Commenting that line in fstab, mount -a works fine so that's the "offending" line
After some more googling, I tried to use smb 2 and now the error is different
I changed fstab to
Code:
//xx.xx.xx.xx/000_BCK /backup cifs uid=1000,credentials=/var/.smb39,iocharset=utf8,noperm,vers=2.0 0 0
And now the error is
Quote:
mount error(13): Permission denied
|
and in dmsg I see
Code:
[2227599.842439] Status code returned 0xc000006d STATUS_LOGON_FAILURE
[2227599.842455] CIFS VFS: Send error in SessSetup = -13
[2227599.842993] CIFS VFS: cifs_mount failed w/return code = -13
...but (beginning of the post) with smbclient those credentials seems working fine
this is the content of /var/.smb39
Code:
user=backup
password=yyyyyyyyyyyyyyyy
I tried changing user to username but the result seems the same
There is no domain/workgroup specified in the credential file.
Could it be the problem?
I am kind of reaching my limit in googling for solutions.
Is there anything I should ask the customer to check?
Thanks for any hint to shed some light on this subject
VindalooMan