Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-03-2005, 12:09 PM   #1
LQ Newbie
Registered: Apr 2003
Distribution: Slackware 9.0
Posts: 7

Rep: Reputation: 0
[Samba] how to list users


I just installed samba on Ubuntu Hoary. Everything works fine. I can add users with smbpasswd and can browse those shared directories from my XP Box.
My question: How can I list all added samba users? smbpasswd does not have a list feature. And where are those users + passwords stored?
Some online resources stated, that there should be a file /etc/samba/smbpasswd, where users and passwords are stored. But on my system there isn't one, just the binary /usr/bin/smbpasswd.
Any help?

Old 04-03-2005, 12:37 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
If you take a look at smb.conf it will give you an idea of where the user accounts are stored.
Old 04-04-2005, 08:23 AM   #3
LQ Newbie
Registered: Apr 2003
Distribution: Slackware 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, thanks for the answer.
I found out, that my samba server stores its passwords in a database named TDB.
passdb backend = tdbsam guest
What does this "guest" mean? The examples in the manpage do give a location of the tdbsam, instead of "guest".
And now to my primary question: How can I list all users in that Database?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list existing users? stefaandk Linux - Newbie 11 04-03-2006 02:03 AM
list out the users. bruse Linux - Newbie 2 07-19-2005 09:46 AM
List all users eam Linux - Newbie 7 05-16-2005 12:55 AM
List existing users anand_kt Linux - Newbie 3 02-28-2005 08:18 AM
SAMBA / Win98 "..cannot view the list of users.." calabash Linux - Networking 1 10-01-2003 09:38 PM

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration