Switching users in a bash script?

Angel Tsankov fn42551 at fmi.uni-sofia.bg
Sun Aug 27 10:10:18 PDT 2006


>>> Then simply call:
>>> echo build-package-name.txt | su
>> 
>> An easier way, to me, is to be root to start off. Then you can switch
>> to any user without worrying about passwords.
>> 
>> su apache -c "./build-apache.sh"
> 
> Yes, this is what I'm just goning to do...

Btw, how do I call a function in a bash script from another bash script?
Sorry for the off-topic, but I need this for the package users system.



More information about the lfs-support mailing list