RE: SSH accounts - basic restriction




Files in /etc are designed to be readable to all processes, including
user processes. For example, /etc/resolv.conf for looking up hosts,
/etc/passwd for user details and so on. Anything which explicitly needs
to be hidden from normal users can have appropriate permissions set,
e.g. /etc/shadow is normally only readable by root.

Below is default debian permission for selected files and catalogs:

drwxr-xr-x 8 root root 4096 2007-02-05 01:46 apache2
drwxr-sr-x 2 root bind 4096 2007-02-05 01:48 bind
-rw-r--r-- 1 root root 677 2006-11-07 03:14 hosts.allow
-rw-r--r-- 1 root root 901 2006-11-07 03:14 hosts.deny
-rw-r--r-- 1 root root 1033 2007-02-05 01:48 passwd
drwxr-xr-x 2 root root 4096 2006-11-07 02:38 ssh
drwxr-xr-x 7 root root 4096 2006-11-07 03:14 network

If change permission

chmod o-rwx

will system work correctly?

There shouldn't be anything readable under /etc which constitutes a
security risk. If you really don't trust your users, don't give them
access in the first place :-)

:-) I trust my users, but I think the souldn't reed this files :-)

--
Best regards


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: /dev/lp0 rights and CUPS
    ... On Tuesday 04 July 2006 14:27, John O'Hagan wrote: ... The third line was causing permission problems for normal users; commenting it ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: OT: Thanks to the developers
    ... This was a massive change. ... complex process manageable by normal users. ... (The "pseudo" part is because in fact it's an installation on a MS Virtual PC drive *shrug*; I had to quickly replace some time ago a real machine that started to show some hardware problem - it was quite old and at times refused to boot at all. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Permission inheritance problem
    ... | usually on /mnt normal users will not be having permission to write so I ... almost always want to grant 'x' if you grant any access. ... group" or "sticky bit for other". ...
    (RedHat)
  • Re: Permission inheritance problem
    ... | usually on /mnt normal users will not be having permission to write so I ... almost always want to grant 'x' if you grant any access. ... group" or "sticky bit for other". ...
    (RedHat)
  • Re: Permission inheritance problem
    ... Am working with file permission I have a query, ... usually on /mnt normal users will not be having permission to write so I ... others, as sticky bit is set, even the files and folders under /mnt can not ...
    (RedHat)