Adding Samba users to a Linux virtual machine

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.