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

learn more… | top users | synonyms

2
votes
2answers
67 views

Root user is not able to access

I had a ubuntu user which has root level privileges but I haven't created password for it, there are other user also on the machine but none of them have sudo permissions, unfortunately permissions on ...
1
vote
2answers
71 views

sudo suddenly stopped working on debian

I've been using 'sudo ' since I setup my server about a week ago. It suddently stopped working with no explanation. I am in 'sudo' group. So there should be no config change required to /etc/sudoers ...
1
vote
2answers
258 views

error deploying app with Vlad, running a sudo command, to Ubuntu server

I'm a n00b when it comes to ssh, sudo and other unix things... so bear with me, here. i've got a rails website set up and deploying with vlad via ssh already. this works fine. now i need to have my ...
0
votes
2answers
147 views

Troubleshooting SUDO Slowness with STRACE

I'm having trouble with sudo on some systems. It is taking anywhere from 15-30 seconds to complete a sudo command or to even login to the system. I ran an strace and can see where the delay is ...
0
votes
2answers
122 views

Sudo seemingly not obeying -S parameter

I am running some scripts as part of pre/post deploy using DeployHQ, I need to be able to call the script on one line and for there to be no feedback from the terminal so I want to pass the password ...
0
votes
2answers
149 views

sudoers security

I've setup a script to do Subversion updates across two servers - the localhost and a remote server - called by a post-commit hook run by the www-data user. /srv/svn/mysite/hooks/post-commit ...
-1
votes
2answers
116 views

sudo to the same ordinary user, without authentication

My script, when executed as root, uses the sudo without passwd, and that is fine. Sometimes however, I must execute that script as an ordinary user, which "switches" to itself by that sudo command. I ...
3
votes
1answer
239 views

Sudo resetting environment variables

Whenever I use the sudo command, none of my environment variables appear to be preserved. I've tried modifying the sudoers file, by removing the env_reset specification. #Defaults env_reset I've ...
2
votes
1answer
43 views

mongodb 2.4.9 is crashing on wheezy when running as root

I installed mongodb-10gen v2.4.9 on a debian Wheezy, and I'm having this really weird behavior: if I run it as root I can't get it starts: root@xx:~# /etc/init.d/mongodb stop [ ok ] Stopping ...
1
vote
1answer
226 views

Sudo does not work with some commands on CentOS (with WHM/cpanel)

I have a fabric deployment script which uses sudo heavily. It runs about 20 commands using sudo without any problems and then choke on the last two commands: ln -sf /path/a /path/b chown -R ...
0
votes
1answer
40 views

Upgrading sudo rights

One my server, I've given the main user for the web server, access to /usr/bin and /tmp. I did this so that ceartain scripts could could call exim without this user needing to have full sudo rights. ...
0
votes
1answer
17 views

Allocate pseudo TTY in Upstart configuration file

We would like to use Upstart to manage a Java process and run it as non-root using sudo. We are on RHEL 6 which means that Upstart is too old to allow us to explicitly specify a user hence the use of ...
0
votes
1answer
53 views

Executing a command as apache

This script keeps outputting a 1. and I cannot understand why. <?php passthru("nohup sudo rndc reload sd.example.com",$op); print_r($op); ?> I have also tried the above code ...
0
votes
1answer
58 views

Allow User Account to run a single command using SUDO privelages

I have a machine running Ubuntu 12.10. I have two user accounts setup, my account, and another user. I am able to run SUDO commands, but the other user isn't in the SUDO'ers list. What I'm trying to ...
0
votes
1answer
399 views

Troubles monitoring a zimbra installation with nagios

I am trying to monitor my legacy zimbra installation (running on an outdated Ubuntu 8.x) from my nagios install (running on a more recent OpenBSD). The problem is that when I run check_nrpe from the ...
0
votes
1answer
97 views

Getting permission denied error

