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: morgion on Feb 20, '03 10:57:46AM

You can also use the following to become the root user (if you have sudo access and authorization to execute the command): sudo -s
It will then prompt you for your password; enter the one you use to login.

This next command is helpful if you want to run a series of commands as another user (after you are root, naturally): su username

This method is much safer than logging in as root; you don't even have to enalbe the root password. I've been using UNIX for years, and I haven't enabled the root password on any of my Macs without loosing any flexibility.



[ Reply to This | # ]