From owner-freebsd-questions Wed Feb 13 10:59:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 88F0A37B402 for ; Wed, 13 Feb 2002 10:59:14 -0800 (PST) Received: (qmail 28761 invoked by uid 100); 13 Feb 2002 18:58:58 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15466.46962.307928.294404@guru.mired.org> Date: Wed, 13 Feb 2002 12:58:58 -0600 To: Brian T.Schellenberger Cc: questions@freebsd.org Subject: Re: 2 Questions In-Reply-To: <9552899@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.5-STABLE-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 Brian T.Schellenberger types: > On Tuesday 12 February 2002 11:54 pm, theVanguardian wrote: > > Hi, > > I have 2 general, possibly newbie questions: > > 1. How do I allow a normal non-root user edit files (cp, mv, etc.) > > on a mounted filesystem? (i.e. su to root, then mount /floppy, but now > > only root can add or delete files on /floppy) > > chmod a+rwx /dev/fd0 /floppy > > I can't really recall if it's the mount point or the device that has to be > world-writable, but it should be harmless to give it to both unless you > allow remote logins to your machine. This is in the FAQ. The device has to be readable by the user doing the mount. The mount point has to be *owned* by the user doing the mount. > > 2. I'm running GNOME as a normal non-root user, but for some > > reason, whenever I try to run an X app from the terminal window as root, > > I get the error "Connection to :0:0 refused by server, Client is not > > authorized to connect to server" or something to that affect. For > xhost + It should be pointed out that this opens your X session up to the entire world, with no authentication whatsoever. This is a real security hazard if untrustworty people who can make tcp connections to your machine. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message