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

2
votes
1answer
22 views

Lost access to sudo on Mac. Want to regain access

I don't know what came in my mind that I just typed this in my shell: sudo chmod 700 /usr/bin/sudo and then also entered my password. The above command ran and I lost control over sudo. sudo is ...
0
votes
0answers
8 views

rsync directories with sudo permissions on the remote server

I have one server which has access to a remote server, let's call it as A. I'm trying to rsyncing a remote directory from the remote server and I want to put the synchronized directory in a mounted ...
0
votes
1answer
17 views

How do I make vim use the syntax highlighting of another file location?

I don't ever use sudo vim /path/to/some.file; I always use sudoedit. However, this means that vim doesn't see the correct path. As an example, when I open /etc/http/conf/httpd.conf, sudoedit makes a ...
0
votes
1answer
39 views

Accidentally change sudo user to /bin/false

More Update In short, I have to execute a command (sudo nano /etc/passwd) using a Sudoer Account which I know the username and password but I have to login as a non-Sudoer Account trial #1 su - ...
-2
votes
0answers
63 views

Ubuntu boot message when booting back into ubuntu after manual update

ACPI PCC probr failed is a message i am getting when i try to boot back into ubuntu 15.04 after performing a manual update yesterday. Any help with this would be much appreciated. ACPI PCC probe ...
1
vote
2answers
40 views

Run `sudo` command at startup/bootup on Mac OS X

How to run a sudo on command line when a Mac startup? Specifically, I'm trying to run the following line on Mountain Lion: sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in There are ...
2
votes
1answer
23 views

Auto source a script after sudo su

I am working on a machine that has some user accounts that are dynamically generated, and therefore I can not user customize the .bashrc or .profile. I frequently need to use these accounts to change ...
0
votes
1answer
29 views

Set a specific password for sudo

Would it be possible to set a password different from the user one and the root one? I find that asking for the user password kind of useless and the root one, even more, just give him the root ...
0
votes
0answers
5 views

Switch to user2 and load user1's bashrc automatically?

I want to switch to user2 from user1 and then instantly load user1's bashrc. For example: sudo su user2 And then as user2 run this cmd: source /home/user1/.bashrc I'm aware that maybe I shouldn't ...
0
votes
0answers
20 views

What is the best way to create a local development environment in a linux machine without being in sudoers

I use a workstation for my development but it does not include all the libraries for my case. I like to install them for my use without any system wide effect. How should I proceed this is a linux ...
1
vote
0answers
14 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 ...
0
votes
1answer
23 views

How to download file from remote server to windows without sudo

I have a VM running Ubuntu 14.04. I seem to have broken sudo on my account: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I do not have root access. I am looking to ...
0
votes
1answer
24 views

Meaning of parameters in sudoers file in RedHat

HI can you tell me what is the meaning of each and every parameter meaning of this line of sudoers file in RedHat machine? steve CSNETS = (operator) /usr/local/op_commands/ I know first ...
0
votes
1answer
126 views

Install GDrive on Seagate Central Linux

Is there a way to install Google Drive for MontaVista Linux 6? I have Seagate Central NAS and it does not have option to sync with GDrive through the standard interface. It has embedded Linux ...
1
vote
0answers
45 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 ...
0
votes
2answers
45 views

Accessing shell variables inside 'sudo' block : export doesn't work

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
0
votes
1answer
37 views

How to use linux to not get crazy with root privileges

I've got a question for you today my dear Linux friends. I'm a windows user primarily. I use it for my work, watching movies, listening to music, playing games, browsing the net and everything else ...
1
vote
0answers
19 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
22 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
43 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 ...
0
votes
1answer
28 views

sudo NOPASSWD for particular paths

How can I enable NOPASSWD for a user to do anything in several paths? For instance read/write/execute any file in /etc/init.d and /opt/?
1
vote
1answer
59 views

How to set path for sudo commands

If I issue sudo my-command how does Linux look for that my-command? The my-command is in my PATH. I can invoke it without any problem. However, when I invoke it with sudo, I'll get command not ...
0
votes
2answers
47 views

Logging into sudo with a hashed password

I am curious as to whether or not I can pass the sudo password prompt the hashed sha512(?) password and log in to root that way. So it might look something like this: [user@device ~]$ sudo su - ...
1
vote
0answers
35 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 ...
0
votes
1answer
92 views

How to get real root permissions on OS X

I'm a noob with OSX (10.8.5) wanting to install homebrew on an Airbook. Installing homebrew fails straight away because it can't mkdir /usr/local. So I try with sudo - same problem. Trying sudo ...
1
vote
2answers
53 views

Use sudoedit to add user to sudo group?

According to the OpenBSD FAQ #10: If you want to give access to superuser privileges without adding users to the wheel group, use sudo(8). According to the OpenBSD man pages on sudo(8): ...
3
votes
1answer
63 views

Asking for another user's password when using sudo

I'm running a home automation package called HomeSeer on a Ubuntu 15.04 server. I have it configured to run with a service account (called "_homeseer"), and I've chown'd the app directory to ...
3
votes
1answer
225 views

