From owner-freebsd-questions@FreeBSD.ORG Wed Apr 4 11:11:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF52216A406 for ; Wed, 4 Apr 2007 11:11:25 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 60AA613C469 for ; Wed, 4 Apr 2007 11:11:24 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so651616ugh for ; Wed, 04 Apr 2007 04:11:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=fi4WK77MxgsRJ56VPgnhDZhpO6YdJynC9nQXmrxCuWdH1rpuet/SxEMWvSvsSPAOEbOJviJ/5qKPHaIkpLeGJJ8oP9O2nqIHUZQcHpBknJ5A6C7CtIzk18eOLErZXxhfH/6qb2IqXHaSvOuk9zxHGInPjKHtUG47PStRwuZ8pZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Xid+bo10JTFEjzjiEYNGItTfe+UNzVS3CPql/QWZ4Fy64S8+pD4PG37aj/w2nR3nsiDZ6PVdE4r2JJfLAmAq6xBwsz32PGAkvF4qUjTZC/f5pw+BmOkMGOVixeD3R696mY8pnkmSKnvfFag8ErC2q/Ecq7nZDjWt7Yz8+5ZfMH8= Received: by 10.115.76.1 with SMTP id d1mr206532wal.1175685081100; Wed, 04 Apr 2007 04:11:21 -0700 (PDT) Received: by 10.114.201.2 with HTTP; Wed, 4 Apr 2007 04:11:21 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 15:11:21 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: VeeJay In-Reply-To: <2cd0a0da0704040325n7d756c51t861852e983968e64@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2cd0a0da0704040325n7d756c51t861852e983968e64@mail.gmail.com> X-Google-Sender-Auth: 49aa0dc5a6e9553d Cc: FreeBSD-Questions Subject: Re: Help! User Permission X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 11:11:25 -0000 On 4/4/07, VeeJay wrote: > Hello friends > > How can I restrict a user from getting in to an "Unauthorized folder" and > getting directory list with using "ls" command? > > If he tries to cd to the unauthorized folder or tries to get directory > listing so he gets "Permission denied" message? "chmod a-rwx folder" to deny all access to everybody, then "chmod u+rwx folder" and "chown gooduser folder" to permit a good user (and only him) to access it. For fine-tuned denials, I guess you should read about access lists.