Linux in a few questions about the samba

First, log in using smbclient command is successful but can not see the file

  Reason: SELinux barrier

  Resolution: 1, off SELinux: setenforce 0 (temporary commencement, restart failure)
              or vi / etc / sysconfig / selinux to the SELINUX = enforcing SELINUX = disabled (permanent)

        

     2, change the value of a shared context directory: chcon -t samba_share_t / share / (share is a shared folder)

 

 

Second, suggesting NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \ / etc / passwd file upload with when put

  Reason: The file away goals

  Solution: switch to the directory where the file, and then log in and upload smbclient command with the put command, not an absolute path

 

 

Third, the login is successful but the display tree connect failed: NT_STATUS_ACCESS_DENIED

  Cause: The user is not in the configuration file to take effect

  Solution: valid users in /etc/samba/smb.conf file = u1, u3 corresponding user was added

 

Guess you like

Origin www.cnblogs.com/gchen-frank/p/11441656.html