The
Window System connects to our development machine Linux and naturally requires a new user to be added to samba.
Linux-06bq:/usr/local/services/samba/bin #./smbpasswd-a yourname
New SMB Password:
Retype new SMB Password:
Failed to add entry for user yourname .
Baidu gives the conclusion that "the added Samba user must first be a Linux user" and suddenly Langairon.
Linux-06bq:/etc/samba # useradd sunjing #实际的路径以自己的为准
linux-06bq:/usr/local/services/samba/ Bin #./smbpasswd-a yourname #实际的路径以自己的为准
New SMB Password:
Retype new SMB password:
Added user yourname .< br>
Next Add Windows credentials in Control Panel → credential Manager on the Windows machine:
Network address: xxx.xxx.xxx.xxx (that is, the IP of the Linux development machine that needs to be connected)
User name: sunjing
Password: The password that is set when you add a sunjing user to samba
Finally, "map the network Drive" directly in "explorer" and connect to the development machine. The common method of the
smbpasswd command
smbpasswd-a increase the user (the user to be added must be a system user)
Smbpasswd-d freezes the user, that is, the user cannot log on
Smbpasswd-e Restore the user, unfreeze the user, and allow the frozen user to set the user's password to empty using the
Smbpasswd-n.
to write null passwords-true
in global smbpasswd-x Delete User
Add a Samba user to a Linux virtual machine