I'm having terrible trouble getting a share that 'anyone' can
connect
to read only with out a password, but selected people who have write
persmission would log into normally. The machine will have other shares
that are access by athentication only.
smbclient will give me anon access to the share. Windows XP keeps
asking for a password...
Note i've used smbclient on an OSX machine in a different subnet. It
works. Trying to connect using the GUI in OSX won't let me in. Demands a
password. I would have thought with 'map to guest = Bad User' I could
put any username I knew was invalid, any random password and it would
connect as the guest user. It doesn't.
OK what obvious thing have I missed :-)
---
chopped down testparm output....
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = ARTS
server string = Arts MultiMedia Storage
security = SERVER
map to guest = Bad User
password server = {removed :-)}
max log size = 50
load printers = No
local master = No
dns proxy = No
read only = No
guest ok = Yes
hosts allow = blah...
use sendfile = Yes
[Language_Media]
comment = Media files for language tutorials
path = /u1/language_media
write list = @artsit
create mask = 0775
hosts allow = slightly more restrictive blah than above.
Matthew Geier wrote:> > I'm having terrible trouble getting a share that 'anyone' can connect > to read only with out a password, but selected people who have write > persmission would log into normally. The machine will have other shares > that are access by athentication only.> chopped down testparm output.... > > Server role: ROLE_DOMAIN_MEMBER > Press enter to see a dump of your service definitions > > # Global parameters > [global] > workgroup = ARTS > server string = Arts MultiMedia Storage > security = SERVER > map to guest = Bad UserLooks like 'map to guest' doesn't do what I think or is broken. smbclient -L theano -U bad-user-name Password:random session setup failed: NT_STATUS_LOGON_FAILURE Same command and user name, this time leave the password blank - smbclient -L theano -U bad-user-name Password: Anonymous login successful Domain=[ARTS] OS=[Unix] Server=[Samba 3.0.2a] Sharename Type Comment --------- ---- ------- Meta Media St Disk High capacity store 1, etc.... Looks like anon login only works if the password is blank. It won't work if a password is presented. Windows as far as I can tell, will always present a password - the cached copy of what the user used to log into to the machine/domain. So a 'guest' user can't actually connect. Very soon im going to have to resort to a 'guest' account with a well known password just to get this thing working, and I would rather not. It's a gazillion students who need to access this data (read only of course :-)