Sometimes you need to execute a command as another user to test newly installed or configured software. For instance, if you just installed snort you want to make sure it’s going to run ok as the snort user. It’s relatively simple.
su username -c command
So if you wanted to execute a backups script called backup.sh as the user named backupadmin then you would type:
su backupadmin -c backup.sh
You Should Also Check Out This Post:
- Which Web Browser Will You Be Using In 2010?
- Google Releases Chrome 3
- Holidays, Sport Schedules And Contact Birthdays In Google Calendar
- iWise Is “Twitter For Dead People.”
- Google Removes Beta Tag from Gmail and Other Apps