So I’m a bit of a terminal noob so bear with me but I was trying to update brew to install something, so I ran: brew update and got Error: /usr/local must be writable! Wasn’t really sure what that was about so I tried running sudo brew update and got sudo: effective uid is not 0, is sudo installed setuid
Tag: sudo
How/where to provide sudo password for Vagrant shell provisioners?
I am trying to build a Vagrant box (CentOS) that will be provisioned by an install.sh shell script. This script will do several things, the first of which, involves creating the correct directory structure under /opt so that my service can be installed there and do other things, like writing logs there, as well. So my Vagrant project (so far)
Run bash whiptail script after login with sudo
I’m creating a virtual machine configuration script using whiptail that I’d like to have automatically start after the user logs in. The thing is, that I don’t want the user to be root, however because the user will need to be able to change things like hostname, ip address, add directories, etc. they’ll need sudo privileges in order for the
differentiate sudo and
I would like to make my user run as sudo and as a normal user depending on his choice.He could use sudo or normal but on not using sudo I have to disable some functionalities to get rid of errors.So how could I know that user as given me sudo permissions to execute or not? I am building my application
PHP exec sudo script not working despite having sudo rights
My php script: my visudo line (I tripled checked every path) If i remove the ‘sudo’ in the exec() it will execute (i put a touch aaa at the start, with sudo the file isn’t even created so the script doesn’t even begin to execute). The script has exec rights for everyone. I can’t manage to get any error output.
Raspberry Pi create user with one file permission
I know how to create a new user on the Pi with all the same privileges as pi from this: https://raspberrypi.stackexchange.com/questions/7133/how-to-change-pi-sudo-permissions But how do you create a user with just one file permission? I mean that I want to create a user Alice that can only edit / rm / scp / the file /etc/wpa_supplicant/wpa_supplicant.conf. I don’t want them to
Ubuntu – sudo with ACL [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Get the PID of a process started with sudo via ssh
I need the process id of a process (here sleep 20) started remotely via SSH and sudo. date is inserted to illustrate the duration of the SSH connection. Without connection there is also no process on my remote machine, of course. On a second machine the last, complete command works fine: Any suggestion why there is this different behaviour of
Unable to run .py file from putty, Syntax error: word unexpected (expecting “)”)
I am new to both Python and Linux and as such request simple explanations with minimal assumed knowledge where possible please, however I am more than willing to invest time and effort to learn. I have a Raspberry Pi 2 (Model B V1.1) that is running Linux. I interact with this pi via putty. I am trying to create a
sudo: no tty present and no askpass program specified When useing shell_exec
I have a php page that is trying to run a service restart using: $list=shell_exec(‘sudo /sbin/service NetworkManager restart’); I needed to edit my sudoers file to let this happen. Thus: #Defaults requiretty and apache ALL=(ALL) NOPASSWD: /sbin/service When that failed, as a test I ran: apache ALL=(ALL) NOPASSWD: ALL I have run a shell_exec without the sudo command: $list=shell_exec(‘whoami’); echo