[Samba] guest ok = yes
John H Terpstra
jht at samba.org
Thu Jan 16 21:20:01 GMT 2003
On Thu, 16 Jan 2003, Roland Thompson wrote:
Roland,
First a few sanity checks:
1. Your WinXP users (ie: the login name and password) are in tyour
smbpasswd file right?
eg: you did:
smbpasswd -a 'user_id'
for each user?
2. If the WinXP login name (user_id) differs from the Unix/Linux login
name, you need in your smb.conf [globals]
username map = /etc/samba/smbusers
in the file: /etc/samba/smbusers
root = administrator
unixuser = windows_user
fredm = 'Fred Mackers'
joep = joseph
3. Did you cause the WinXP to join the domain?
My guess is that you did not do this as you do not have 'domain logons =
yes' etc. In this case you need to make sure that your user credentials
match the Unix/Linux ones exactly, or else use the username map facility
to affect the same. In any case the Unix/Linux smbpasswd needs to be
identical with the WinXP logon one.
Hope this helps.
- John T.
Please note the following:
> It was html, sorry wont happen again.
>
> Thanks for the advice but it still doesn't work. I've tried everything
> that's been suggested, but still asks for a username and password
>
> The client is XP if that makes any difference.
> Do I have a allow access from my ip address?
>
> Smb.conf
>
>
> [global]
> netbios name = THOR
> workgroup = LANGHOLME
> server string = Samba 2.2.7a
>
> local master = yes
> os level = 99
os level = 33 is enough.
> domain master = yes
> preferred master = yes
>
> encrypt passwords = yes
> security = guest
No, this will not work. You need:
security = user
>
> wins support = yes
> # guest account = ftp
>
> [music]
> comment = Music Share
> path = /home/share/music
> browseable = yes
> read only = no
> guest ok = yes
>
> #[public]
> # comment = Public Share
> # path = /home/share/public
> # browseable = yes
> # writeable = yes
> # create mode = 0777
> # directory mode = 0777
> # guest ok = yes
> # #public = yes
> # only guest = yes
> # force group = @guest
> # force user = guest
>
>
>
> -----Original Message-----
> From: Joel Hammer [mailto:Joel at HammersHome.com]
> Sent: 15 January 2003 23:28
> To: Roland Thompson; samba at lists.samba.org
> Subject: Re: [Samba] guest ok = yes
>
> That wasn't html email was it? It just had extra lines.
> Try putting:
> guest account = ftp
> into global.
> For a real thrill, try:
> guest account = root
> Joel
>
> On Wed, Jan 15, 2003 at 07:58:18PM -0000, Roland Thompson wrote:
> > Hi,
> >
> >
> >
> > I've got samba up and running, but I have the guest ok = yes option.
> >
> > Now I have the book Using Samba by o'reilly, and if I'm correct this
> > setting should enable be to access the share without using a
> > username/password, however it doesn't work, then if I enter a valid
> > samba user when it prompts it works fine!
> >
> >
> >
> > I've included my smb.conf file, any suggestions would be appreciated.
> > I'm also new to linux, so could it be something to do with the
> > permissions for this folder?
> >
> >
> >
> > [global]
> >
> > netbios name = THOR
> >
> > workgroup = LANGHOLME
> >
> > server string = Samba 2.2.7a
> >
> >
> >
> > local master = yes
> >
> > os level = 99
> >
> > domain master = yes
> >
> > preferred master = yes
> >
> >
> >
> > encrypt passwords = yes
> >
> > security = user
> >
> >
> >
> > wins support = yes
> >
> >
> >
> > [music]
> >
> > comment = Music Share
> >
> > path = /home/share/music
> >
> > browseable = yes
> >
> > read only = no
> >
> > guest ok = yes
> >
> >
> >
> >
> >
> > Thanks
> >
> >
> >
> > Roland
> >
>
>
--
John H Terpstra
Email: jht at samba.org
More information about the samba
mailing list