

- #Samba ubuntu windows asking for password windows 10#
- #Samba ubuntu windows asking for password password#
Of course you would need to add the old password too if you were not running root.


Using the following command works: echo -e "newpass\nnewpass" | (smbpasswd -s username)Įcho -e "newpass\nnewpass" | (passwd -stdin username) The solution is to use the Microsoft Account Credentials when trying to log into the Samba share (I know, this still does not make sense to me but it worked). Here is my smb.conf global max log size 1000 read raw no log file /var/log/samba/log.m security user os level 20 unix. I can see the folders and sometimes it will ask for username and password.
#Samba ubuntu windows asking for password windows 10#
Guest access folder works fine from Windows 10 but i’m not able to access the password protected folders. I also need it to work for smbpasswd so samba can change its password too.įound it! Wow this is great, which I knew this earlier. The issue behaves the same 'Incorrect Password' and therefore I confused it with this issue for hours. Hi All, I’ve setup samba shares both password protected and guest folders. Im looking for something like "passwd user -current-password=CURRENTPASS -new-password=NEWPASS" and it would return ON THAT LINE. I ask the question as to why I can't browse Windows Shares using Linux Mint 11 or 12, but don't seem to have any issue with Ubuntu, and ask for a. Because when you type passwd username, then it asks you to type the password, I want a bash script to do this for me, so that when users want to change their password, I just need to edit that bash script. So to sum this up, I need to know what command could be used to change someones password with no-user intervention using a bash script. I need a way to change someones password that is thorough enough so that a bash script could do it, both for samba smbpasswd and ubuntu's passwd. Once and a while they will need to change their password for this login. They use a custom app to login to the Samba Ubuntu Server using their own password to get to their personal directory. Basically, every student uses one public login for windows and ubuntu alike. So I have this file server for this school.
