The following error occurred today when installing Samba to add users and using Smbpasswd to generate the password:
[email protected] / backup $the smbpasswd test
New SMB password:
Retype new SMB password:
Failed to find entry for user test.
Failed to modify password entry for user test
Note that there is no such user, please use the -a parameter
OPTIONS
-a
This option specifies that the username following should be added to the local smbpasswd file, with the new
password typed (type <enter> for the old password). This option is ignored if the username following</enter>
already exists in the smbpasswd file and it is treated like a regular change password command. Note that
the default passdb backends require the user to already exist in the system password file (usually
/etc/passwd), else the request to add the user will fail.
This option is only available when running smbpasswd as root.
Solutions:
Add parameter ‘-a’ :
# smbpasswd-a user
Read More:
- “Failed to find entry for user…” appears when Samba is used
- Add samba user prompt Failed to add entry for user.
- Add Samba user prompt failed to add entry for user
- Troubleshooting of samba error in Linux configuration startup
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- Failed to create Oracle Oracle home user solution appears in oracle12c installation
- [Python CONDA error] cache entry design failed, entry ignored error resolution
- 【Linux】psql: FATAL: Ident authentication failed for user “username” Error and Solution
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- Error 1045 (28000) access denied for user ‘root’ @’localhost ‘appears in MySQL under Windows system
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- Samba error: session setup failed: NT_ STATUS_ LOGON_ FAILURE
- samba Error NT_STATUS_CONNECTION_REFUSED Failed to connect with SMB1 — no workgroup available
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- Common linux commands — find command’s Exec
- Modify samba configuration, restart service failed
- What to do when idea Maven package appears could not find artifact xxxxx!
- Docker run failed with the following error in logs, standard_ init_ linux.go:211 : exec user process caused “exec format error“
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- Linux find file text command (find | grep)