I'm using Debian Wheezy 7.1 and i'm writting a simple shellscript to do some initial configurations in my system when i will install it, but i'm having a problem. Some configurations i have to do as superuser and some not. I don't want to make two shellscripts, so i would like to know how can i make my script do some things as superuser and some things as normal user.
I dont want to use sudo, by the way.
In Google i found some tutorials but all they use sudo!
I've tried this:
echo 'Im super user'
echo 'Im a normal user.'