sudo Questions

2

Solved

I am new to MongoDB & I am trying to install [email protected] to use mongo on Mac, I proceeded to all these steps by steps : sudo brew install mongodb mkdir -p /data/db sudo chown -R...
Skeptic asked 8/3, 2022 at 20:0

9

I don't know what the deal is here… So I want to run an applescript: sudo osascript myscript.scpt This works fine in the terminal, but not when I execute it via PHP's exec(); nothing happens. The...
Lomasi asked 3/7, 2010 at 23:32

3

Solved

Looking at ways to pass current user's aliases to a sudo command, I found the following on ArchWiki: Passing aliases If you use a lot of aliases, you might have noticed that they do not carr...
Langsyne asked 13/5, 2016 at 12:20

3

Solved

I am facing issues when I need to, for example, download new Build-tools using the Standalone SDK Manager. It says it does not have permissions etc - so I run ./studio.sh with sudo, which fixes the...
Bloodhound asked 16/11, 2016 at 2:23

2

I've installed the following pkgs: ii tigervnc-common 1.10.1+dfsg-1 amd64 Virtual network computing; Common software needed > ii tigervnc-standalone-server 1.10.1+dfsg-1 amd64 Standalone virtua...
Polymerism asked 13/1, 2020 at 0:4

3

Solved

I've been working with bash for not more than 6 hours, and now I'm trying to create a menu that allows you to do some "fun" stuff :D. My problem is with the if statement that check if you...
Izzo asked 18/3, 2017 at 14:48

5

Solved

I have a shell script called setup_wsl.sh which contains: #!/bin/bash echo "hai" sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ softw...
Mckim asked 20/3, 2019 at 10:22

4

I would like my root-requiring bash script to be run from IntelliJ/WebStorm, asking me for the root password when I run it. Having my root password hardcoded in the script is a bad idea of course. ...
Groff asked 25/10, 2012 at 21:38

8

If I create the script /root/bin/whoami.sh containing: #!/bin/bash whoami and this script is called by a user with a properly configured sudo, it will indicate root Is there a fast way to obt...
Jaine asked 19/8, 2010 at 13:38

7

Solved

How is it possible to run Pycharm from the launcher with root privileges? I can do that from the terminal window, with sudo ./pycharm.sh, but I'd like to do the same directly from the launcher.
Licence asked 10/4, 2016 at 13:0

4

Solved

In bash I can create a script with a here-doc like so as per this site: http://tldp.org/LDP/abs/html/abs-guide.html#GENERATESCRIPT ( cat <<'EOF' #!/bin/bash #? [ ] / \ = + < > : ; " ,...
Frisky asked 10/12, 2010 at 18:27

5

Solved

When I try to start postgresql I get an error: postgres postgres does not know where to find the server configuration file. You must specify the --config-file or -D invocation option or set t...
Changchun asked 4/2, 2015 at 1:15

1

Solved

I have Ubuntu 20.04. My command line text editors such as nano or pico can no longer run as a user in the command line, I get user@hostname:~$ nano Segmentation fault (core dumped) However, thing...
Parotid asked 29/3, 2023 at 0:51

2

Solved

I've installed Debian 7 and just executed sudo apt-get update and got this error: Sorry, user xsma is not allowed to execute '/usr/bin/apt-get update' as root on ACS.ACS my user is "xsma" and "...
Palatable asked 19/4, 2014 at 0:26

6

Solved

I am trying to create deb package from LXC rootfs, and after creating it I want to install that package any computer. Up to this point I achieved packaging and installing deb package, however aft...
Eastlake asked 4/9, 2013 at 6:38

10

Solved

In my application directory (on Windows) I run: sudo pdfkit --install-wkhtmltopdf as explained here, but I got this error: 'sudo' is not recognized as an internal or external command, opera...

4

Solved

I have a very weird issue on my Ubuntu machine when trying to run the fastboot command. When I run: fastboot devices I get no permissions fastboot So I run the command with adminidtrator permi...
Metalinguistic asked 19/11, 2014 at 12:59

14

Solved

I'm trying to install Prestissimo to an Ubuntu 16.04 server, but that leads to an error: $ composer global require "hirak/prestissimo:^0.3" Changed current directory to /home/kramer65/.composer ...
Egression asked 18/12, 2016 at 20:6

19

I have checked all the other similar answers and none was exactly like mine, neither did any of those solutions work for me. gem environment and sudo gem environment give the same result: RubyGem...
Provincial asked 3/9, 2013 at 19:21

11

Solved

Is there any way how I can run two Db2 commands from a command line? They will be called from a PHP exec command. db2 connect to ttt (note that we need to have the connection live for the second c...
Burge asked 6/4, 2011 at 1:13

4

Solved

I want run a Bash script as root, but delayed. How can I achieve this? sudo "sleep 3600; command" , or sudo (sleep 3600; command) does not work.
Youngstown asked 16/6, 2011 at 10:9

3

Solved

I would like to make .sh file for automatic deploy web pages from github to production. I need to run composer install in it but as I run it, it throws me a warning: "Do not run composer inst...
Cyrenaic asked 27/1, 2021 at 10:24

3

Solved

I am trying to run a small python code (which requries pytz and some other packages) on a aws ec2 instance. When I tried to install pytz, I got some errors: [ec2-user@ip-172-31-28-178 ~]$ pip inst...
Luna asked 19/11, 2016 at 19:58

3

Solved

I have a simple script which is using signalr-client-py as an external module. from requests import Session from signalr import Connection import threading When I try to run my script using the...
Pesach asked 13/5, 2018 at 11:32

3

Solved

I'm using node.js on EC2 I type EXPORT PORT=80 in terminal, and i see that it correctly saves it when i type EXPORT But when I run my node.js app with the following: ... console.log(process....
Wits asked 11/1, 2013 at 12:16

© 2022 - 2024 — McMap. All rights reserved.