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


Click here to return to the 'Use "sudo -u [username] [command]"' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use "sudo -u [username] [command]"
Authored by: Garin on Feb 20, '03 12:38:23PM

sudo -u [username] [command]

It's simpler to just use sudo. Then you don't need to enter the root password, and you don't need to know the user's password.



[ Reply to This | # ]
Haha.
Authored by: Garin on Feb 20, '03 12:41:20PM

I guess this was covered in the first reply. That'll teach me for starting a post, forgetting about it, and then submitting it a couple of hours later.

Anyways, sudo is your friend.

man sudo
man sudoers
man visudo

and you'll find a wealth of information on how to do all kinds of things with permissions. You can do some pretty cool things with sudo.



[ Reply to This | # ]