LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-05-2011, 11:09 AM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
Where is samba password file - need to list samba users


I need to see who all the Samba users are. Some other distros keep that in /etc/samba/smbpassword file but I don't have that file here.

Using Slackware 13.1 (64)
 
Old 04-05-2011, 11:32 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,517

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
The samba password backend files are in /etc/samba/private/ by default in Slackware.
 
1 members found this post helpful.
Old 04-05-2011, 12:39 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
thanks, I see that. how do you read those files, they look binary in vi.?

How do I see who all the samba users are ?
 
Old 04-05-2011, 06:00 PM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
try
Code:
pdbedit -w -L
Edit:
Ahh sorry, just noticed you said you don't have /etc/samba/private/smbpasswd

In that case you might try

Code:
tdbdump  /etc/samba/private/secrets.tdb
or perhaps tdbtool

Last edited by mRgOBLIN; 04-05-2011 at 06:12 PM.
 
2 members found this post helpful.
Old 04-06-2011, 03:37 AM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
Quote:
Originally Posted by mRgOBLIN View Post
Ahh sorry, just noticed you said you don't have /etc/samba/private/smbpasswd

In that case you might try

Code:
tdbdump  /etc/samba/private/secrets.tdb
Just tried that, and you should run it on passdb.tdb, so
Code:
tdbdump  /etc/samba/private/passdb.tdb | grep USER
should show your samba users for which you have assigned a password.
 
1 members found this post helpful.
Old 04-06-2011, 02:44 PM   #6
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Thumbs up Thanks !

Quote:
Originally Posted by titopoquito View Post
Just tried that, and you should run it on passdb.tdb, so
Code:
tdbdump  /etc/samba/private/passdb.tdb | grep USER
.
That's exactly what I was looking for, worked great ! Thank you titopoquito !
Sorry I took so long getting back here, Ill mark this thread solved !
 
Old 04-06-2011, 03:24 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
And a big Thank You to mRgOBLIN from myself for something I didn't know before
 
1 members found this post helpful.
Old 04-06-2011, 06:09 PM   #8
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Thanks mRgOBLIN

Thanks mRgOBLIN, sorry I missed you in my earlier post...
 
Old 04-06-2011, 06:26 PM   #9
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
All good, Glad you got it sorted out =)
 
1 members found this post helpful.
  


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
SAMBA getent passwd command doesnt list all the users loganking Linux - Software 0 06-14-2006 12:22 PM
[Samba] how to list users yan1 Linux - Networking 2 04-04-2005 08:23 AM
How to make Samba users change password on first use eflester Linux - Security 0 10-12-2004 07:41 PM
Logon samba on other samba password list hernandi Linux - Networking 1 10-14-2003 01:46 PM
Logon samba on other samba password list hernandi Linux - Networking 0 10-14-2003 01:40 PM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
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