🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #47647

Re: Chmod o-r on /etc/ folder...will it cause problems?

#47647
From: Nick Andrew
Date: Tue, 05 Jan 1999 00:00
31 lines
1798 bytes
In <369069EB.BFDD8E76@adelaide.edu.au> Glen Turner <glen.turner@adelaide.edu.au> writes:

>  chmod o-r /etc/

>will cause problems with user applications.  A lot of default
>configurations are stored in /etc that are read by non-root
>programs as they start.

Removing read permission on the directory (while retaining search
permission) will enable files such as /etc/protocols to continue to
be read by ordinary users.

The only effect this operation will have is to prevent an ordinary user
doing "ls" on /etc. No part of the system needs to scan the contents of
/etc and any userland tools which use files in that directory open the
files by name (which requires directory search permission, not read).

In summary, this is a silly proposal, because:

 1. Most files in /etc have no security or privacy implications
 2. The names of most files in /etc are known anyway
 3. With search permission any wannabe can write a brute-force "ls"
 4. Userland tools need to read files in /etc so search permission is
    required regardless
 5. If your box is so god-damned important, don't give shell access to
    untrusted users.

Nick.
-- 
Zeta Internet                     SP4   Fax: +61-2-9233-6545 Voice: 9231-9400
G.P.O. Box 3400, Sydney NSW 1043        http://www.zeta.org.au/
Technical Details
Message-ID: <76qj9v$q21$1@gidora.zeta.org.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3687946F.7287BDE5@ping-timeout.com> <369069EB.BFDD8E76@adelaide.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,7c6c019011c421a1
X-Google-Attributes: gid102983,public
From: nick@zeta.org.au (Nick Andrew)
Subject: Re: Chmod o-r on /etc/ folder...will it cause problems?
Date: 1999/01/05
Message-ID: <76qj9v$q21$1@gidora.zeta.org.au>
X-Deja-AN: 428636706
References: <3687946F.7287BDE5@ping-timeout.com> <369069EB.BFDD8E76@adelaide.edu.au>
Organization: Zeta Internet, http://www.zeta.org.au/
Newsgroups: aus.computers.linux