Sunday, 9 September 2018

How to delete a Samba user in Centos 7



Use the following commands to delete the samba user. Also need to delete to OS user from the server:

Run the following command to delete a samba user:

[root@linuxcnf ~]# smbpasswd -x linuxcnf
delete unix user(linuxcnf) by userdel
[root@linuxcnf ~]#

Run the following command to delete a samba user:

[root@linuxcnf ~]# userdel linuxcnf

It’s done!!!

No comments:

Post a comment