Questions tagged [sudo]

sudo is a tool which allows users to run commands as another user (usually the root user)

sudo allows users to run commands as another user. It is typically used to allow trusted users to run commands as root, without giving them root access, or to allow a user to run commands as another user. Both of these uses must be allowed by the root user.

886 questions
0
votes
0 answers

Google LAMP trying to update sudo

I was trying to update sudo on my LAMP cloud server at Google, but to no avail it seems. Doing sudo apt update, then sudo apt install --only-upgrade sudo if finds the same sudo as on the system: Get:1 http://security.debian.org/ jessie/updates/main…
Looren
  • 21
  • 4
0
votes
1 answer

zabbix : prob.... with defaults entries ; TTY=unknown ; PWD=/ ; USER=root ;

Zabbix sends me those annoying emails with body: zabbix : problem with defaults entries ; TTY=unknown ; PWD=/ ; USER=root ; Now I do not have sssd installed, nor do I have sss word in /etc/nsswitch.conf, like this answer would suggest. What I do…
LetMeSOThat4U
  • 1,371
  • 2
  • 17
  • 35
0
votes
1 answer

chaining ssh update commands in a script fails

I want to run a single script locally that invokes a 'sudo ./up' on several remote hosts via ssh. Where ./up is simply: ---- /home/user/up ---- #!/bin/bash sudo apt update && sudo apt -y upgrade ----------------------- The username on all hosts is…
BETLOG
  • 3
  • 2
0
votes
1 answer

Self-Hosted Github runner, how do privileged commands work?

What I'm trying to achieve: A fully automated deployment for a React App, on any commit to the live branch, by my own defined Github Runner, which is running Ubuntu Server 20.04, with npm 6.14.8 What I have so far: autodeploy.yml name:…
Ben
  • 1
  • 1
  • 3
0
votes
1 answer

How can I disable users in "domain admins" group from running sudo?

Hi we have a large company and have some Domain Admins who belong to the id myadminuser groups=101010(domain admins), "domain admins" group. I was surprised by default that the sudoers %admin group (If I understand correctly), extends to users in…
bluesquare
  • 137
  • 1
  • 1
  • 10
0
votes
1 answer

Audit ALL Sudo users and show the users UID( ) not root's UID (0)

I'm trying to log ALL users activities using su/sudo's but the logs show UID (0) root, I want to see the actual UID of the user and not Root. I've tried the Auditctl service and I've search for PAM howto about this with no success. Now I'm trying…
fat
  • 1
0
votes
2 answers

Does sudo access necessarily compromise network security? (naive newbie)

I work in software development for a large corp with fairly strict IT. I am ignorant of security practices. Developers on Windows machines have local administrator rights, are able to install apps etc, but are limited by group policies from eg…
Chris Morley
  • 101
  • 1
0
votes
1 answer

su - with automatic change directory once su command is done in shell scripting

im not familiar in shell scripting but im trying to achieve at least this script but my problem is once superuser rt is done logging in it brings me to this [rt@superuser root]$ instead of reading the second line, i would like to achieve at least…
0
votes
3 answers

Bash: Checking if can sudo on remote host using sshpass; how 'exposed' is the password?

I am using bash script below to test whether sudo is available on a remote host. I'm obtaining the password from user input. I understand (to a limited extent) that using passwords inside a script will involve security trade-offs, so I have a…
nooblag
  • 175
  • 2
  • 6
0
votes
1 answer

Compute OS Admin Login role doesn't make user sudoer

I have a user with the Compute OS Admin Login role, but when I log in using ssh, this user is not a sudoer. I've tried to restart the instance, but still the same. I've tried with enable_oslogin:TRUE both at the instance level and at the project…
0
votes
1 answer

`sudo` equivalent of `sshpass`? `sudopass`?

The sshpass programme can automatically enter the ssh password without you having Is there anything that will do that for a sudo prompt? Like sudopass? e.g. sudopass -p SUDOPASSWORD sudo -i Ubuntu Linux 18.04 (or 20.04). I am aware you can make sudo…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
0
votes
1 answer

sudo twice become method for Ansible

I have to deal with a setup in "/etc/sudoers" that I can't change because the servers in question are managed by a different team and they don't want to change it. I have root access only by sudoing to another account first. My account is only…
Beam Davis
  • 101
  • 3
0
votes
4 answers

Ubuntu keep admin rights; skip entering password and sudo

I was wondering if there is a way to enter in my admin password someplace just once and keep it for my entire time logged in. I hate having to type sudo command-name* every five seconds, or typing in the password every time the system wants to…
jack bower
0
votes
1 answer

Automate SSH login WITH password

Before this question gets deleted, I already read this, this, this, and this; and most of these links don't answer my question; because: I do need a key AND password I run multiple servers (50+), and I can't afford changing them all to no…
ProDigit
  • 1
  • 1
  • 1
0
votes
1 answer

Sudoers and setfacl command with arguments (:, " chars)

in a case of a deployment script (https://github.com/EasyCorp/easy-deploy-bundle/blob/master/doc/default-deployer.md#security-options) I need to run setfacl from a distant machine that push code. To do that in the sudoer file I've add for a specific…
mpiot
  • 101