1

When I try to install something via putty SSH yum install python-setuptools && easy_install pip, it tells me that:

You need to be root to perform this command

Even if I use sudo yum install python-setuptools && easy_install pip still get permission denied.

How can get root user permission or how can I resolve this?

0

1 Answer 1

1

You're missing sudo on the second portion of the command. Do this:

sudo yum install python-setuptools && sudo easy_install pip

The reason for this is that && is part of a conditional shell expression, which executes the command after && only if the first command was successful. sudo itself is a command/program, so, without the second sudo, this is just saying "if sudo yum install python-setuptools was successful, run easy_install pip (without sudo)".

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.