[Samba] "map to guest = bad password" not working as expected

Joris De Pooter joris.de.pooter at atempo.com
Tue Sep 6 15:41:20 GMT 2005


Guruswamy Namasivayam (gnamasiv) a écrit :
> Hi all,
>  
>     I had been trying to use "map to guest = bad password" to map users
> from other domains to guest to allow only guest access. But when I try
> to access the samba server from another domain, I get an error saying
> that it is not authorized from that machine. I am attaching the
> smb.conf. Please let me know if I am doing anything wrong.
>  
> [global]
> idmap uid = 70000-200000
> idmap gid = 70000-200000
> winbind enum users = no
> winbind enum groups = no
> winbind cache time = 10
> winbind use default domain = yes
> printcap name = cups
> load printers = yes
> printing = cups
> cups options = "raw"
> force printername = yes
> lpq cache time = 0
> log file = /local/local1/errorlog/samba.log
> max log size = 500000
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> smb ports = 50139
> local master = no
> domain master = no
> preferred master = no
> dns proxy = no
> printer admin = @printeradmin
> client schannel = no
> guest ok = yes
> log level = 10
> workgroup = LAB2003DOMAIN
> netbios name = ODI-MGT-CE1
> wins server = <server ip>
> password server = <password server ip>
> security = domain
>  
> 
> [print$]
> path = /state/samba/printers
> guest ok = yes
> browseable = yes
> read only = yes
> write list = @printeradmin
> force user = root
> force group = root
>  
> 
> [printers]
> comment = All Printers
> path = /local/local1/spool/samba
> browseable = no
> guest ok = yes
> writable = no
> printable = yes
>  
> Thanks,
> Guru.


Hi,

you didn't specify a guest account.

typicaly, you should write :
[global]
guest account = nobody

Hope this helps,
cheers, joris

-- 
Joris De Pooter
Tél.: +33(0)164868319


More information about the samba mailing list