Switching users in a bash script?

Angel Tsankov fn42551 at fmi.uni-sofia.bg
Sun Aug 27 09:56:13 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...

More information about the lfs-support mailing list