usermod returns “group 'thegroupname' does not exist” for known group

As a member of sudo can I add myself to a group I don't belong to? $ getent group thegroupname thegroupname:x:123794798:administrator,users,auser,moreusers,manymoreusers $ sudo usermod -a -G ...
1
vote
1answer
110 views

OSX 10.10 locked out of administrator account, not in the sudoers file anymore

It appears my administrator account turned into a regular account overnight. Or, I did something stupid, which is more reasonable but I can for the life of me not figure out what it is that caused ...
0
votes
0answers
63 views

sudo: effective uid is not 0, is sudo installed setuid root?

I accidentally changed the ownership on my debian web server in /usr/bin and the permissions are no longer root root but instead USER root. How do I get this back everything I am finding says to ...
1
vote
2answers
26 views

bash requesting password on every invocation of sudo

Within a single bash session I am repeatedly re-running a command prefixed by sudo. Typically the password should be requested once and then cached. However, the present behavior is that the password ...
2
votes
1answer
37 views

Need application to run without root access

i try to build my local services system inhouse, and to thant i need to learn how i can give access to a single user with out type a root access when i do it, or i need to know how i can call the ...
1
vote
2answers
87 views

How to execute sudo NOPASSWD command on other server via SSH

I have read all the post related to the issue. But If you can see mine as well and give suggestion. I am trying to do passwordless SSH and run a script on remote server. But Sudo access ask for ...
2
votes
2answers
184 views

`sudo adduser username admin` leads to `adduser: The group `admin' does not exist.`

I'm trying to add a user to the sudoers file with the simple command sudo adduser username admin but I get adduser: The group 'admin' does not exist. So I checked out the sudoers file (sudo visudo ...
0
votes
1answer
125 views

Jenkins Docker image has no make or sudo

I'm trying to set up CI on AWS using the Jenkins image from the Docker hub. I've gotten a few hours into the process (configuring for a Node project), and I've now realized that a few of my npm ...
0
votes
0answers
20 views

How can I set system-wide timestamp-timeout?

as I understand adding Defaults timestamp-timeout=5 to my sudoers file makes the current terminal remember my password. After typing my password in one konsole and opening another terminal or ...
0
votes
1answer
46 views

Problems with PATH variable as sudo user

I'm having trouble to understand how the PATH variable is affected by sudo. I can run the command activator as a normal user because I've added the path where this application resides to that user's ...
0
votes
1answer
22 views

Make a group be able to run shutdown command without entering a password (CentOS)

I used the command visudo -f /etc/sudoers to edit the sudoers file. How do I make a group be able to run the shutdown command without supplying password?
0
votes
1answer
17 views

Program built from source is unrecognized by the terminal but if i do it with sudo

i've built a program from source in /usr/local/sbin but now if in a terminal i write "program-name" the terminal say that the command was not found. The program is seen by the terminal only if i do ...
0
votes
1answer
65 views

The logic of Disabling Root Login

Ubuntu 14.04 VPS user here. My VPS was hacked twice. And the third version is up. Fingers crossed. The mistake I made in the first two was that I had root + password login enabled. I've learned ...
1
vote
1answer
62 views

strace to discover sudo password persistence location

strace/dtrace/ltrace ... useful for lots of things, from finding hidden access violations to network socket tracing, but maybe it can't see all. I haven't been able to figure out using strace (it ...
0
votes
2answers
85 views

Disable Root — what all issues will arise?

I have a linux server (Ubuntu 14) that I access using root and SSH keys (i.e. no root password). I have also created a non-root-user (and a corresponding non-root-user's-password) with sudo ...
6
votes
1answer
1k views

Ubuntu 15.04: suspend from console without sudo

For years I have been able to suspend my Ubuntu-based machine from regular account using dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower ...
1
vote
1answer
96 views

My admin user has completely lost the use of sudo (only gets 'permission denied')

OS X 10.8.5 I first realized the problem trying to delete software from a Japanese wireless carrier when I installed their client while I was there. Then I realized I actually can run no command ...
0
votes
1answer
68 views

Avoid sudo password /etc/apt/apt.conf.d/

Please how can avoid 'sudo' in this command ? ssh -t root@$machine -x "sshpass -p 'ubuntu' ssh -t ubuntu@$address -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nul -x 'sudo mv 00proxy ...
0
votes
0answers
32 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
2answers
64 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: ...
1
vote
2answers
120 views

sudo alternative to allow certain user to execute chmod from a program

I would like to allow a certain user who does not own the files in a directory to execute chmod on them. Interactively, I know that I can do this by configuring sudo with the sudoers config file(s), ...
2
votes
1answer
726 views

sudo: effective uid is not 0, is sudo installed setuid root? for normal users

strangely I cannot run the sudo command for every new account I create that is not root. The server is completely new and wasn't touched so I don't know what's wrong. for every command I try to run ...
1
vote
1answer
52 views

Always run a program as root without typing sudo on RHLE?

I have a program called 'myprogram'. I want to be able to type, from the cmd line: >$ myprogram and have it automatically run as root. As in I want the above command to be translated to, >$ ...