Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Execute commands as another user' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Execute commands as another user
Authored by: jnet on Feb 20, '03 01:07:21PM

Note, it is often preferred to execute the command this way:

su - username

The presence of the hyphen means "use the new user's environment"... otherwise the su command will not overwrite the old user's environment variables.

[ Reply to This | # ]