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...
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...
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...
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...
7
Solved
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
#? [ ] / \ = + < > : ; " ,...
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 "...
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...
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...
Aglet asked 3/3, 2011 at 0:11
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...
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...
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...
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....
© 2022 - 2024 — McMap. All rights reserved.