I have a Debian server that some people should be able to ssh
to.
[Edit]: Meaning use the software on that server. Execute whatever user-targeted programs installed on it. E.g. run elinks, mc, gcc or firefox per x-forwarding. Important I am not asking for detailed permissions for the examples I listed, I am just clarifying what I mean by user.[/Edit]
Regardless if I trust them or not, I want the server to have clean and secure permissions. (I have a feeling that by default multi-user security is beig compromised for single-user convenience. Evidenced by useless default read permissions on /home
, for instance...).
Especially regarding /etc
which has rwxr-xr-x
by default. Anyone can read the directory, and I find that troubling, but maybe unbeknownst to me, that is necessary.
Can someone, maybe some bearded old Unix admin, tell me how to set the permissions on a multi-user server? Especially for:
/var
/etc
/home
/opt