0

It seems I dont have some permissions to write files on my server which is strange because I'm a user with all the privileges as the "root" has.

I was editing my /etc/ssh/sshd_config file, adding my user in AllowUsers:

AllowUsers myuser 

Then I've added the privileges on visudo

# User privilege specification root ALL=(ALL:ALL) ALL myuser ALL=(ALL:ALL) ALL 

So, What I'm trying to do is install Django using virtualenv but I'm getting this error:

OSError: [Errno 13] Permission denied: '/opt/www/some/myvenv/build' 

after:

$ source myvenv/bin/activate $ pip install Django==1.6.5 

FYI: I'm installing this stuffs in /opt/www/

Any idea to solve this?

2
  • 1
    how did you create myenv? Commented Jul 11, 2014 at 20:29
  • Why don't you just change the directory permissions to include your user or one of its groups? Commented Jul 11, 2014 at 20:29

2 Answers 2

1

Even though you're in the sudoers file, that doesn't give you any more permissions than a regular user. You'll have to run the pip install with the sudo command to run it with admin privileges:

sudo pip install Django==1.6.5 

Of course, you have to be careful when running things with sudo, you might damage stuff etc. etc., so make sure you know what you are doing ;)

Sign up to request clarification or add additional context in comments.

Comments

0

if you are using Ubuntu then use command

sudo pip install Django==1.6.5 

it will install Django of version 1.6.5

OR

try to give 777 permission on the folder. refer the link : https://docs.djangoproject.com/en/dev/topics/install/

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.