On Tue, Nov 8, 2011 at 8:52 PM, Onkar Shinde <[email protected]> wrote:
> Perhaps you are approaching the problem in wrong way. If the only > thing you want to achieve is restrict the new user from accessing > other users' home directories then you should check the umask. I > believe the default is 0022 which allows other users to read files and > list contents of directories. > Seems you have got us on the right track > You can either change the default umask in /etc/profile or with the > appropriate mount options of the partition where /home is present (if > on separate partition). The sensible default in your case will be 0077 > (or a bit less restrictive 0066). > > > so i have see the file /etc/profile the last line is umask 0022 but is this for any user or all users - am supposing that /etc/foo will be coming to all users so if i change it what exactly happens ?? @ Ramachandra - saw the chroot thingy am not sure that it would work - seems a bit complicated to implement thanks ram _________________________________________________________ Amazing Indians: Transforming lives in the hills<http://www.timesnow.tv/Amazing-Indians-Transforming-lives-in-the-hills/videoshow/4383022.cms>
-- ubuntu-in mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
