'su lfs' dropping into the background

James Robertson jwrober at linuxfromscratch.org
Wed Jan 21 09:17:04 PST 2004


Bruce Dubbs wrote:
> 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.  -- Bruce
> 

OK, that looks fine.  What about the other piece of this thread about 
stuff in /etc/skel coming over on the useradd command?  I like 
Anderson's solution.  Works on my box.

http://linuxfromscratch.org/pipermail/lfs-dev/2004-January/041489.html

James

-- 
James Robertson -- jwrober at linuxfromscratch dot org
Reg. Linux User -- #160424 -- http://counter.li.org
Reg. LFS User   -- #6981   -- http://www.linuxfromscratch.org
LFS Bugzilla Maintainer    -- http://{blfs-}bugs.linuxfromscratch.org



More information about the lfs-dev mailing list