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
1 answer

Ubuntu /etc/sudoers problem

Greetings I am not able to add any users to the sudo users as my sudoers file has the wrong permission. My only access is SSH thus this(via recovery mode) solution doesn't seem to work for me. I will be grateful for any idea. My ubuntu is 9.04…
alijandro
0
votes
1 answer

Change primary group with sudo (-u) -g

I would like to run commands on an AIX system with sudo -i instead of just sudo. This way I can make sure that any environment settings like umask will be those of the user I'm running the command as. When the process started this way generates…
Soldaat
  • 15
  • 2
  • 4
0
votes
1 answer

Are there any security issues when adding a cmnd_alias for svn to /etc/sudoers?

Are there any security issues when adding a cmnd_alias for svn to /etc/sudoers?
Anthony
  • 103
  • 4
0
votes
3 answers

How can make rsync use sudo

I use rsync to mirror a number of folders on our failover server. However, some of our files, such as thumbnails or full-text indexes, are generated by our applications under the web user (named 'nobody'), and default to restrictive…
Bryan M.
  • 161
  • 8
0
votes
3 answers

sudo: apache restarting a service on CentOS

I need my web app to restart the dansguardian service (on CentOS) so it needs to run '/sbin/service dansguardian restart' I have a shellscript in /home/topological called apacherestart.sh which does the following: #!/bin/sh id=`id` /sbin/service…
David Shields
  • 181
  • 2
  • 12
0
votes
4 answers

Allowing an user to execute just something

which is the best way to allow a new user that I just created on ubuntu linux 9.04 to execute a script that requires some sudo without allowing him to the sudoers? The fact is that I want to give the user just the ability to execute that script,…
Jack
  • 139
  • 5
0
votes
5 answers

Sudo yum seems to fail on CentOS, but works fine after sudo -i

I am currently having some trouble with yum through sudo. For some reason, it does not seem to work: aron@graviton [/var/log]# sudo yum clean all There was a problem importing one of the Python modules required to run yum. The error leading to this…
Aron Rotteveel
  • 8,449
  • 17
  • 53
  • 64
0
votes
3 answers

Is it dangerous to allow every user to run nmap as root?

At our university we have some computers in the "networking lab", that are configured to allow everybody to run nmap as root via /etc/sudoers. Could this be a security vulnerability?
Kim
  • 769
  • 1
  • 5
  • 12
0
votes
1 answer

Emacs/tramp: sudo to root on localhost hangs after asking for password

Can't use the su method, since I don't really want to veer from the Ubuntu default too much. ssh is right out (for localhost? I ask you!). It shows a "Waiting for prompts from remote shell". And that's it, apparently. Or is it just that…
0
votes
1 answer

sudo logs date with user's locale, apparently. How do I make it use "C" locale?

I have sudo set to log to /var/log/sudo.log. I've noticed that when the locale was set to "de_DE.UTF-8", it logged a localized date ("Mär" for "März") instead of "C" locale ("Mar" for "March"). How do I make it log the date independent of the…
0
votes
4 answers

I modified sudoers file and I no longer have any users who can sudo

I uncommented a line that says all users in the admin group are sudoers and I think that caused my problem. I'm pretty sure I corrupted the file or something. I would show what the sudoers file looks like but it's telling me access denied. So, my…
Jonathan Mayhak
  • 243
  • 1
  • 2
  • 8
0
votes
1 answer

can not sudo to root in Ubuntu instance

I have an error when i want to become root ╭─saviam@server ~ ╰─$ sudo -i …
nightWolf
  • 108
  • 6
0
votes
1 answer

Setup A Program to Run At Startup As A Specified User On Linux

I have a server running Debian 12 that does not have root access enabled as recommended by many. I do have an another user admin privileged account on the server. I have a program that does not come with a service bundled with it. I have created…
0
votes
1 answer

Sudoers NOPASSWD not working for specified commands

I have the following entries in the sudoers file: christian ALL=(root)NOPASSWD: /usr/sbin/shutdown christian ALL=(root)NOPASSWD: /usr/bin/systemctl start mc When running sudo shutdown -h now or sudo systemctl start mc, I still have to enter the…
Apollo
  • 113
  • 3
0
votes
1 answer

Nsswitch - sudoers sss vs ldap what am I missing

I'm trying to configure nsswitch to use sudoers: files sss which is default for rhel9 system, however this does not work for me, but the following sudoers: files ldap does indeed work. What am I missing for SSSD to work? I can successfully log into…
N. J
  • 131
  • 5