[Samba] Why I can not login my shared folder under samba + CentOS 7

Gaiseric Vandal gaiseric.vandal at gmail.com
Thu Dec 1 16:02:41 UTC 2016


Did you configure this as a domain controller or a domain member ?  Or 
this just a standalone machine.

 From the command line  can you try the following

     smbclient -L \\127.0.0.1  -U test1

or maybe

     smbclient -d3 -L \\127.0.0.1  -U test1


You may also want to try 'MACHINENAME\test1' as the user name.





On 12/01/16 10:17, truename via samba wrote:
> Hi,
>
> I install samba by:
>
> sudo yum install samba.x86_64
>
> I edit /etc/samba/smb.conf by adding follows:
>
> [data]
>      comment = data
>      path = /home/myname/data
>      valid users = test1
>      write list = test1
>      create mask = 0754
>      sync always = Yes
> ;    hide dot files = yes
> ;    writeable = no
> ;    browseable = yes
>
> Then take effect my config:
>
> service smb restart
>
> I create shared folder:
>
> cd ~
> mkdir data
>
> I create user:
>
> useradd test1
> smbpasswd -a test1
> <then password>
>
>
> Then I open my file manager and input:
>
> smb://127.0.0.1
>
> A login form popup, I enter username: test1 and the password, the login form returns again, I found I can not enter the shared folder by that account.
>
> Thanks





More information about the samba mailing list