Hi, I'm trying to get samba (v3.0.23d) going on an embedded system. Our initial requirement is to get a very simple windows share operational. No security required, read only anonymous access. With this in mind we followed the guidelines as per the samba documentation: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/StandAloneServer.html#simplynice Samba (smbd) crashes with a "failed to get pdb methods for backend guest" message. After searching the mail archives I have my doubts as to whether the conf line "passdb backend = guest" is correct. Tried "tbdsam" but then I run into all kinds of access challenges from the clients. Because this is an _embedded_ system with limited user management, we want samba to ignore all access operations. I.e. don't do any PAM, Unix user/password checks. Just allow read access to the directory from any Windows client/domain/workgroup. What is the simplest way of achieving this? What are the etc/passwd file requirements? Anything else we need? ~~~~~~~~~~~ Conf file ~~~~~~~~~ [global] workgroup = MYGROUP netbios name = MYSERVER security = SHARE passdb backend = guest [data] comment = Read only data path = /data guest only = yes _________________________________________________________________ MSN Hotmail is evolving – check out the new Windows Live Mail http://ideas.live.com
Tuesday 06 of February 2007 12:12:51 - Reyneke napisa?(a):> Hi, > > I'm trying to get samba (v3.0.23d) going on an embedded system. Our initial > requirement is to get a very simple windows share operational. No security > required, read only anonymous access. With this in mind we followed the > guidelines as per the samba documentation: > > http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/StandAloneServer >.html#simplynice > > Samba (smbd) crashes with a "failed to get pdb methods for backend guest" > message. After searching the mail archives I have my doubts as to whether > the conf line "passdb backend = guest" is correct. Tried "tbdsam" but then > I run into all kinds of access challenges from the clients. > > Because this is an _embedded_ system with limited user management, we want > samba to ignore all access operations. I.e. don't do any PAM, Unix > user/password checks. Just allow read access to the directory from any > Windows client/domain/workgroup. What is the simplest way of achieving > this? What are the etc/passwd file requirements? Anything else we need? > > > > ~~~~~~~~~~~ Conf file ~~~~~~~~~ > [global] > workgroup = MYGROUP > netbios name = MYSERVER > security = SHARETry to remove this line if you don't want any kind of security> passdb backend = guest> > > [data] > comment = Read only data > path = /data > guest only = yesMarcin
On Tue, Feb 06, 2007 at 11:12:51AM +0000, - Reyneke wrote:> Samba (smbd) crashes with a "failed to get pdb methods for backend guest" > message. After searching the mail archives I have my doubts as to whether > the conf line "passdb backend = guest" is correct. Tried "tbdsam" but then > I run into all kinds of access challenges from the clients.That should work fine, as should the default smbpasswd backend. If you want it fully open, try [global] security = user map to guest = bad password [data] path = /data guest ok = yes Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070206/61319842/attachment.bin
> > >security = user > > >map to guest = bad password > > > > Same deal. Using smbclient and I get the following: > >next try: > >username map = /etc/smbusers > > >/etc/smbusers: > >samba = * >Nope. Sadly, no change. The strange thing is that I tried this config [global] workgroup = MYWORKG netbios name = MYSERVER security = share [data] path = /data guest only = yes on a Ubuntu box using the same smbd build and it worked fine. If I use a cross-compiled version (same Makefile, config, folders etc) then we get the problems as listed. That is why I suspect it might be system related, and trying to figure out what samba system interaction might causes this. What are the known system dependencies of samba to get a simple share working? _________________________________________________________________ Get Hotmail, News, Sport and Entertainment from MSN on your mobile. http://www.msn.txt4content.com/
On Tue, Feb 06, 2007 at 03:39:27PM +0000, - Reyneke wrote:> on a Ubuntu box using the same smbd build and it worked fine. If I use a > cross-compiled version (same Makefile, config, folders etc) then we get the > problems as listed. That is why I suspect it might be system related, and > trying to figure out what samba system interaction might causes this. > > What are the known system dependencies of samba to get a simple share > working?Not that I know of any. But if you have a custom build, anything can happen. We would need smbd log files with debug level 10. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070206/6dee8d90/attachment.bin
On Tue, Feb 06, 2007 at 04:31:21PM +0000, - Reyneke wrote:> Started system. Started [nmdb -D & smbd -D -d 10]. Attempted one remote > connection from client. Was challenged with a win user dialog. Tried random > password. Copied log file.Can I have the logfile for the 'map username' / 'security=user' config as well? security=share is really bad these days. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070206/66e256d5/attachment.bin
On Wed, Feb 07, 2007 at 10:16:31AM +0000, - Reyneke wrote:> >Can I have the logfile for the 'map username' / > >'security=user' config as well? > > > >security=share is really bad these days. > > > > > Here it is...Can you try to put *any* password into smbpasswd with "smbpasswd -a samba" Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070207/9fb65d50/attachment.bin
>Can I have the logfile for the 'map username' / >'security=user' config as well? > >security=share is really bad these days. >Here it is... Config used: [global] workgroup = PPC netbios name = T1000 security = user map to guest = bad password username map = /etc/smbusers [recdata] comment = Read only Recording data path = /T1000 guest ok = yes _________________________________________________________________ Get Hotmail, News, Sport and Entertainment from MSN on your mobile. http://www.msn.txt4content.com/