I have a bedroom pc that runs Windows 10 and a living room pc that runs Fedora 32. Internet access is via a cable modem that connects to a router. The lan connection for both pc’s is via the router. All lan connections are wired (not wireless).
Until a few weeks ago, I was able to access files on my Windows 10 : C\temp01\ directory from my Fedora 31 pc via
sudo mount -t cifs //192.168.1.2/temp01 /mnt/disk1 -o
username=*********,password=******,uid=******,vers=2.0
Since I never need to access the Linux pc from the Windows pc, I have never needed to install Samba.
Subsequently, only two things have changed.
(1) I upgraded to Fedora 32 (with no Samba installed).
(2) Windows 10 periodically installs updates.
I don’t know which change caused the problem. Symptoms (employing the -v option):
mount.cifs kernel mount options: ip=192.168.1.2,unc=\\192.168.1.2\temp01,vers=2.0,uid=1000,user=steve,pass=********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
[steve@localhost ~]$ dmesg | tail -7
[210226.718523] usblp 3-4:1.0: usblp0: USB Bidirectional printer dev 11 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0331
[210384.012135] usblp0: removed
[210384.525215] usblp 3-4:1.0: usblp0: USB Bidirectional printer dev 11 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0331
[232340.081576] CIFS: Attempting to mount //192.168.1.2/temp01
[232340.098919] CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
[232340.098937] CIFS: VFS: \\192.168.1.2 Send error in SessSetup = -13
[232340.098947] CIFS: VFS: cifs_mount failed w/return code = -13
I had preserved the old “man mount cifs” output and I compared it to the Fedora 32 “man mount cifs” output. I did not see any appreciable difference. Especially, the syntax appears to have not changed.
An old UnixSE query suggested examining the relevant /var/log/messages and var/log/syslog
Shown below are the relevant var/log/messages
Dec 6 18:26:43 localhost systemd[1]: Starting Fingerprint Authentication Daemon...
Dec 6 18:26:43 localhost audit[248270]: NETFILTER_CFG table=filter family=7 entries=0 op=xt_register pid=248270 subj=system_u:system_r:init_t:s0 comm="(fprintd)"
Dec 6 18:26:43 localhost audit[248270]: NETFILTER_CFG table=broute family=7 entries=0 op=xt_register pid=248270 subj=system_u:system_r:init_t:s0 comm="(fprintd)"
Dec 6 18:26:43 localhost audit[248270]: NETFILTER_CFG table=nat family=7 entries=0 op=xt_register pid=248270 subj=system_u:system_r:init_t:s0 comm="(fprintd)"
Dec 6 18:26:43 localhost systemd[1]: Started Fingerprint Authentication Daemon.
Dec 6 18:26:43 localhost audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 6 18:26:43 localhost audit[248269]: USER_AUTH pid=248269 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:authentication grantors=pam_succeed_if,pam_localuser,pam_unix acct="steve" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Dec 6 18:26:43 localhost audit[248269]: USER_ACCT pid=248269 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="steve" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Dec 6 18:26:43 localhost audit[248269]: USER_CMD pid=248269 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/home/steve" cmd=6D6F756E74202D76202D742063696673202F2F3139322E3136382E312E322F74656D703031202F6D6E742F6469736B31202D6F20757365726E616D653D73746576652C70617373776F72643D4F6E79782323333450696E742C7569643D73746576652C766572733D322E30 exe="/usr/bin/sudo" terminal=pts/0 res=success'
Dec 6 18:26:43 localhost audit[248269]: CRED_REFR pid=248269 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_localuser,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Dec 6 18:26:43 localhost audit[248269]: USER_START pid=248269 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Dec 6 18:26:43 localhost kernel: CIFS: Attempting to mount //192.168.1.2/temp01
Dec 6 18:26:43 localhost audit[248269]: USER_END pid=248269 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Dec 6 18:26:43 localhost kernel: CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
Dec 6 18:26:43 localhost kernel: CIFS: VFS: \\192.168.1.2 Send error in SessSetup = -13
Dec 6 18:26:43 localhost kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Dec 6 18:26:43 localhost audit[248269]: CRED_DISP pid=248269 uid=0 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_localuser,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Attempting to examine the relevant /var/log/syslog gives
sudo tail -50 /var/log/syslog
tail: cannot open '/var/log/syslog' for reading: No such file or directory