Samba - List User Details

Posted on 2014-08-20
Last Modified: 2014-09-15

Im looking to extract user information from a Samba database. More specifically im looking for Username, Full Name, Active/Disabled and Last Login Date.

Does anyone know the command and correct syntax I can use to achieve this.

Sorry if this is an easy answer but I have never used Samba and I dont have access to Samba but I require this data for a customer of mine.

Any help that could be provided would be greatly appreciated.

Question by:tjoconnor
    LVL 8

    Accepted Solution


    this might help you with some of the information you want to get.

    pdbedit -L -- > will list all users

    pdbedit -L -v --> will list all user with more info like full name, username and some other things

    if you already know a specific username u want to look for then do something like this:

    pdbedit -L -v username

    for the last login as far as i know you have to look for that at the log for samba


    I hope it helps

    Author Comment

    Thanks for the reply and solution. Sorry about the late reply

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now