Samba fails to add a user entry, how do I fix this?












13














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?










share|improve this question





























    13














    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?










    share|improve this question



























      13












      13








      13


      3





      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?










      share|improve this question















      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?







      samba






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 21 '13 at 4:46









      Thomas Ward

      43.4k23120172




      43.4k23120172










      asked Oct 21 '13 at 4:43









      Bishwanath Das

      1392314




      1392314






















          2 Answers
          2






          active

          oldest

          votes


















          29














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






          share|improve this answer





























            0














            Maybe you did not create it yet. So to add it for the first time to samba need to add the



            -a


            option



            sudo smbpasswd -a test





            share|improve this answer




















              protected by Community Apr 9 '18 at 2:17



              Thank you for your interest in this question.
              Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



              Would you like to answer one of these unanswered questions instead?














              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              29














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






              share|improve this answer


























                29














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






                share|improve this answer
























                  29












                  29








                  29






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






                  share|improve this answer












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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 21 '13 at 5:33









                  mmstick

                  1,33499




                  1,33499

























                      0














                      Maybe you did not create it yet. So to add it for the first time to samba need to add the



                      -a


                      option



                      sudo smbpasswd -a test





                      share|improve this answer


























                        0














                        Maybe you did not create it yet. So to add it for the first time to samba need to add the



                        -a


                        option



                        sudo smbpasswd -a test





                        share|improve this answer
























                          0












                          0








                          0






                          Maybe you did not create it yet. So to add it for the first time to samba need to add the



                          -a


                          option



                          sudo smbpasswd -a test





                          share|improve this answer












                          Maybe you did not create it yet. So to add it for the first time to samba need to add the



                          -a


                          option



                          sudo smbpasswd -a test






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jul 18 '18 at 14:36









                          Philippe Gachoud

                          3,1872537




                          3,1872537

















                              protected by Community Apr 9 '18 at 2:17



                              Thank you for your interest in this question.
                              Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                              Would you like to answer one of these unanswered questions instead?



                              Popular posts from this blog

                              Human spaceflight

                              Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                              張江高科駅