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

0
votes
0answers
16 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
12 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
15 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
22 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
84 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
34 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
42 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
31 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
14 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
16 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
37 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
26 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
46 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
32 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
22 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
83 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
1answer
32 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
50 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 ...
2
votes
1answer
101 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
64 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
42 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
25 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
35 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
70 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
92 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
93 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
40 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
20 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
56 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
47 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
80 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
841 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
74 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
52 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
26 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
59 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
114 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
491 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
40 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, >$ ...
0
votes
2answers
82 views

sh -c in background

Original version: How to run sudo sh -c "command" in back ground In a terminal sudo sh -c "command" & starts in background but as soon as I press enter, the process exits [test@localhost ...
1
vote
0answers
44 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 ...
0
votes
0answers
44 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 ...
-1
votes
1answer
40 views

Problems writing a script to build FFmpeg from source

I’m on Ubuntu 12.04 LTS and I’m trying to write a script that will build FFmpeg from source; with the right flags of course. I’m following the instructions here. I’ve nailed most of it except the very ...
2
votes
1answer
84 views

Allow unprivileged user access to specific privileged files

I have a system running hardened Gentoo and I have installed Xorg, Fluxbox, and Conky together to create a minimal window manager desktop. Within this system I have 2 main users, root and my normal ...
1
vote
0answers
84 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
votes
1answer
95 views

Don't have permissions to save file in Mac OS X using Vim, even after using sudo

I’m trying to edit the following file on my machine: /etc/apache2/httpd.conf First I got an error stating that I don’t have permissions to change the file, fair enough. I then used sudo but I still ...
0
votes
0answers
120 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 ...
2
votes
1answer
50 views

Script stops when user is changed

I am trying to create a script that logs as a different user to create a database backup. So far I have encountered a few problems, such as having to input sudo password, or not being able to bypass ...