From owner-freebsd-questions Tue Sep 25 12: 5:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web13303.mail.yahoo.com (web13303.mail.yahoo.com [216.136.175.39]) by hub.freebsd.org (Postfix) with SMTP id 9D17737B413 for ; Tue, 25 Sep 2001 12:02:19 -0700 (PDT) Message-ID: <20010925190029.48322.qmail@web13303.mail.yahoo.com> Received: from [193.174.9.99] by web13303.mail.yahoo.com via HTTP; Tue, 25 Sep 2001 21:00:29 CEST Date: Tue, 25 Sep 2001 21:00:29 +0200 (CEST) From: =?iso-8859-1?q?m=20p?= Subject: Re: your mail To: brain_damaged@florida-wireless.com Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 brain_damaged wrote: > > this is confusing to me. > when setting permissions to file/directoreis etc > and using the 775 or whatver number how do you know if a user, group or owner is accessing the file or directory ? > is the a good chmod for dummies ? > and what is the differences between > chmod > chroot > chown > and how to you decide or know which one to use. > I have the walnut creek book but still CHconfusing to me. > > Thanks > Mark Hi Mark, try the following: man chmod man chroot man chown and (of course) man man Now to your questions: chown changes the owner (you must have a group and a user owning a file or directory) chmod changes the access modes for files and directories. mkdir /home/testuser chown testuser:testgroup chmod 750 is the following: create a directory, declare the owner as testuser and testgroup and allow the user all things in the directory, the group listing and reading and the rest (without the superuser "root") nothing. Where came the numbers from? 4 - read 2 - write 1 - execute (files); list (directories) add some together and you have the numbers. For more read the man-pages. Or: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/permissions.html Hope that helps Marc PS: If you not know these stuff you are not interested in chroot :) __________________________________________________________________ Do You Yahoo!? Gesendet von Yahoo! Mail - http://mail.yahoo.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message