Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
69
rated 0 times [  69] [ 0]  / answers: 1 / hits: 141058  / 1 Year ago, mon, may 15, 2023, 9:40:02

I was configuring Samba and tried to add a domain user, but it returns this:



failed to add entry for the user student


These are the commands I've done so far:



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.


How can I add this user to Samba?


More From » samba

 Answers
6

You need to create a UNIX user named student before you create a samba user named student.


[#28860] Tuesday, May 16, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elopingapo

Total Points: 206
Total Questions: 110
Total Answers: 114

Location: Guam
Member since Tue, Nov 29, 2022
1 Year ago
;