?
Solved

Samba - List User Details

Posted on 2014-08-20
2
Medium Priority
?
543 Views
Last Modified: 2014-09-15
Hi

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.

Thanks
TJ
0
Comment
Question by:tjoconnor
2 Comments
 
LVL 8

Accepted Solution

by:
Pepe2323 earned 2000 total points
ID: 40273440
Hi

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

/var/log/samba/log

I hope it helps
0
 

Author Comment

by:tjoconnor
ID: 40323040
Thanks for the reply and solution. Sorry about the late reply
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's recap what we learned from yesterday's Skyport Systems webinar.
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

840 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