Questions tagged [sudo]

The sudo command is a program for Unix and Unix-like computer operating systems that allows a user to run programs with the security privileges of another user (normally the superuser, or root). The name is an abbreviation for "substitute user do" (as in, do a command as if started by another user).

The sudo command is a program for Unix and Unix-like computer operating systems that allows a user to run programs with the security privileges of another user (normally the superuser, or root). The name is an abbreviation for "substitute user do" (as in, do a command as if started by another user).

Unlike the su command, users typically supply their own password to sudo rather than the root password. After authentication, and if the /etc/sudoers configuration file permits the user access, then the system will invoke the requested command.

2818 questions
0
votes
3 answers

Ubuntu shell script - root authorization

I am using a shell script to execute a series of commends every time I boot my computer. One of the commands in the script is sudo insmod blablabla This command needs to be run as root, so double clicking the .sh file and choosing run is not an…
ppp
  • 2,035
  • 9
  • 32
  • 52
0
votes
4 answers

Remember sudo password in shellscript

I want to make a shellscript to install Wine on a Mac and i want the user to enter his/her password so the script can use it later on to make the installation unattended by automatically entering the password on "sudo" commands. This is what i got…
Sydcul
  • 99
  • 1
  • 4
  • 15
0
votes
1 answer

Capistrano error/warning when not using sudo

When I run deploy:setup and deploy:update I see embedded in the output (in multiple places) *** [err :: domain.com] sudo *** [err :: domain.com] : *** [err :: domain.com] no tty present and no askpass program specified *** [err :: domain.com] Yet,…
bias
  • 1,467
  • 3
  • 19
  • 39
0
votes
1 answer

Lost ability to run as sudo following MacPorts upgrade

I recently updgraded MacPorts from 1.9.2 to 2.0.3. Since then, I've lost the ability to run as sudo. sudo: can't stat /opt/local/etc/sudoers: No such file or directory sudo: no valid sudoers sources found, quitting Unsure if these are related, but…
wmfox3
  • 2,141
  • 4
  • 21
  • 28
0
votes
2 answers

Using exec in php for setting system clock

I am using a php script which takes a timestamp value from browser and tries to set the system clock. i m using mamp box in my mac mini. how do i set the mac mini system clock through php script. I tried using shell_exec, exec, system for achieving…
srini
  • 89
  • 4
  • 16
0
votes
1 answer

Mac sudo password incorrect when create database in postgreSQL

I'm trying to set up a Postgresql database for the first time. After installing postgresql91, i opened up terminal and did the following: sudo su - postgres createdb dbname Password: Sorry try again. I typed in my Mac admin password, why do i get…
Adnan
  • 3,129
  • 6
  • 31
  • 36
0
votes
3 answers

SCP File command as non-root user on the server

I have some files to upload. Usually to edit anything while logged in the server I must precede the command with sudo. That is known. How do I send a file then as "admin" instead of "root" when I have disabled root login. scp path\to\file…
Greg K.
  • 1,005
  • 2
  • 12
  • 20
0
votes
0 answers

python / os.system : how to keep current environment variables of an executable

Sorry if I didn't find another post related to my issue. I have a binary "class" that I launch with current environment of my SHELL and the execution is fine : $ ./class params.ini But things come complicated when I try to execute it from os.system…
0
votes
1 answer

Not able to access docker command with non-sudo user?

Why I am getting this error when executing docker version with non-sudo user. I have installed docker using Script Output with non-sudo user docker version Client: Docker Engine - Community Version: 24.0.5 API version: 1.43 Go…
0
votes
0 answers

Deleting content of "/var/log/sudo-io"

I have a large amount of disk usage in the /var/log/sudo-io directory In the form om "AA, AB, AC..." directories Can I delete the complete content af this directory ?
Teddy_R
  • 81
  • 1
  • 4
0
votes
1 answer

ubuntu terminal - do not keep in memory sudo password once used it the first time

how can I disactivate to keep in memory the sudo passoword once I have use it in the terminal? For example, when I type "sudo apt update" it asks me the sudo password, but then, when I type "sudo apt upgrade" it doesn't ask it. I would like to type…
Emma Athan
  • 329
  • 1
  • 2
  • 9
0
votes
1 answer

How can I use sudo su - in Rundeck?

I'm trying to run commands in RunDeck that require sudo su - without having to specify a username or password. I'm using OpenSSH as the Node executor. When running sudo su - through Rundeck, I am asked for a password. However, if I open an SSH…
Sloughi
  • 1
  • 1
0
votes
0 answers

Ansible Timeout waiting for privilege escalation prompt when using ask-pass and ask-become-pass

We have a fairly restrictive procedure for creating new Centos 7 VMs on GCP. We create a VM from an image, then we log in with a so-called rescue user (let them be called xyzRescue) who has a very long password we su to root (xyzRescue does not…
0
votes
0 answers

Access Linux ethercat CoE interface as a normal (not sudo) user

I need to read/write the ethercat CoE interface as a normal (not sudo) user. Is there a command to do this at Linux? Or perhaps a systemd configuration that would work just like how udev rules work for making USB devices accessible for read/write…
Maj
  • 41
  • 2
0
votes
2 answers

Run sh file as root in python file

i´m trying to run an .sh file from my python skript to manually start a synch process with clone. is there an easy way? I tryed: os.system('sudo su') os.system('cd /home/pi/Desktop/webcam') os.system('./clone.sh') but after the first comand nothing…
zzzw3838
  • 39
  • 1
  • 5
1 2 3
99
100