LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2006, 01:16 AM   #1
candyman123
Member
 
Registered: Jul 2003
Posts: 46

Rep: Reputation: 15
prevent other uses from seeing list of users


Is there any way to prevent other users from seeing a list of all other users?

I'd like to make /home so that users cannot perform a directory listing.

So:

chmod go-r /home

Won't this cause problems though? For example, if some of the users have personal webpages.

If I don't want other users going into other user's directories, can I safely apply:

chmod go-x /home/*

Thanks.


**can a moderator move this to security

Last edited by candyman123; 07-10-2006 at 02:11 AM.
 
Old 07-10-2006, 03:03 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by candyman123
chmod go-r /home

Won't this cause problems though? For example, if some of the users have personal webpages.
No, read permission (which allows listing) is not necessary. It is the execute permission which is the important one that allows access to contents.

But this doesn't really accomplish anything, since the list of users is stored in /etc/passwd and similar information is stored in other places.

Quote:
Originally Posted by candyman123
If I don't want other users going into other user's directories, can I safely apply:

chmod go-x /home/*
No, this will prevent the web server from accessing it.

From what I understand you are trying to do, you probably want to give 701 permissions to all the home directories (chmod 701 /home/*), and make sure that all the users are in a "users" group, and have that "users" group be the gid of the home directories. That way the web server (which is not in "users") will still be able to access things in the home directories (but not list the home directory itself), and other users are denied all permissions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent users to use AUTOFS mountpoints Berkut83 Red Hat 20 01-25-2006 01:58 PM
prevent users from running 'su' manudath Linux - Security 5 04-28-2005 02:03 PM
Can I prevent users from seeing dir contents? Jukas Linux - Newbie 5 04-08-2005 07:56 PM
How to prevent users from --> Drogo Linux - Software 7 01-31-2004 11:03 PM
Prevent users from running su Itzac Linux - Security 13 03-25-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration