Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2000 17:29:03 -0700
From:      "Raymundo M. Vega" <RaymundoVega@home.com>
To:        David Vondrasek <david@davidv.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Lock a user in home
Message-ID:  <395400CF.7F620A71@home.com>
References:  <ML-3.4.961798646.495.patl@asimov.phoenix.volant.org> <mS/135cKd-0007VES@mail.airmail.net>

next in thread | previous in thread | raw e-mail | index | archive | help
David Vondrasek wrote:
> 
> Anyone know how to set a users ~/ as / to them so they can't get out of home ?
> I have a few users I don't want to be able to *roam* the drive looking at
> stuff like websites I host they have no reason to be looking though the
> drive at other users stuff..
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


use the permissions mask, for instance if you do not want user user1
to see inside user2 home directory and viceversa type as root:

cd /home
chmod 700 *

and better yet set the umask to 077, this way only the owner of a
file can use it.

cheers,

raymundo


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?395400CF.7F620A71>