Samba - List User Details

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
tjoconnorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pepe2323Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tjoconnorAuthor Commented:
Thanks for the reply and solution. Sorry about the late reply
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.