From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Knoell Subject: Re: Best way to enable 'guest' access onto Linux fileserver? Date: Wed, 23 Mar 2005 09:15:09 -0700 Message-ID: <4241960D.2010507@surefoot.com> References: <008101c52f18$3cc98ed0$580aa8c0@lanadmin> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: <008101c52f18$3cc98ed0$580aa8c0@lanadmin> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: eatley@wowcorp.com Cc: linux-admin@vger.kernel.org Hi Eve Eve Atley wrote: >Sorry if my subject is misleading. What I am hoping to do is give 'guest' >access to our 'public' directory (home/shared/public and nothing else) for >consultants who visit us inside the office on a case-by-case basis. This is >to enable consultants to share files across the network when they visit. > >Right now, we use Samba credentials (ie. Somebody/password) on our Redhat 9 >box, and match their computer logon (Somebody/password) to that so people >don't have to enter a special username/password to connect to our server. >Therefore, all our employees have their own username/password combo on their >computers, as well as their own samba username/password that matches. > >So say Joe comes in as a consultant, logged in as joe/computerpassword. >Obviously, when he attempts to access our server, he recieves a prompt >asking him for a username/password, since no joe/computerpassword exists on >our Linux box. > >So how would you handle this? By creating a guest/guest account on the Linux >box that allows access to only /home/public, then giving that info to a >consultant on an as-needed basis? Or some other way? > >Thanks, >Eve > > I think this is what you're looking for: [everyone] comment = Public guest directory browseable = yes writeable = yes path = /home/shared/public guest ok = yes public = yes printable = no force create mode = 0777 force directory mode = 0777 create mode = 0777 security mask = 0777 And in the global section: map to guest = Bad User Make sure the permissions for directory /home/shared/public are 0777. This configuration literally allows everyone to connect with r/w access, no matter what username/password they use. J