'su lfs' dropping into the background
bdubbs at swbell.net
Tue Jan 20 20:49:36 PST 2004
Greg Schafer wrote:
>On Tue, Jan 20, 2004 at 09:35:42PM -0600, Bruce Dubbs wrote:
>>Hmm. You're right of course. However there may be a problem here. If
>>a user exits from the lfs user and reenters, there is no assurance that
>>the 'source ~/.bash_profile' will be run again.
>Huh? No matter which way the reader becomes the lfs user, the startup files
>will always execute thus solving that problem. That was one of the criteria
>when developing the new method.
>these methods should be fine (i.e. what I've tested):
>1) login from console
>2) su - lfs
>If someone accidentally does "su lfs" without the "-" then they haven't
>followed the book.
OK. I forgot the point that 'su - lfs' uses ~/.bash_profile and all is
well. Consider my suggestion withdrawn.
More information about the lfs-dev