samba-tool is used to change the Account settings of the domain users.# samba-tool domain passwordsettings show
# samba-tool domain passwordsettings set --help
--complexity
--store-plaintext
--history-length
--min-pwd-length
--min-pwd-age
--max-pwd-age
# samba-tool domain passwordsettings set --complexity on
# samba-tool domain passwordsettings set --history-length 8
# samba-tool domain passwordsettings set --min-pwd-length 10
# samba-tool domain passwordsettings set --min-pwd-age 30
# samba-tool domain passwordsettings set --max-pwd-age 90
To view the Account related settings:
# samba-tool domain passwordsettings show
To take a backup of Samba4 Domain server# cd /root/samba-master/source4/scripting/bin
#./samba_backup
To inspect the allocated UID and SID to and user or group# wbinfo --name-to-SID "username"
# wbinfo --sid-to-uid "SID"
Related Articles
Follow the below links for more tutorials
Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
15 tips to enhance security of your Linux machine
How does a DNS query works when you type a URL on your browser?
How to create password less ssh connection for multiple non-root users
How to create user without useradd command in Linux
How to unlink/delete a symbolic in Linux
How to give normal user root privileges using sudo in Linux/Unix
How to do Ethernet/NIC bonding/teaming in Red Hat Linux
How to install/uninstall/upgrade rpm package with/without dependencies
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
15 tips to enhance security of your Linux machine
How to create password less ssh connection for multiple non-root users
How to create user without useradd command in Linux
How to unlink/delete a symbolic in Linux
How to give normal user root privileges using sudo in Linux/Unix
How to do Ethernet/NIC bonding/teaming in Red Hat Linux
How to install/uninstall/upgrade rpm package with/without dependencies