From owner-freebsd-questions Thu Dec 20 12:44:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (oe43.pav2.hotmail.com [64.4.36.15]) by hub.freebsd.org (Postfix) with ESMTP id 4ACFB37B41A for ; Thu, 20 Dec 2001 12:44:15 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 20 Dec 2001 12:44:15 -0800 X-Originating-IP: [66.32.92.246] From: "Jeff Jeter" To: "Scott Mitchell" Cc: "FreeBSD Questions" References: <20011219225740.A276@localhost> Subject: Re: General Disk Questions Date: Thu, 20 Dec 2001 15:44:24 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Message-ID: X-OriginalArrivalTime: 20 Dec 2001 20:44:15.0244 (UTC) FILETIME=[166DB4C0:01C18997] 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 Thanks, it worked. ----- Original Message ----- From: "Scott Mitchell" To: "Jeff Jeter" Cc: "FreeBSD Questions" Sent: Wednesday, December 19, 2001 5:57 PM Subject: Re: General Disk Questions > 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