On my Media Temple DV 4.0 server I am getting permission denied errors: -bash: cd: httpdocs: Permission denied If I switch from my login user to sudo (sudo su) or switch to root using su-, I can ...
0
votes
1answer
128 views

File permission woes on an Ubuntu ec2 instance

I've set up an amazon ec2 instance and I'm have some file permission issues. I've created myself a new user and added myself to the following groups: adm:x:4:me,ubuntu sudo:x:27:me ...
0
votes
1answer
253 views

Unable to change user password on AWS using `passwd` command

I am using Amazon's AWS insances running CentOS. I was trying to create a user with SUDO privilege and then disable the Root login to secure the systems. I have already done the required to bring this ...
0
votes
1answer
501 views

How to run smbpasswd as root on AIX?

I have Hitachi ID Password Manager (formerly p-synch) set up to change the password on (among other systems) an aix 6.1 server running samba. p-synch has the capability of executing additional ...
-1
votes
1answer
61 views

sudo su - <username> should be possible but sudo su - shouldn't be for sudo user

There is a requirement I got. My sudo users (for which their entry in sudoers file) should be able to access other user's account say Oracle using following command: sudo su - Oracle The above ...
-1
votes
1answer
246 views

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 ...
2
votes
0answers
499 views

Nginx doesn't seem to stop correctly

I'm using the following script to start/stop nginx: #! /bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # ...
1
vote
0answers
122 views

Intermittent sudo failure - SuSE 10

We have a longstanding production issue where cron on certain servers periodically report the following error- sudo: uid NNN does not exist in the passwd file! The user does exist, in fact it is ...
1
vote
0answers
58 views

Change sudo defaults only for sudo -i

At my site the typical sudoers setup has Defaults mail_always globally set so we can keep track of what the users are generally using sudo for (which should be very infrequent) and sort out fixing the ...
0
votes
0answers
29 views

visudo passes syntax check but the file fails when put into place

I've been trying to create a modified sudoers file in /etc/sudoers.d/ but am having trouble. visudo -cf /file/path shows no syntax issues, but when i mv /tmp/sudoers/ /etc/sudoers.d/sudoers sudo ...
0
votes
0answers
93 views

Can't run gui apps with sudo (from LDAP)

I have this problem that gui apps don't work when I use ldap to provide sudo stuff (nsswitch.conf: sudoers: ldap), when I change it to "ldap files" and add DISPLAY and XAUTHORITY to env_keep it works ...
0
votes
0answers
30 views

Another Sudo delay issue w/strace on Ubuntu 10.04

This server has decided to go insane suddenly after several years of good service. I am running into so many issues that I am not sure which are the cause and which are results. Currently it takes ...
0
votes
0answers
65 views

Cant remove linux ln hard links

I am using CentOS 6.3 and am logged in a root. When I create a hard link by doing this: ln /root.hdd /somedir/root.hdd That works fine, the inode shows the same between the two files and ...
0
votes
0answers
203 views

OpenSolaris 10: Unable to open /usr/local/etc/sudoers: Permission Denied as root

Had to install sudo for an opensolaris box today and everything installed without issue. Unfortunately, even as root, when running sudo I get: sudo: unable to open /usr/local/etc/sudoers: Permission ...
0
votes
0answers
106 views

sudoers works with hostname but not with the full domain name (fqdn)

I'm using puppet to propagate a sudoers file to several environments with different domains like so: Host_Alias STG1 = *.stg1.wa.acme.com Host_Alias STG2 = *.stg2.wa.acme.com This works ...
0
votes
0answers
183 views

seteuid() for non-root user

On rhel5-6 I need to find a way to effectively call seteuid() for a process as a user that is not a super-user. In addition, I would also like to be able to control which uids for which calls to ...
0
votes
0answers
430 views

sudo in Debian squeeze inside linux-vserver always wants password

Every since I upgraded all my linux-vserver Debian guests from Lenny to Squeeze I've the apparent problem that whenever I want to use sudo it asks me for my password. Every time. I've configured sudo ...