Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to run this command on Ubuntu:

echo "LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so" > /etc/apache2/mods-available/wsgi.load

I get a permission issue, normally this can be resolved with added the sudo command, however this still gives a permission issues on the /etc/apache2/mods-available/wsgi.load.

How do I add sudo to both parts?

share|improve this question

migrated from stackoverflow.com May 26 '13 at 5:52

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You don't; you add sudo to the whole thing.

sudo sh -c "echo ... > ..."
share|improve this answer

Your Answer

 
discard

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