A very 'trivial' question about /root
freebsd at edvax.de
Thu Jun 27 02:58:38 UTC 2013
On Wed, 26 Jun 2013 23:34:41 +0200, ASV wrote:
> There's any reason (and should be a fairly good one) why the /root
> directory permissions by default are set to 755 (for sure on releases
This is the default permission for user directories, as root
is considered a user in this (special) case, and /root is its
home directory. The installer does not put anything "secret"
in there, but _you_ might, so there should be no issue changing
it to a more restricted access permission.
Hint: When a directory is r-x for "other", then it will be
indexed by the locate periodic job, so users could use the
locate command (and also find) to look what's in there. If
this is not desired, change to rwx/---/---, or rwx/r-x/---
if you want to allow (trusted) users of the "wheel" group
to read and execute stuff from that directory (maybe homemade
admin scripts in /root/bin that should not be "public").
There are few things that touch /root content. System updating
might be one of them, but as it is typically run as root (and
even in SUM), restrictive permissions above the default are
To summarize the answer for your question: It's just the default. :-)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions