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:...
Notification asked 19/5, 2016 at 20:22

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...
Testimony asked 7/8, 2017 at 18:4

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...
Hsu asked 19/11, 2013 at 14:45

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...
Amberly asked 14/12, 2017 at 5:43

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...
Metalloid asked 1/8, 2011 at 23:33

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...
Bournemouth asked 13/7, 2012 at 10:47

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...
Shadow asked 3/10, 2013 at 16:20

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...
Armington asked 21/10, 2014 at 18:29

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]+)+ ...
Footie asked 22/3, 2016 at 12:29

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 ...
Posh asked 2/9, 2014 at 12:42

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...
Admit asked 8/2, 2014 at 1:35

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...
Chops asked 22/4, 2013 at 13:56

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...
Giguere asked 28/7, 2010 at 19:52

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...
Knapsack asked 7/8, 2012 at 7:25

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 ...
Angellaangelle asked 12/12, 2011 at 13:9

© 2022 - 2024 — McMap. All rights reserved.