The sudo command is a program for some Unix and Unix-Like operating systems, that allows a user to execute programs with the security privileges of another user. Typically those of a superuser or the root user.

learn more… | top users | synonyms

3
votes
0answers
2k views

'user is not in the sudoers file' but actually is

I have already read a lot of posts about enabling sudo-access for a specific user but those couldn't help me so far. The situation is: I'm running Debian Testing. On the system there are only two ...
3
votes
0answers
175 views

MacPort and LaunchAgent without sudo

I'm running Snow Leopard and am trying to install Wine. To keep things simple, I'm trying to install Wine using MacPorts. My MacPorts is local to ~/opt/local/. However, one of the required packages ...
2
votes
0answers
49 views

Sudo works as su

Ive observed kind of strange behaviour. I have openSuse and when Im in console and want to gain root access for executing one command, after typing sudo it like switches me as if Id type su. ...
2
votes
0answers
181 views

Forklift sftp with sudo command?

Is it possible to somehow issue a sudo command while using Forklift to transfer files?
2
votes
0answers
61 views

What is the `/etc/hostname` used/required for?

I found in the /etc/hostname my IP-address, than I deleted it and each time I use sudo - I get a message and a system email sudo: unable to resolve host (none) or if in the /etc/hostname is saved ...
2
votes
0answers
105 views

sudo: preserve non-std file descriptors

Long story short: why isn't this (simplified) sample working? root:# sudo -C 3 -u regular-user cat /dev/fd/3 3< /var/log/syslog cat: /dev/fd/3: No Such file or directory There is a file that ...
1
vote
0answers
35 views

Adding group permissions with sudoers with NOPASSWD still prompting for password

Fedora 20, clean install. I added the following lines to my sudoers file with visudo: %power ALL=NOPASSWD: /sbin/shutdown I then created group "power" and added my account to this group. ...
1
vote
0answers
43 views

Is there anyway you can restrict users from executing a command with another name?

I'm not asking an obvious question here. I would like to elucidate with an example. A user 'bob' is always executing 'chmod 777 /home/bob/impfiles' so that user 'alice' could make changes to the ...
1
vote
0answers
29 views

Can't resume editor running as root

For years, when I have been working over an SSH connection, I will run sudo vi ... to edit a config file. If I need to do something on the command-line, I'll hit Ctrl+Z to suspend the editor, do ...
1
vote
0answers
149 views

How can I redirect OS X dtruss output when running with sudo?

I'm running dtruss on Mac OS X 10.9. Simple example is: sudo -c ls But I'd like to capture the dtruss output into a file. I saw something that suggests that I can do something like: sudo bash -c ...
1
vote
0answers
6k views

sude gedit Gtk-WARNING **: cannot open display:

I have a VPS on which I am attempting to install pure-FTPd via a root SSH account on a remote machine. I have already installed gedit and have gotten to the stage where I need to edit a config using ...
1
vote
0answers
930 views

What is the different between “sudo su” and “sudo bash”?

In Ubuntu 13.10, for the default setting, the following command in Terminal user@host:~/path$ sudo su results in entering an prompt root@host:/home/user/path# And this command ...
1
vote
0answers
45 views

Why is changing the shortname not recommended procedure?

