How to connect to SMB share with NIS authentication from MAC OS X

Enable plaintext authentication on Mac OS:

1. Make sure that you are not currently connected to any Samba or Windows (SMB/CIFS) servers and that you do not have any Samba or Windows-related error messages open.
2. Open the Terminal (/Applications/Utilities/).
3. At the prompt, type: sudo pico /etc/nsmb.conf
4. Press Return.
5. Enter your password when prompted, then press Return again.
6. You should see an empty file and a "New File" notice at the bottom of the pico window. If you do not see the "New File" notice, this file already exists.
7. Enter the following into the file so that it appears as follows:

[default]
minauth=none

8. Save the file (press Control-O), press Return, then exit pico (Control-X).
9. Type: sudo chmod a+r /etc/nsmb.conf
10. Press Return.
11. Restart your computer.

Make sure NIS uses plain text, or MD5 passwords.

Example how to prepare md5 password:

root@ubuntu:/var/yp# openssl passwd -1 -salt test test  (generate md5 pass)
$1$test$pi/xDtU5WFVRqYS6BMU8X/
root@ubuntu:/var/yp# cat /etc/shadow | grep user4  (edit shadow file with new pass)
user4:$1$test$pi/xDtU5WFVRqYS6BMU8X/:16791:0:99999:7:::
root@ubuntu:/var/yp# cd /var/yp
root@ubuntu:/var/yp# make (compile nis database)

Fetch the NIS data again from DSS by connecting to it once more



Article ID: 2751
Last updated: 29 Dec, 2015
Revision: 1
Troubleshooting -> Software -> Miscellaneous -> How to connect to SMB share with NIS authentication from MAC OS X
https://kb.open-e.com/how-to-connect-to-smb-share-with-nis-authentication-from-mac-os-x_2751.html