Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 1997 12:20:48 -0500
From:      Nathan Dorfman <nathan@rtfm.net>
To:        freebsd-current@FreeBSD.org
Subject:   su and login.conf
Message-ID:  <19971220122048.25138@rtfm.net>

next in thread | raw e-mail | index | archive | help
Anyone else out there think that su should read login.conf when
started without the - flag?

	1) When you su to root, and don't use the - flag, you probably
	still want the stuff in /sbin, /usr/sbin, etc. In fact, more than
	a few ports makefiles (and make world IIRC) want utilities in
	the sbin directories without specifying a full path.

	2) The umask. The umask for most users is 0, while the umask for
	root is 022. With an inherited umask for an su, you can realize
	that noone can access the new port you've installed.

If I'm not mistaken, su without - is supposed to not set the - flag in
your shell's argv[0] to prevent it from executing it's .profile or .login;
the settings in login.conf should be affected by even a temporary su to
install a port or make world or something else that requires a brief
access to root.

Anyway, just a suggestion, anyone else feel this way?
-- 
   ________________ _______________________________
  / Nathan Dorfman V PGP: finger nathan@rtfm.net  /
 / nathan@rtfm.net |    http://www.rtfm.net      /



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971220122048.25138>