Some Background I had an old iMac with Snow Leopard on it. It was so outdated I zeroed out the drive and reinstalled Snow on it (I'm still waiting on Mavericks to download... sigh). As I was setting ...
1
vote
0answers
48 views

sudoers syntax for specifying a list of executables

I want my user (username "wim" in group "wim") to be able to use sudo apt-get and sudo dpkg without needing admin password. I tried editing sudoers file with sudo visudo, and I added in this line: ...
1
vote
0answers
150 views

After rebooting, why doesn't sudo prompt for password when I try to start MySQL server?

I'm having a minor problem, and I'm hoping someone can help me understand why my system behaves this way. By the way, I'm a MySQL + Terminal newbie, so please go easy on me! I've done some due ...
1
vote
0answers
212 views

Moved /lib64 to /backup_lib64 using sudo, now sudo doesn't work on CentOS6.4

I did sudo mv /lib64 /backup_lib64 to test some compilation. Now sudo doesn't work at all farhat@heracles:~/software/sudo-1.8.7$ sudo ls sudo: unable to dlopen /usr/libexec/sudoers.so: (null) ...
1
vote
0answers
109 views

I can't get through with my password on sudo, can anyone help me?

I know that the password doesn't show up on the screen that's all good. I just can't seem to get any further as I am typing my user password but this comes up: 2012-12-04 22:38:14.815 ...
0
votes
0answers
17 views

sudo - /etc/sudoers is world writable on Ubuntu OS

By mistake I change the permission of /etc/sudoers file on Ubuntu OS, now when applying any command using sudo, its giving error, sudo: /etc/sudoers is world writable sudo: no valid sudoers sources ...
0
votes
0answers
6 views

How to make an exception in a pam module?

I have 2 servers: A and B. I want A to connect to B via ssh (as a non-root user) to run a sudo command. But sudo on B requires a yubikey input to allow the command: auth required pam_yubico.so ...
0
votes
0answers
44 views

Sudo suddenly not working correctly on OS X?

I have started noticing that commands requiring the use of sudo on OS X Mavericks are failing, e.g. I just updated Meteor and it couldn't write the launcher script sudo cp ...
0
votes
0answers
11 views

How to run a zle widget from an alias

I am using the sudo plugin for oh-my-zsh, which usually is bound to (Esc) (Esc). However, I'd prefer an alias for sudo !!. The plugin actually defines a zle widget, but how can I call this widget ...
0
votes
0answers
78 views

Script for temporarily disabling internet connection

I want to block internet connection to me for about 8 hours or so on my Linux machine. I have no will power, so simple call for ifconfig down ifconfig up or similar commands doesn't apply to me, ...
0
votes
0answers
26 views

How to restore Debian server's /var/lib datas

I made a big mistake : While administrating and making settings, I accidentally deleted /var/lib folder. The result is that I can no longer use any dpkg commands, so I"ve lost my mysql database. I of ...
0
votes
0answers
36 views

Application not themed when run with gksu instead of sudo

Slightly nitpicky, but when running applications on Linux Mint 17 from a terminal using "sudo", the application gains root privileges and is nicely themed. If I use "gksu" or "gksudo", the application ...
0
votes
0answers
34 views

CentOS 6 Getting Sudo to show the display in a FreeNX session

My platform is a 32-bit installation of CentOS 6.4 with a gnome desktop and the FreeNX server. When I log into an NX session (usually using NoMachine NX Client), and then try to open an application ...
0
votes
0answers
93 views

“qemu-nbd --create” without sudo

I'm working on a custom OS, and the make recipe I wrote for creating a new disk image requires sudo for connecting/disconnecting the virtual HDD image to a /dev/nbdN device. Because I don't want sudo ...
0
votes
0answers
37 views

Fedora 20: sudo hangs in rxvt-unicode

It seems to be an old problem that the sudo command hangs around 10secs before allowing you to enter your password when executing a command: ...
0
votes
0answers
31 views

path setting appears twice in env output

After an OS version upgrade I have the following strange problem: % port MacPorts 2.3.1 ... % sudo -i # port MacPorts 2.3.1 % sudo port sudo: port: command not found Furthermore, if I do it all ...
0
votes
0answers
11 views

Where to add a new sudoer in vCenter?

Currently, in vCenter, I clone new VMs using an Ubuntu 14.04 template and a SimpleLinux customization spec. I now need to add a new user (newuser) and configure it to be a sudoer in /etc/sudoers like ...
0
votes
0answers
26 views

Trying to rsync and use sudo on other end

Scenario: Mac OS X Machine - old computer - user: john.doe Mac OS X Machine - new computer - user: john.doe Goal: Copy /Users/john.doe/Desktop and /Users/john.doe/Documents via rsync Problem: ...
0
votes
0answers
35 views

Broken sudo commands

How to repair sudo to use standard commands? I cannot use any command with sudo.
0
votes
0answers
37 views

sudoers: allow users to remove from their home directory

I'd like to add a sudoers rule that says users are allowed to remove files from their home directory , but I don't see any way to limit arguments to be a subdirectory of the users' home. Is there any ...
0
votes
0answers
114 views

Can't sudo when logged in with ssh

I set up a ubuntu machine on my local server. I've got a user with sudo privileges (same password as for login). I've got passwordless ssh going by putting my rsa public key on the ubuntu machine. So ...
0
votes
0answers
32 views

sudo ENV_KEEP not always preserving

When I run sudo -s, my environment is preserved. However, when running a simple sudo <command> it appears not to be preserved. The contents of my sudoers file: mafro@ip-10-xx-xx-250:~ > ...
0
votes
0answers
987 views

SU : Permission denied /bin/sh

I added a new user in system: $ useradd new_user When I try to switch from root to new_user, I get this error: $ su new_user permission denied /bin/sh $grep new_user /etc/passwd ...
0
votes
0answers
65 views

User has Sudo access locally but not remotely

I've got a Ubuntu desktop installed as a vm on Windows 2012 server. I've installed Likewise Active Directory to allow domain users to log into the machine with Windows credentials. In my sudoers file, ...
0
votes
0answers
75 views

Inconsistent behavior from sudo ls -l and grep command running on AIX 6.1 TL9 SP1 after upgrade from AIX 6.1 TL8 SP3

Here is an example with grep [(qtjbc)l17asp03:/db2/DEV/scripts/updatekrnl]>sudo grep lt start_sap.ksh corp AD Password: if [[ $# -lt 2 ]] then while [[ ${IND} -lt ${NUMOFMOUNTS} ]] ...
0
votes
0answers
119 views

Pip SSL certificates fail with sudo but not in su

When I pip install, I can download the package, but I have a failure in writing to files that are only accessible with privileged access. This is expected behavior. When I sudo pip install, I have an ...
0
votes
0answers
36 views

How to make sudo with POSIX shell better?

I have made changes to my Arch Linux x86-64 system where I run bash exclusively through what I think is POSIX mode, through using /bin/sh (linked to '/bin/bash') as my login shell and instead of ...
0
votes
0answers
256 views

Seeing “sudo: effective uid is not 0” for users when an 'strace sshd' was running. Linux

Why would the following be a result of one user running strace sshd while another user attempts to use sudo? $ sudo ls sudo: effective uid is not 0, is sudo installed setuid root? The situation ...
0
votes
0answers
125 views

/etc/inittab combined with su - newuser failed to bringup new process with different UID than root

Using /etc/inittab on RHEL 6.3 x86_64 system, we tried to respawn a binary: aka watchdog from newuser UID login when restarted, not as a root UID process. Made the following changes as inline. ...
0
votes
0answers
72 views

How to connect Linux machines to a Windows Active Directory with different user rights?

I have a Windows Active Directory Setup with Windows Clients. So far our Linux machines did not authenticate against the AD, I used root to login. Now I wanted to add those Linux machines to the AD ...
0
votes
0answers
295 views

pip: which pip.conf will be used?

Commonly used to install python packages sudo pip install <package> To use a different repo, I edited ~/.pip/pip.conf [global] index-url = http://<hostname>/simple That works on my ...
0
votes
0answers
28 views

program needs to be run as root by any user and can be located anywhere

I have some program called foo that needs root privileges when it executes. foo needs to be able to be run by any user and can be located at any path. The reason this program can be at any path is ...
0
votes
0answers
46 views

Why can a non-root user not access Sublime soft link

I like using Sublime text as a VIM replacement i.e. opening from the terminal with an argument. I installed Sublime into /opt/sublime_text/ and within that is the executable I need. I then soft-linked ...
0
votes
0answers
16 views

Giving permission to a particular user to start/stop a particular service

I want to give permission to a normal user to start/stop a particular service only. Then how can i tweak the sudoers file to achieve this?
0
votes
0answers
38 views

What is wrong with this configuration of sudoers file?

I have to execute a shell script as another user, but without be prompted for password. I've edited the etc/sudoers file with visudo, adding the following line. _www localhost=(otheruser) ...
0
votes
0answers
65 views

“chown” for “make install” command?

On my Linux server, I accidentally executed sudo make install for an application install. I intended to execute make install without sudo privilege. How do I change the ownership of all installed ...
0
votes
0answers
85 views

Change all commands in custom application menu on Debian

so what I have is applications that's supposed to run as root, what I want to do is to add a sudo in the beginning of each command with a single bash script, so I can run these programs directly from ...
0
votes
0answers
98 views

Run a specific program with root privilges without asking for password everytime

Many times, i need to connect modem using SAKIS-3G script and because modem-manager sucks many times. I need to supply admin/root password, everytime i need to run sakis-3g script. I am the only ...