• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • Samba4 related commands

    If you are using samba4 then you might notice that the samba3 commands would not work with samba4 as you are manually compiling your machine with samba4 package so the commands will vary. 

    Here I will show you some of the examples of Samba4 commands.

    samba-tool is used to change the Account settings of the domain users.# samba-tool domain passwordsettings show
    # samba-tool domain passwordsettings set --help

    # 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

    This will create a backup and save it inside /usr/local/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

    Deepak Prasad

    is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?
    Join GoLinuxHub Team as an Author, Click here for more information
    Samba4 related commands Samba4 related commands Reviewed by Deepak Prasad on Saturday, September 15, 2012 Rating: 5

    No comments:

    Powered by Blogger.