From owner-freebsd-questions Wed Dec 19 14:58:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by hub.freebsd.org (Postfix) with ESMTP id 309D737B41C for ; Wed, 19 Dec 2001 14:58:18 -0800 (PST) Received: from lungfish.ntlworld.com ([62.253.148.113]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011219225816.XPIA27606.mta05-svc.ntlworld.com@lungfish.ntlworld.com>; Wed, 19 Dec 2001 22:58:16 +0000 Received: from boog.goatsucker.org (boog.goatsucker.org [192.168.1.3]) by lungfish.ntlworld.com (8.11.3/8.11.3) with ESMTP id fBJMwEn09045; Wed, 19 Dec 2001 22:58:14 GMT (envelope-from scott@boog.goatsucker.org) Received: (from scott@localhost) by boog.goatsucker.org (8.9.3/8.9.3) id WAA03297; Wed, 19 Dec 2001 22:57:41 GMT (envelope-from scott) Date: Wed, 19 Dec 2001 22:57:40 +0000 From: Scott Mitchell To: Jeff Jeter Cc: FreeBSD Questions Subject: Re: General Disk Questions Message-ID: <20011219225740.A276@localhost> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from gsfgf@hotmail.com on Wed, Dec 19, 2001 at 04:35:40PM -0500 X-Operating-System: FreeBSD 4.1-RELEASE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Dec 19, 2001 at 04:35:40PM -0500, Jeff Jeter wrote: > 1)I am running freebsd 4.4 with samba 2.2.0 > On boot i mount a MS-DOS drive to /D > When i try to access that drive over the network (from a Win2000 machine) > i can browse adn read from the drive, but cannot write. i ran chmod -R > 777 /D, but still cannot write to the drive. I tried creating a separate > share for the drive, but still no write access. What do i need to do? The MS-DOS filesystem has no concept of file ownership or permissions (other than 'read only', I guess), so *everything* under your MS-DOS mountpoint will inherit the ownership and permissions of the directory you mounted on (/D in this case). You need to umount /D, chmod and chown /D as necessary, and remount the filesystem. 'man mount_msdos' for more info on how ownership/permissions work for MS-DOS filesystems. I'd suggest 'chown nobody:nobody /D' and 'chmod 755 /D', and adding a line 'guest ok = yes' to your Samba config for [D]. The Samba guest user is 'nobody' by default, so the W2K machine *should* be able to write to the share regardless of what username it tries to use (I assume this is how you want it to work). BTW, sharing your FreeBSD root directory (and making it writeable) might not be the best plan, especially if these machines are on the 'net. HTH, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message