[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

run command as root within script



Is there a way within a bash script to temporarily
su to the root user, then run some commands,
then go back to the original user?
*
Or can you temporarily (within a script), assign
the current user to have more rights, then take
away those rights?
bash scripting is fairly new to me.

Thanks,
-Rick



Reply to: