O Samba não consegue adicionar uma entrada de usuário, como faço para corrigir isso?

12

Eu estava configurando o Samba e tentei adicionar um usuário de domínio, mas isso retorna:

failed to add entry for the user student

Estes são os comandos que fiz até agora:

frigate@frigate-desktop:~$ su 
Password: 
root@frigate-desktop:/home/frigate# nano /etc/samba/smb.conf 
root@frigate-desktop:/home/frigate# groupadd -g 201 machines
root@frigate-desktop:/home/frigate# mkdir -m 0775 /home/ntlogon
root@frigate-desktop:/home/frigate# mkdir /home/samba /home/samba/profiles
root@frigate-desktop:/home/frigate# chmod 1755 /home/samba/profiles/
root@frigate-desktop:/home/frigate# useradd -m test
root@frigate-desktop:/home/frigate# passwd test
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
root@frigate-desktop:/home/frigate# smbpasswd -a test
New SMB password:
Retype new SMB password:
Added user test.
root@frigate-desktop:/home/frigate# smbpasswd -a root
New SMB password:
Retype new SMB password:
Added user root.
root@frigate-desktop:/home/frigate# smbpasswd -a student
New SMB password:
Retype new SMB password:
Failed to add entry for user student.
root@frigate-desktop:/home/frigate# smbpasswd -a student
New SMB password:
Retype new SMB password:
Failed to add entry for user student.
root@frigate-desktop:/home/frigate# smbpasswd -a stu
New SMB password:
Retype new SMB password:
Mismatch - password unchanged.
Unable to get new password.
root@frigate-desktop:/home/frigate# smbpasswd -a stu
New SMB password:
Retype new SMB password:
Failed to add entry for user stu.

Como posso adicionar esse usuário ao Samba?

    
por Bishwanath Das 21.10.2013 / 06:43

1 resposta

27

Você precisa criar um usuário do UNIX chamado student antes de criar um usuário do samba chamado student.

    
por mmstick 21.10.2013 / 07:33

Tags