Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using wubi ubuntu which doesn't have a root account. I have php in a nonstandard location because of lamp. I would like to add a path to the sudo account so I can do sudo php -m for example.

share|improve this question
See my updated answer. – Dennis Williamson Sep 11 '09 at 5:36

Will it work if you add it to /etc/profile or /etc/bash.bashrc?

What does your /etc/sudoers file look like?

share|improve this answer
I tried that but it didn't work - i think that's only for regular users. – patrickinmpls Sep 11 '09 at 3:55
up vote 0 down vote accepted

I used this:

sudo su --c "php -m"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.