sudoers Questions
2
Solved
What I'm trying to achieve is, to reload php7.2-fpm service via php-deployer. According to php-deployer's documentation, it can be done like the code below:
task('reload:php-fpm', function () {
ru...
Unexceptional asked 22/10, 2018 at 12:45
4
Solved
I am new to Ubuntu.
And as while editing anything in visual studio code, I had to enter password.
so for that I tried to change in sudoers file but after that I am unable to find what happened and ...
Atomy asked 2/10, 2019 at 4:41
3
I have taken over a Ubuntu 14.04 server. It has a user called "deployer" (used with capistrano), and as such, it needs sudo privileges. With this setup, I can log into the server and do stuff like:...
3
Solved
Can not create folder during image building with non root user added to sudoers group. Here is my Dockerfile:
FROM ubuntu:16.04
RUN apt-get update && \
apt-get -y install sudo
RUN addus...
6
Solved
Currently, I am working on an OSX Maverick, and I can't use sudo command in Terminal.
My-Mac:~ phucnd$ sudo
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting.
H...
7
Solved
I have a Google Compute Engine VM instance with a Asterisk Server running on it. I get this message when I try to run sudo:
sudo: parse error in /etc/sudoers near line 21
sudo: no valid sudoers so...
Sigh asked 23/12, 2014 at 14:47
2
Solved
I am carrying out performance tests on a system where I need to ensure I am reading data from the disk, and that it is not just cached (say from earlier tests). I read here that I can drop cache wi...
Angara asked 30/11, 2012 at 14:15
5
Solved
Been following instructions for editing sudoers file, made changes but the instructions say to exit using ctrl+x - this just gives me a capital X and a caret. Have tried ctrl:x ctrl+Q Esc.
Not usi...
Outfitter asked 4/10, 2012 at 21:33
11
Solved
After logging into ssh in a Linux machine, I got this message:
'Username' is not in the sudoers file. This incident will be reported.
How can I resolve this? I'm connecting ssh to my virtua...
1
Solved
I'm creating a docker file from ubuntu:bionic image.
I want an ubuntu user with sudo privileges.
This is my Dockerfile
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND noninteractive
# Get the basic stuff
...
Herbivore asked 23/12, 2020 at 16:2
1
I am trying build cassandra docker image using alpine based os. on the container run process i am getting permission related issue, as i am running as cassandra user. i am unable to run sudo and sw...
Intro asked 16/3, 2020 at 3:13
3
Solved
I have script.sh that must be run as user2. However, this script can only be run under user1 in my application.
I would like the following command to run:
su user2 -C script.sh
but be able to r...
3
Solved
I have a bash script (chbr.sh) to change my display brightness from terminal as my brightness keys doesn't work.
sudo setpci -s 00:02.0 F4.B=30`
Now, every time I run that script it asks for my pa...
2
Solved
I installed the latest Google Cloud Deep Learning VM Image today, after VM was launched, I was able to do sudo -i successfully via SSH web.
Once I login, I start my Tensorflow model training runnin...
Neukam asked 11/10, 2018 at 5:59
2
Solved
I am trying to write a script that will run the following commands:
sudo su
runmqsc_result=`su -c "runmqsc QMGR < /home/rob/query_queue.txt" -m "mqm"`
My issue however, is that these commands...
1
Solved
I have just updated to OSX Yosemite and every time I execute a sudo command, the OS issues this warning before the password prompt:
WARNING: Improper use of the sudo command could lead to data los...
1
Solved
I've a regex and want to use it in a sudoers file. But I couldn't get it work.
\/test\/([0-9a-zA-Z\/]+\.[0-9a-zA-Z]+)+
I found that it must be
\\/test\\/([0-9a-zA-Z\/]+\.[0-9a-zA-Z]+)+
...
3
Can we use heredocs to run multiple commands using sudo?
I am facing an issue (need to pass password for every command) while running
multiple commands:
echo 'password'| sudo -S ls
echo 'p...
Scrubber asked 20/5, 2015 at 6:28
4
Solved
I was trying to run Meteor on my VPS and I was getting this error:
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restartin...
Woermer asked 3/8, 2014 at 6:58
2
Solved
I have this in /etc/sudoers:
%wheel myhostname =NOPASSWD: /bin/bash -c "echo foo && echo bar", \
/bin/bash -c echo foo
Executing sudo /bin/bash -c echo foo works without being prompted ...
1
Solved
I want to add a user in the sudoers file and I don't want to touch the original /etc/sudoers file, so I added a new file under directory /etc/sudoers.d.
The interesting thing is about the name of...
1
Solved
I need to exec command from php to write into my vhosts.conf.
I have one add_vhost.sh file :
cat /home/www/test/conf/vhosts.conf >> /etc/httpd/conf.d/vhosts.conf
this is php script:
exec...
6
Solved
I've been trying to write a small library using Thor to help assist me in quick creating new projects and sites. I wrote this small method:
def ssh(cmd)
Net::SSH.start( server_ip, user, :port =&g...
1
I am Mahesh.
I installed jenkins in my linux machine,IT works well as a normal user, When i try to run one script in super user [root] mode,It is not working properly,Even i disable the password in...
1
Solved
I am trying to allow all users in the admin group to run a jar file as SUDO without a password, I have edited the sudoers file (using visudo) and tried a number of commands but it still prompts me ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.