NT_STATUS_ACCESS_DENIED and mount error(13): Permission denied

2017-01-14 19:36:31来源:作者:人点击

Summary Problem smbclient display Error access by smbclient Error to mount by cifs Solution change the Windows 10 regedit table result Reference


I was trying to use smbclient to display and access Windows 10 hidden shared folder from RHEL6.3, smbclient command encountered tree connect failed: NT_STATUS_ACCESS_DENIED error, when mount through cifs, encountered mount error(13): Permission denied error. Finally resolved this issue through changing the Windows 10 regedit table.


smbclient display

When smbclient display, no issue,

[[email protected] ~]# smbclient -L // -U xionghuilinEnter xionghuilin's password:session request to failed (Called name not present)Domain=[LENOVO-XHL-PC] OS=[Windows 10 Pro 14393] Server=[Windows 10 Pro 6.3]    Sharename       Type      Comment    ---------       ----      -------    ADMIN$          Disk      Remote Admin    C$              Disk      Default share    D$              Disk      Default share    IPC$            IPC       Remote IPC    print$          Disk      Printer Drivers    Users           Disksession request to failed (Called name not present)session request to 192 failed (Called name not present)session request to *SMBSERVER failed (Called name not present)NetBIOS over TCP disabled -- no workgroup available[[email protected] ~]#

Error access by smbclient

[[email protected] ~]# smbclient //$ -U xionghuilinEnter xionghuilin's password:Domain=[LENOVO-XHL-PC] OS=[Windows 10 Pro 14393] Server=[Windows 10 Pro 6.3]tree connect failed: NT_STATUS_ACCESS_DENIED[[email protected] ~]#

Error to mount by cifs

change password to 123456

C:/WINDOWS/system32>net user xionghuilin 123456The command completed successfully.

mount error(13): Permission denied

[[email protected] ~]# mount -t cifs -o user=xionghuilin%123456 //$ /smbmount error(13): Permission deniedRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)


change the Windows 10 regedit table

Through google, resolved this issue by change the regedit table, refer to Link1 and Link2.
Create new regedit table entry,
Key goes in:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Curr entVersion/Policies/System
Key DWORD (32-bit): LocalAccountTokenFilterPolicy
Key Value : 1
As below screenshot shows,
change the regedit table



[[email protected] ~]# smbclient //$ -U xionghuilin%123456Domain=[LENOVO-XHL-PC] OS=[Windows 10 Pro 14393] Server=[Windows 10 Pro 6.3]smb: /> dircli_list_new: Error: unable to parse name from info level 260  .                                  DA        0  Wed Jan 11 19:32:51 2017  ..                                 DA        0  Wed Jan 11 19:32:51 2017  addins                              D        0  Sat Jul 16 19:47:50 2016cli_list_new: unable to parse name from info level 260        49999 blocks of size 2097152. 5947 blocks available
[[email protected] ~]# mount -t cifs -o user=WORKGROUP/xionghuilin%123456,sec=ntlmv1 //$ /smb --verbosemount.cifs kernel mount options: ip=,unc=//$,sec=ntlmv1,ver=1,user=xionghuilin,domain=WORKGROUP,pass=********[[email protected] ~]# ls /smbaddins                            Globalization          PolicyDefinitions       SSW0E58417.SSW0F96302appcompat                         Help                   Prefetch                symbolsAppPatch                          HelpPane.exe           PrintDialog             Synaptics.logAppReadiness                      hh.exe                 Professional.xml        Synaptics.PD.logassembly                          IME                    Provisioning            SYSINFO.TXTbcastdvr                          ImmersiveControlPanel  regedit.exe             Systembfsvc.exe                         INF                    Registration            System32BitLockerDiscoveryVolumeContents  InfusedApps            RemotePackages          SystemAppsBoot                              InputMethod            rescache                system.inibootstat.dat                      Installer              Resources               SystemResourcesBranding                          L2Schemas              RtCamU64.exe            SysWOW64CbsTemp                           LiveKernelReports      RtlExUpd.dll            TAPIcomsetup.log                      Logs                   RtsCM64.exe             TasksCoreSingleLanguage.xml            Media                  RtsCM64.xml             TempCSC                               MediaViewer            SchCache                ToastDataCSUP.TXT                          MEMORY.DMP             schemas                 tracingCursors                           MFGSTAT.zip            S.dirmngr               twain_32debug                             mib.bin                security                twain_32.dlldiagerr.xml                       Microsoft.NET          ServiceProfiles         vpnpluginsdiagnostics                       Migration              servicing               Vssdiagwrn.xml                       MiracastView           Setup                   WebDigitalLocker                     ModemLogs              setupact.log            WIN8_1_64Downloaded Installations          notepad.exe            setuperr.log            WindowsShell.ManifestDownloaded Program Files          OCR                    ShellExperiences        WindowsUpdate.logDPINST.LOG                        ODBC.INI               ShellNew                winhlp32.exeDtcInstall.log                    Offline Web Pages      SKB                     win.iniELAMBKUP                          Panther                SoftwareDistribution    WinSxSen-GB                             PCHEALTH               Speech                  WMSysPr9.prxen-US                             pear.ini               Speech_OneCore          write.exeexplorer.exe                      Performance            splwow64.exe            zh-CNFonts                             PFRO.log               SQL9_KB960089_ENUGameBarPresenceWriter             PLA                    SQLTools9_KB960089_ENU[[email protected] ~]#