I have a public share on my samba server named "Public" as follows: [public] comment = Public/General use files path = /home/samba/public browseable = yes public = yes writeable = yes write list = @mis I've tried removing the writeable and write list, adding a forced user= and all kinds of other combinations but nothing seems to work right. What I want to do ideally is simply give anyone access to this share with absolutely no password.(readonly)... I would settle for access with a given password... For the latter I created an account named "mis" and set "user = mis" which failed to accept the MIS password every time(with logged errors referencing whatever account was logged in at the tme), when I tried "force user = mis" it also failed. Anyway, I think there must be some simple way to do this but I can't seem to figure it out, and having users come over to type in their password is an inconvience(I can't even say something like net use x: \\nexus\public user=my username in order to use my password)... This is a directory that has a lot of commonly installed software, as well as drivers and other such things. Thanks in advance, David
> I have a public share on my samba server named "Public" as follows:Are you running is 'security=user' mode by any chance?> What I want to do ideally is simply give anyone access to this share >with absolutely no password.(readonly)...Ahh. Guest Access. As Andrew once patiently explained (and I've since lost the document), you really need to have two servers when using 'security=user' in order for guest and non-guest access to work. However, have a look at the _compile_ time paramter GUESTSESSETUP (or somesuch) and I thin kyou'll find that setting it to '1' or '2' may give you the behaviour you desire (albeit at a slight cost, which I can't recall). Best of luck, Mac Assistant Systems Adminstrator @nibsc.ac.uk dmccann@nibsc.ac.uk Work: +44 1707 654753 x 285 Everything else: +44 956 237670 (anytime)
Trying to config a share that will be available to anyone. Every time I try to access it, it prompts me for a user name and password? I would like to limit access to the share only by the IP address of the machine mapping the drive. How should I configure this in the smb.conf? Mark Orndorff
]-----Original Message----- ]From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On ]Behalf Of Orndorff, Mark ]Sent: Tuesday, March 20, 2001 12:26 PM ]To: 'samba@samba.org' ]Subject: Public shares ] ] ]Trying to config a share that will be available to anyone. Every time I try ]to access it, it prompts me for a user name and password? I would like to ]limit access to the share only by the IP address of the machine mapping the ]drive. How should I configure this in the smb.conf? ] ]Mark Orndorff I had that same question earlier, and looking through the man page for smb.conf, I think I found the answer. (Someone correct me if I'm wrong) .. Assuming you are using security=user, Samba must have a user to authenticate as to access anything, so you have to set guest account = <some user> (I think it defaults to nobody, but I'm not sure) and the permissions on that directory must be accessible by <some user>. You must also set map to guest = [bad user] or [bad password] (I think this defaults to "never", so the server will never see a user it doesn't recognize) .. from the man page: Note that this parameter is needed to set up "Guest" share services when using security modes other than share. This is because in these modes the name of the resource being requested is *not* sent to the server until after the server has suc? cessfully authenticated the client so the server cannot make authentication decisions at the correct time (connection to the share) for "Guest" shares. stm stm@greeny.org http://chaos.greeny.org/~stm/
Yes I can see the logic to that. I originally tried to set everything up by group on the Unix side. Ruben On 2001.03.21 00:03:26 -0500 David Rankin wrote: Brooklyn Linux Solutions CEO wrote:> Yes > > We added > > force user = jam to the service > > Because it was only working with user jam. But then when two users on 2 > workstations > use the program....it fails....which I think is a defined behavior forSMB> > Ruben >Here is a possible fix for your situation. I am doing what I think it is you are trying to do and I have no problems with my samba share. Instead of "force user", I use "force group" and I just make sure that all the users I want to have read/write access to all the files on the share are members of that group. I have included the share from my smb.conf file below for your reference. I think this will accomplish what you are trying to do and may get around your problem. [Rankin-Bertin] comment = Rankin-Bertin PLLC path = /home/samba/rbpllc valid users = @rbpllc force group = rbpllc admin users = david writeable = Yes map archive = Yes inherit permissions = Yes -- David Rankin Nacogdoches, Texas -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- Brooklyn Linux Solutions http://www.mrbrklyn.com http://www.brooklynonline.com 1-718-382-5752