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
204 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
52 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
65 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
429 views

Forklift sftp with sudo command?

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

.deb installation won't run

I'm trying to install Wowza Software engine on my webServer, but it doesn't want go on. When I connect to my host (a Debian system) remotely via ssh, I enter: su dpkg -i WowzaAndThaNameOfTheFile....
1
vote
0answers
22 views

Sudo user is not able to export path of ant

Sudo user is not able to export path of ant. I am trying to execute shell script setpath.sh which exports path for ant. After executing the script when I am executing ant command then getting ant ...
1
vote
0answers
101 views

Set Locales on Ubuntu

Greetings: I want to set locales in Ubuntu. It currently has en_US.UTF-8 and I want to change it to es_ES.ISO-8859-1. I added the locale by entering the command sudo locale-gen "es_ES.ISO-8859-1" ...
1
vote
0answers
20 views

Run script as certain user — depending on group membership

I'm trying to run a script which calls another server through SSH (through Pub/Priv key). However depending on the user (or better said, his/her group membership) who runs the script through sudo, I'd ...
1
vote
0answers
22 views

Stuffed up sudoers file

I have managed to stuff up my sudoers file and am locked out of my server. Is there any way to get back in? To be precise, I have a single user (call her jane), who used to have sudo privileges for ...
1
vote
0answers
65 views

Installing SSL on Shared hosting server

I have beta invitation of letsencrypt.org I followed there documentation here . But i am unable to install there packages because i have shared hosting server which does not allow to use sudo commands....
1
vote
0answers
2k views

“sudo: no tty present and no askpass program specified” error

I am getting "sudo: no tty present and no askpass program specified" error while executing command like "sshpass -p password ssh user@remote sudo ls". Can one help me out... I tried it over few PCs. ...
1
vote
0answers
107 views

Can't use sudo when autologin in Arch Linux

I have a Pandaboard running Arch Linux, the default non root user is alarm. I'm trying to automatically login at startup with the alarm user. I followed the instructions here and created the file /etc/...
1
vote
0answers
35 views

How do I get the sudo permissions to enable root from Terminal?

I have an MacBook Pro constructed in mid 2014. I do a lot of work on it, and my son does his gaming on it, but when I upgraded to OS X Yosemite, my account (which was the administrator) got demoted to ...
1
vote
0answers
114 views

Restrict an admin user from using sudo on os x

I have multiple admin users on my mac. Is there a way I can block a particular admin user from executing sudo on OS X? My understanding is that if the user name is "abc", abc ALL=(ALL) ALL in /...
1
vote
0answers
24 views

Root Privileges and Risky Commands

user ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf user ALL=(ALL) /usr/bin/less /etc/httpd/confs/httpd.conf I think if these scripts are written in sudoers, "user" can cause problems on the ...
1
vote
0answers
34 views

sudo --set-home decide based on command

I was wondering if there is a way to make sudo set the --set-home flag based on the command being executed. e.g. in most cases I do not want the --set-home flag to be set, but for npm, I want it to ...
1
vote
0answers
219 views

How to rsync root files over non-root ssh?

I have two machines, both providing no root login, but provide sudo root access. Now I like to initate a rsync transfer of root files over ssh. Is there an easy way make the the root access given by ...
1
vote
0answers
73 views

Run chromium as different user - Cannot download files

