How to install Linux AD controller samba4 on Debian 10



BASIC USER MANAGEMENT
# sudo su

Display domain users list
root@smb:~# samba-tool user list

Add a domain user
root@smb:~# samba-tool user create ubuntu

Delete a domain user
root@smb:~# samba-tool user delete ubuntu

Reset password for a user
root@smb:~# samba-tool user setpassword ubuntu

Set expiry for a user
root@smb:~# samba-tool user setexpiry ubuntu --days=7

Disable/Enable user account
root@smb:~# samba-tool user disable ubuntu

Display domain groups list
root@smb:~# samba-tool group list

Display members in a group
root@smb:~# samba-tool group listmembers "Domain Users"

Add a domain group
root@smb:~# samba-tool group add ServerWorld

Delete a domain group
root@smb:~# samba-tool group delete ServerWorld

Add a member from a domain group.
root@smb:~# samba-tool group addmembers ServerWorld ubuntu

Remove members to group ServerWorld
root@smb:~# samba-tool group removemembers ServerWorld ubuntu

Change Domain User Password
# sudo smbpasswd -a username
[sudo] password for admin:
New SMB password:
Retype new SMB password:

Ref:
1. Samba-4-Active-Directory-Domain-Controller-on-Ubuntu-18-04-Server
2. install-samba-4-7-6-ad-dc-ubuntu-18-04-bind-9-11-dns-backend-ad-rfc2307
3. Profile
4. Install AD Controller to windows
5. Restrict website


Post a Comment

Mới hơn Cũ hơn