V
V
Vitaly2018-04-02 19:29:36
macOS
Vitaly, 2018-04-02 19:29:36

How to get root rights in the /usr/bin folder?

I execute the command
sudo cp ~/.meteor/meteor /usr/bin/meteor
,
cp: /usr/bin/meteor: Operation not permitted
I can't copy the file with my hands into the folder from finder. What to do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly, 2018-04-03
@vitali1995

Answer: open terminal on reboot and type:

csrutil disable
reboot

C
CityCat4, 2018-04-02
@CityCat4

Do you have permission to execute this command in sudo? sudo is a program that is strictly related to security to the point of insanity - you write /usr/bin/zhopa, and you type sudo zhopa - you will get a drum on your neck :)

B
BjLomax, 2018-04-02
@BjLomax

after sudo ~/.meteor/meteor is looked for in /var/root, not in your home directory.
specify the full path
sudo cp /Users/XXX/.meteor/meteor /usr/bin/meteor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question