New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You cannot run CocoaPods as root #6795
Comments
This is a feature we specifically added to protect people against shooting themselves in the foot with respect to file permissions. You probably need to set up the permissions for your current Jenkins user to be able to write to any folder inside the project's directory. |
thanks for your response |
@orta hey, how do i disable this "feature" if i feel extra suicidal with my virtual machine? |
You could probably use some Ruby monkey-patching to accomplish that but we don't have a supported way to disable this |
look, i know you meant well but i have this process bound to a parent process that actually requires root access or that the normal user gets all privileges which defeats the purpose of supressing root access in the first place. |
Sorry for the hassle but I don't see this being changed. Podspecs can include their own custom installation commands via If you think this should be changed, feel free to open a new issue suggesting the change, or a PR with a flag to disable this and it could be discussed there as well. |
@amorde thanks, will do |
Any update? I have this error when I run my lane in CI/CD env.
And when i exec |
@matteocollina this has been requested in #8929 - there are no updates other than that we'd welcome PRs for adding a CLI option for allowing root |
I'm having the same issue, but I don't understand why. As far as I know I'm not running cocoapods as root, I'm using jenkins. |
@buscarini Jenkins could potentially be spawning the process as root |
Nevermind, the problem was that I restarted the machine and Jenkins was set up to run as root. |
@heidji What did you do exactly to install the cordova plugin? |
@Agastya-Asthana was a some time ago, don't even use cordova anymore. |
CocoaPods 1.10.0.beta.1 is introducing a mechanism to run as root with the command line flag |
Hello @ Agastya-Asthana I'm using a macOs VM too and I had the same problem, I tried infinited of commands and tips I found in google but it's so asy to fix ... o_O only put privilege to library folder, with this you can use the commands without sudo .... |
I'm having the same issue |
Setup node so that it doesn't need to be run as root
…On Mon, Sep 21, 2020 at 12:43 AM mahmoud310 ***@***.***> wrote:
I'm having the same issue
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6795 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AETRD6DJ6Y3JI6TBSZIAUFTSG3RWRANCNFSM4DPAFFHA>
.
|
Hi, Am not seeing any error in the log but at the end failing with exit code:1 Pods up to date, audited 1 package in 921ms found 0 vulnerabilities �[4mUsage:�[24m
�[4mCommands:�[24m
�[4mOptions:�[24m
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:439:in `help!': �[31m[!] You cannot run CocoaPods as root.�[39m (CLAide::Help) �[4mUsage:�[24m
�[4mCommands:�[24m
�[4mOptions:�[24m
===============================
|
@MittapalliHareesh if you're running cocoapods as root you'll need to pass the |
I can't execute pod install after using Jenkins to download the project
Run sudo pod install
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Usage:
Commands:
Options:
pod --version
1.2.1
pod install
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+%40+dir_s_mkdir+-+%2FUsers%2Fsunny%2FDesktop%2FLG_Dev%2FlinGan%2FPods&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
Found no similar issues. To create a new issue, please visit:
https://github.com/cocoapods/cocoapods/issues/new
The text was updated successfully, but these errors were encountered: