From owner-freebsd-questions Wed Apr 5 21: 2:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 35A4B37B8BF for ; Wed, 5 Apr 2000 21:02:09 -0700 (PDT) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.10.0/8.10.0) id e36423M09978; Wed, 5 Apr 2000 21:02:03 -0700 (PDT) From: Bhishan Hemrajani Message-Id: <200004060402.e36423M09978@cytosine.dhs.org> Subject: Re: mount /chmod question In-Reply-To: <38EC0979.D397908@dsl-gw2-dhcp-a93.clsp.uswest.net> from Mark at "Apr 5, 2000 09:50:17 pm" To: big-sky@altavista.net Date: Wed, 5 Apr 2000 21:02:03 -0700 (PDT) Cc: FreeBSD-Questions X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You do realize that this is a MAJOR security risk. To be able to write to that drive as a normal user, use: chmod 777 /dos This will allow ANYONE to write to /dos. Beware that this is a major security risk! What I recommend is that you make a group, and addusers to that group that you want to be able to have write access to /dos. Do do this, add this line to /etc/group: dosw:*:101:root,otheruser Add the users that you want able to write to /dos to that group. Then do: # chown root:dosw /dos # chmod 775 /dos To be more secure, and deny all read access to any other users, do this: # chmod 770 /dos This will probably be the best way to do it. Hope this helps. --bhishan > 2 physical drives. Drive one is removable and all FreeBSD. Drive two is > fat32 formatted and allows me to share between FBSD and Win98. > > fstab: > > # Device Mountpoint FStype Options Dump Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1f /usr ufs rw 2 2 > /dev/ad0s1e /var ufs rw 2 2 > /dev/ad1s1 /dos msdos rw 2 2 > /dev/acd0c /cdrom cd9660 ro,noauto 0 0 > proc /proc procfs rw 0 0 > > I added the ad1s1 line. Not sure if this was the correct dev, but it > lets me see that drive. Iam unable to write to this drive as a normal > user. > > ls -dl /dos > drwxr-xr-x 1 root wheel 16384 Dec 31 1979 dos > > My user is part of the wheel group so I tried to use chmod. > Running chmod as root user. > > chmod 774 /dos > ls -dl /dos > drwxr-xr-x 1 root wheel 16384 Dec 31 1979 dos > > Nothing changes. I want to be able to write to this drive as a normal > user/wheel. Tried using mount_msdos using the man page to no avail. > > Thoughts? > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message