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.

link|improve this question

See my updated answer. – Dennis Williamson Sep 11 '09 at 5:36
feedback

2 Answers

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

What does your /etc/sudoers file look like?

link|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
feedback
up vote 0 down vote accepted

I used this:

sudo su --c "php -m"
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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