My notes for LinuxSamba-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Smbpasswd is used to set the password of Samba users, rather than the System user password. The principle is that sambapasswd first reads the user on/etc/passwd, and then adds the user to the Samba user configuration file. In Slackware, it writes to/etc/samba/private/smbpasswd, the password of Samba is also written in/etc/samba/private/smbpasswd and encrypted to/etc/samba/private/secrets. tdb. The password of the System user exists in the/etc/shadow file. It seems a bit dizzy, right? Users created in this way use system accounts, while Samba users are also system users, but their passwords are separated.
Simply put, to set the Samba password, you must first add the system account, and then use smbpasswd to add and create the password. When we want to change the Samba password, we also need to use smbpasswd.
What if we want to change the password of the System user? Use the passwd tool.
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