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

4
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
181 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
38 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 ...
2
votes
0answers
56 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
245 views

Forklift sftp with sudo command?

Is it possible to somehow issue a sudo command while using Forklift to transfer files?
2
votes
0answers
66 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
110 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
22 views

Deny access to a specific folder for a sudo user

So here is the case: I am root in an Ubuntu system. I want to give a user (say username is X) permission to execute any command but at the same time I have a folder that I want no one to be able to ...
1
vote
0answers
29 views

different behavior: “sudo nmap” vs just “nmap”?

I'm attempting to do a simple port scan with nmap: $ nmap 192.168.56.101 Starting Nmap 6.47 ( http://nmap.org ) at 2015-03-10 19:30 IST Nmap scan report for 192.168.56.101 Host is up (0.0048s ...
1
vote
0answers
51 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
7k 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
1k 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
46 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
56 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
175 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
287 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
118 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
9 views

World writable sudoers, no root password set

I have Kubuntu 14.04 installed on USB flash drive. Yesterday by accident I did chmod 777 /etc/sudoers. Now I can't set it back to 0440, because I get an error something along the lines of 'File is ...
0
votes
0answers
22 views

Why does sudo -n on Mac OS X always return 0?

It looks like sudo -n on Mac OS X (10.10.3) always returns 0 as a return code. So something like this will always show 0, regardless of whether the user has authenticated with his password first: ...
0
votes
0answers
18 views

sudo-ldap using LDAPv3 for Mac OSX - Possible?

I have been able to setup Mac OSX to authenticate via LDAPv3 and KRB5 to a Fedora FreeIPA server. Took some work - but got it to work. My question now is if it is possible to configure the sudo ...
0
votes
0answers
60 views

Samsung Chromebook series 3 sudo password

I cannot for the life of me find the sudo password for my chromebook. I have it in dev mode on Chrome OS 41. I want to install Arch Linux ARM onto an SD card but the instructions here ...
0
votes
0answers
17 views

How PAM module reads /etc/shadow

I am developing a PAM module, which is much similar to pam_unix.so, the default authentication module. I also have a small test app that uses this module for authentication purposes. My module first ...
0
votes
0answers
203 views

security: changing sudo permissions in /etc/sudoers on Debian 7.8

I have a single-user home system running Debian 7.8 console with desktop installed but default runlevel 3 boot. I added my limited user account to the sudo group using adduser for the purpose of ...
0
votes
0answers
32 views

ssh indirectly to root

Is there a way to ssh to root on another machine even if PermitRootLogin is set to no, but ssh to a user is allowed and this user can just sudo -i to become root. For simple commands, I think there ...
0
votes
0answers
149 views

Gammu Error 500

I want to send server alerts as SMS messages from Ubuntu (13.04). I've downloaded gammu and installed - but I don't get very far. I have set the config file like this: [gammu] port = /dev/ttyACM0 ...
0
votes
0answers
698 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
17 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
81 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
19 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
146 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
62 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
62 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
278 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
50 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
37 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
14 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
33 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
48 views

Broken sudo commands

How to repair sudo to use standard commands? I cannot use any command with sudo.
0
votes
0answers
43 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
148 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
36 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
1k 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
73 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
92 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
50 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
41 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
78 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
94 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
122 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 ...
0
votes
0answers
468 views

Chmod not working on /var/www/

I am running an Ubuntu 11.10 x86 VPS. I have given a user sudo privileges, and for some reason I cannot recursively chmod /var/www/. I am running Nginx with php-fpm, although that shouldn't matter. ...