For security purposes, I'm running chromium with a UID different from my main desktop user. user="web" xhost +SI:localuser:"$user" > /dev/null sudo -u "$user" -H -E -s -- chromium With sudo ...
1
vote
0answers
155 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
226 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 http://...
1
vote
0answers
130 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
9k 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 user@host:~/path$...
1
vote
0answers
50 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
72 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
239 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
527 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
128 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 TextEdit[27507:...
1
vote
0answers
873 views

sudo prompts for password over ssh

I have sudo set up for a user (myuser) as follows on "hostname" (sudoers content): myuser ALL=(suser) NOPASSWD: /path/script* this works fine, so I can run the following, logged in locally as myuser ...
0
votes
0answers
15 views

Git am not working (am not a git command) without sudo Ubuntu 14.04

I'm trying to apply some patches using git-am but it's not working. The exact message I get is: git: 'am' is not a git command. See 'git --help'. Anyone have any suggestions? It used to work, and ...
0
votes
0answers
18 views

notify-send with sudo not showing any notifications

In short: I have a scripting finding, fixing and mounting a partition, thus this needs sudo / su permissions. System: Gnome 16.04 - amd64 notify-send "a message" that shows a notification as ...
0
votes
0answers
7 views

Why can I not view the /home folder as a regular user in Centos?

I'm on Centos 5 and I'm trying to view the /home folder with my regular user account. I have sudo rights I added my user to the same groups as my root user, but I still don't get permission to view ...
0
votes
0answers
20 views

how to switch from sudo mode to normal mode for system installation script in python

I want to automate installation of mongoDB,meteor etc in python on centOS and at some point I want to switch to normal user. tried several codes which are given below but none works,also I need proxy ...
0
votes
0answers
12 views

How do I avoid getting prompted for a password when I run this script?

I’m using Amazon Linux. If I login as my “otheruser” user, and create a script, test.sh, with this text sleep 5 ; sudo reboot now I can login and run the script like so … [davea@mydevbox ~]$ sudo ...
0
votes
0answers
15 views

sudo-users Executing and Runnning Commands Recursively

I would like to give a specific user the ability to run and execute commands recursively for a given directory and his subdirectories but only specify the top level directory in the sudoers file. ...
0
votes
0answers
29 views

Have I messed up Time Machine backup?

I recently had a full power outage which happened in the middle of a Time-Machine backup to a Time Capsule on my network over WiFi. I've only recently got and started using the TimeCapsule device but ...
0
votes
0answers
53 views

“fork: Resource temporarily unavailable” from git in MacOS El Capitan

Sometimes when I am using Git and cannot do a sudo command, it reports fork: Resource temporarily unavailable What does this mean, and what should I do about it?
0
votes
0answers
26 views

rsync via sudo user using ssh not working

I logged in as USER1 and I am trying the below one from shell script. rsync -v -p -t -e "sudo -u USER2 ssh" USER2@HOST2:${REMOTE_FILE_TO_MOVE} \ ${DESTINATION_PATH} It prompts password for USER1 ...
0
votes
0answers
42 views

How to automount in ChromeOS? Biggest partition not mounting at startup on my Chromebook

I was pretty excited to realize there's a Chromebook tag on here on SuperUser, very cool! Not finding this answer on SO or SU or after a lot of Googling. Question is: My biggest partition (9Gb) /dev/...
0
votes
0answers
51 views

Subversion sudo svn update changes file ownership and rwx

I'm limiting permissions on a certain file, settings.py in my svn-linked directory so that it can only be read by sudo users and apache, which goes by the username, www-data. So, on settings.py, I've ...
0
votes
0answers
12 views

How do I break out of /home/reveller?

Ubuntu newbie here. I succesfully installed Ubuntu on a VM on Windows. I am now trying to run a localhost website using nginx. I have read tutorials online on how to create your website in /var/www ...
0
votes
0answers
76 views

Bricked my Ubuntu server can no longer start nor login anymore

I installed a virtual host (KVM) with Ubuntu Server 14.04.3 LTS. Now I spend the last week setting up apache, modules owncloud and other stuff. However, everthing worked great until I followed the ...
0
votes
0answers
46 views

I can't be root

My school gave me a dump with different partition, I have to Work on the linux one, it's a open suse modified by the school.. sometimes I need to be root for install stuff with zypper example, they ...
0
votes
0answers
31 views

Startup script launched with password-less user fails

I created a user with a password, installed an application with this user, then removed the password passwd --delete bower. When starting the following script using sudo start myscript the error ...
0
votes
0answers
14 views

How to run adb as super user in ubuntu

I have android platform tools which has adb. I know how to run commands on terminal but I don't know how to run an adb file (which is inside that platform tools folder) as super user.
0
votes
0answers
38 views

Configure non-root to umount any subdirectory

I know that it can add something like hatman ALL = NOPASSWD:/bin/umount /a/mount/point/directory to allow the user hatman to call sudo /bin/umount /a/mount/point/directory BUT... What I really ...
0
votes
0answers
35 views

How to Configure Sudo to Preserve Group and User IDs as Owners?

Question I am running sudo 1.8.15 on Ubuntu 15.10 (wily). The last two entries in my /etc/sudoers file are: Defaults:nginx stay_setuid,targetpw,env_reset nginx ALL=(ALL) PASSWD: ALL But, when I ...
0
votes
0answers
24 views

How to prevent sudoers from deleting other sudoer users in Ubuntu?

There are two sudo users on an Ubuntu machine. I don't want one of them to be able to delete the other users. But I don't want to disable second user's sudo privilege.