On 9/3/06, Mag. Leonhard Landrock <[EMAIL PROTECTED]> wrote:

First, there is the "/etc/profile.d/readline.sh" file:

When is the following expression true?

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
        INPUTRC=/etc/inputrc
fi

This allows you to override the INPUTRC setting by exporting
INPUTRC=/some/file/somewhere. If it's not set or null, the -z test is
true. It then checks to see if you have your own .inputrc. If you
don't, then that test is also true. When both checks are true, it
falls back to the system value of INPUTRC=/etc/inputrc. What's
implicit here is that bash will use ~/.inputrc if INPUTRC is not set.

Next there is the "/etc/profile.d/umask.sh" file:

When is the following expression true?

if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
  umask 002
else
  umask 022
fi

This is kind of a goofy setting. Some people don't like it. Some
people like to create users with an initial group the same as the
username. So, you'd have user1 with a user1 group. In that case, you
might want to make group writable files by default. It's kind of silly
because probably user1 is going to be the only user ever in the user1
group, so there's not a lot of point in creating group writable files.

The second test makes it such that the system users, who on a standard
LFS system have a uid less than 100, will have a default umask of 022.
I.e., system users should not create group writable files regardless
of their group name.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to