解決 smbpasswd 設定出現 Failed to add entry for user test 問題
透過smbpasswd 指令可以建立samba 使用者並設定密碼
[root@smbsrv samba]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Failed to add entry for user test.
如果出現以上錯誤,表示你的linux系統並沒有test這個使用者
這時候只要在系統上建立這個使用者
[root@smbsrv samba]# adduser test
[root@smbsrv samba]# passwd test
Changing password for user test.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
即可建立samba user
[root@smbsrv samba]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Added user test.
查看剛剛新增的user
[root@smbsrv samba]# pdbedit -L
CentOS 7 伺服器架設與管理實務
作者: 酆士昌
出版社:旗標
出版日期:2017/06/23
語言:繁體中文
定價:490元