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

Notices

Reply
 
Search this Thread
Old 04-03-2005, 11:09 AM   #1
yan1
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware 9.0
Posts: 7

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


Hy!

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?

Greets
 
Old 04-03-2005, 11:37 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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, 07:23 AM   #3
yan1
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?

Greets
 
  


Reply


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 01:03 AM
list out the users. bruse Linux - Newbie 2 07-19-2005 08:46 AM
List all users eam Linux - Newbie 7 05-15-2005 11:55 PM
List existing users anand_kt Linux - Newbie 3 02-28-2005 07:18 AM
SAMBA / Win98 "..cannot view the list of users.." calabash Linux - Networking 1 10-01-2003 08:38 PM


All times are GMT -5. The time now is 01:24 AM.

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