使用者工具

網站工具


server:解決_mount.cifs_-_permission_denied

mount samba share folder, 但出見以下問題:

# mount -t cifs -o username=eddie //192.168.123.13/Raid5_2 /tmp/tt/
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

確認user/password是正確的

# smbclient -L 192.168.123.13
Enter root's password:
session setup failed: NT_STATUS_LOGON_FAILURE
[root@4000A Movie]# smbclient -L 192.168.123.13 -U eddie
Enter eddie's password:
Domain=[SAMBA] OS=[Windows 6.1] Server=[Samba 4.6.2]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        Raid5_2         Disk      Backup Server Raid5 Storage
        IPC$            IPC       IPC Service (Samba 4.6.2)
        eddie           Disk      Home Directories
Domain=[SAMBA] OS=[Windows 6.1] Server=[Samba 4.6.2]

        Server               Comment
        ---------            -------
        BACKUPSERVER         Samba 4.6.2

        Workgroup            Master
        ---------            -------
        BUBBLE               PANDORABOX
        SAMBA                BACKUPSERVER
        
# smbclient //192.168.123.13/eddie -U eddie
Enter eddie's password:
Domain=[SAMBA] OS=[Windows 6.1] Server=[Samba 4.6.2]
smb: \> ls
  .                                   D        0  Sat Jan 13 23:08:05 2018
  ..                                  D        0  Sat Jan 13 17:44:41 2018
  .mozilla                           DH        0  Sat Jan 13 16:55:36 2018
  .bash_logout                        H       18  Tue Jun 10 12:31:53 2014
  .bash_profile                       H      193  Tue Jun 10 12:31:53 2014
  .bashrc                             H      231  Tue Jun 10 12:31:53 2014
  .config                            DH        0  Sat Jan 13 17:57:02 2018
  .cache                             DH        0  Sat Jan 13 23:01:36 2018
  Desktop                             D        0  Sat Jan 13 17:56:17 2018
  Downloads                           D        0  Mon Jan 15 10:24:20 2018
  Templates                           D        0  Sat Jan 13 17:56:17 2018
  Public                              D        0  Sat Jan 13 17:56:17 2018
  Documents                           D        0  Sat Jan 13 17:56:17 2018
  Music                               D        0  Sat Jan 13 17:56:17 2018
  Pictures                            D        0  Sat Jan 13 17:56:17 2018
  Videos                              D        0  Sat Jan 13 17:56:17 2018
  .ICEauthority                       H      930  Sat Jan 13 23:00:54 2018
  .local                             DH        0  Sat Jan 13 17:56:17 2018
  .esd_auth                           H       16  Sat Jan 13 17:56:18 2018
  .bash_history                       H       49  Sat Jan 13 23:08:05 2018

                58936 blocks of size 131072. 29229 blocks available
smb: \> cd Desktop\
smb: \Desktop\> ls
  .                                   D        0  Sat Jan 13 17:56:17 2018
  ..                                  D        0  Sat Jan 13 23:08:05 2018

                58936 blocks of size 131072. 29229 blocks available
smb: \Desktop\> q

最後加入 sec=ntlmssp 解決

# mount -t cifs -o username=eddie,sec=ntlmssp //192.168.123.13/Raid5_2 /tmp/tt/
server/解決_mount.cifs_-_permission_denied.txt · 上一次變更: 2018/01/16 06:54 由 eddie