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

1
vote
1answer
30 views

Allow one User to Log into other Users (Sudo)

I'd like to give a particular user the ability to log on as any normal user (e.g. not root or daemon) and execute commands as that user. How can I do that safely? Currently my User sudo rights on a ...
0
votes
0answers
9 views

Teamcity: sorry, you must have a tty to run sudo when running “bundle install”

Background I am trying to run cucumber scenarios on centos (via teamcity). The first step of the build configuration is: bundle install However, this just gives me the following errors: [12:39:52]...
0
votes
2answers
39 views

Admin needs root password

I recently installed it and since I am the only user the system asks me for root password if I want to install something or read any files. Always saying that I don't have permission to access. ...
0
votes
1answer
17 views

Not able to run fio bechmark as a root

I'm not able to run fio benchmark as a root user. Normal mode: Command 1: which fio Output 1: /usr/local/bin/fio Command 2: fio Output 2: No jobs(s) defined fio-2.12 fio [options] [job ...
3
votes
2answers
63 views

Windows 10 Administrator and Linux SuperUser

I understand that in Windows 10 Administrator is equivalent to the SuperUser in Linux. But I don't have the same power over my Machine as Linux gives with su or sudo as an Example in Linux with sudo,...
0
votes
1answer
29 views

Last background process ID ($!) not working in sudo bash command

Do shell variables work inside sudo executed commands? I'm trying to run, and later kill, a background process, as another user inside a script. However, I cannot capture the background process ID, ...
-1
votes
1answer
58 views

Red Hat command returns, “-bash: sudo: command not found” when running “sudo git”

I’m following a GoDaddy help tutorial in order to install “Let’s Encrypt” certificate for my website. So I connected to my server using SSH via PuTTy and when typing the first command: sudo git ...
0
votes
1answer
23 views

Run Wireshark without setuid OR capabilities

I want to run Wireshark so that I will have to type in my sudo password to run it, but I don't want to give the dumpcap binary special privileges (set-uid, capabilities, etc.). How can I do that ...
0
votes
1answer
39 views

Mac OS X El Capitain can't sudo

Getting this error when trying to sudo on a mac I just received from work. sudo: can't open /private/etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting I tried disabling ...
0
votes
1answer
34 views

/etc/sudoers set user to have general sudo use, with no password prompt for only one commands

I have an entry in /etc/sudo for a user who can execute sudo for all commands. fred ALL=(ALL:ALL) ALL As per the documentation the final ALL is responsible for allowing access to all commands. ...
0
votes
2answers
55 views

How to grant a normal user limited privileges to specific directory and run files without sudo

Sorry for my expressions, and I hope I've described my question as clearly as possible. Using Red-hat system. Currently I own a superuser in the system, and I have to dosudo python cuckoo.py in order ...
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....
5
votes
1answer
54 views

Why does sudo depend on vi?

the package sudo-1.8.15-2.fc23.x86_64 in fedora 23 depends on vi, as attested by: $ rpm -qR sudo | grep vi /usr/bin/vi Why? Is it a mistake on the side of the package maintainer? This dependency ...
0
votes
1answer
32 views

Ubuntu server in azure cloud: no valid sudoers sources found, quitting while restart apache

I am creating a ubunu virtual machine in my azure cloud service and installed the lampp stack and phpmyadmin. Instllation is completed without any problem and for accessing the phpmyadmin i have ...
1
vote
1answer
71 views

<wheel user> is not in sudoers file for NetBSD 7.0

I installed sudo on NetBSD 7.0 using pkg. I copied /usr/pkg/etc/sudoers to /etc/sudoers because the docs say /etc/sudoers and possibly /etc/sudoers.local is used. I uncommented the line wheel ALL=(ALL)...
0
votes
0answers
17 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
1answer
121 views

sudo sending annoying alerts: issue with defaults entries

tl;dr Sudo causes extra, useless alerts of "problem with defaults entries" The environment Ubuntu 16.04 Server LTS, sudo 1.8.16 The problem Whenever a user (whether sssd-ad authenticated user, or ...
0
votes
1answer
36 views

LaunchAgent has undesired root access

I am having a problem getting my LaunchAgent to run as a normal (not-root) user. Everything I've read implies this should be the default behavior. The expectation is that if you put the plist in /...
0
votes
1answer
27 views

Prohibit user from issuing a specific sudo command

I'm using the Ruby Version Manager (RVM) which strongly recommends to never run the rvm command on linux prefaced by 'sudo'. How can I allow myself to run the command without sudo as I am supposed to, ...
0
votes
1answer
16 views

running sudo command for a user in centos

On a Centos-6.1, the user is in the root group, but he is not able to run sudo commands mahmood@cluster:~$ groups root kvm vboxusers google-otp mahmood mahmood@cluster:~$ sudo ls [sudo] password for ...
0
votes
0answers
36 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 ...
1
vote
2answers
31 views

Non-root user having /root as $HOME

I have the following entry in /etc/passwd file: daemon:x:2:2:daemon:/sbin:/sbin/nologin However, when I sudo -su daemon the $HOME seems to be set to /root: [root@sbecby07 ~]# sudo -su daemon 'echo ...
1
vote
2answers
64 views

Custom script run with sudo - command not found

Problem: Running a script as sudo returns sudo: mount-remove-hiberfile: command not found Info: Scripts folder: '/scripts' (all my custom scripts are kept here) My User: 'cybex' cybex@cybex-...
3
votes
3answers
147 views

What is the difference between adding a user to “sudoers” vs “root” group?

I have done some research and in order to allow the user to use the sudo command, you must add them to the "sudoers" group. This gives them root privileges as long as they enter in root's password. ...
2
votes
1answer
30 views

Why am I able to switch user only using hyphen?

If I try to switch the user using sudo su - kshitiz it works, and doesn't ask me for any password. But if I do sudo su kshitiz it asks me for that user's password. Why is this? I understand that ...
0
votes
1answer
22 views

Unable to get sudo lecture working on CentOS 7 server

I'm trying to enable the sudo lecture every time someone executes sudo, but I can't seem to get it working at all. I found a similar question here, in which someone states that if you don't see any ...
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
1answer
14 views

Why is php cgi loaded in path when doing a 'sudo su <user>" vs just being logged in which uses php cli?

When logged in as root user, php loads the correct version which is php cli. But when i do a sudo su < user >, php is is loading the cgi version which is breaking some of my applications that ...
0
votes
1answer
26 views

Can we install a package through a shell script? [duplicate]

I'm trying to write a shell script so that when I reinstall my Ubuntu again. I could just run script and retain all the packages. And I'm planning to pass password in form of argument. My question ...
0
votes
0answers
26 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
13 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 ...
1
vote
1answer
52 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
0
votes
1answer
40 views

Authentication for root process not showing all users

I have 2 linux machines, 1 VPS and 1 raspberry pi Problem: When calling a root function e.g. service "a service" restart both these cases appear different. Some users do not show as possible auth ...
0
votes
1answer
60 views

how can I get higer privilages on linux [closed]

I would like to get higher privilages on my linux computer (I dont have any admin privilages and cant use sudo/su).I would like to get privileges of a root and privileges of file owner. how can I do ...
1
vote
1answer
40 views

What does single user mode in Linux/Unix means and how is it different from Safe mode in Windows

What is Single User mode used for? Can it override the root Password? Do you need a password to acces the SU mode? In a normal session when you run SU command does it stands for Single User or Super ...
0
votes
1answer
81 views

how to solve error sudo command is not found?

I want to install a game in Windows using Cygwin. When trying to use the sudo command, I receive the following error: -bash:sudo:command not found I get a similar error when trying to use command ...
-2
votes
1answer
54 views

How do I overcome my permission denied error when running with sudo?

I’m using the following version of Linux … [davea@mydevbox ~]$ uname -a Linux mydevbox.evo-text.com 4.4.5-15.26.amzn1.x86_64 #1 SMP Wed Mar 16 17:15:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux I’m ...
0
votes
0answers
16 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
1answer
48 views

Why strace sudo command bombs when sudo command works?

my username is allowed to execute sudo command then why does this bomb strace sudo command with the error: sudo: must be setuid root
1
vote
2answers
78 views

Why does a simple user password allow root access on Ubuntu?

I have a client who I setup with a linux machine. He isn't very tech savvy, and obviously just needed a simple password to log onto ubuntu with. His username and password are something like: user: ...
1
vote
0answers
29 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
1answer
120 views

I am getting “ln: /usr/local/bin/<Cask>: Permission denied” when trying to install some casks

I have installed Homebrew and Cask to my machine, and it has worked for some things. But I sometimes get an error saying ==> ln: /usr/local/bin/<Cask name>: Permission denied Error: Command ...
3
votes
3answers
56 views

sudo via cron'ed ssh works in RHEL6 but not in RHE7 (/dev/tty: No such device or address)

I give up: I have a cronjob script that Ive been running for years (out of a RHEL 6.7 machine) to remote into other RHEL machines via ssh. Works flawlessly against RHEL5 and 6 but fails against ...
1
vote
1answer
41 views

Linux - create screen as another user

I'm trying to create a new screen on my server (CentOS 5.11), but instead of starting it with my user, I would prefer to use another user with restricted permissions, just to be on the safe side. So, ...
0
votes
0answers
32 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
63 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?
1
vote
2answers
142 views

Running script that has sudo commands with sudoers

I wrote a script that helps clean up my downloads and anime, but it won't run without root. So I tried adding it to /etc/sudoers (edited using techraf's suggestions): # This file MUST be edited ...
0
votes
1answer
89 views

systemd create root service

I need to create a systemd service to start some owfs-daemon automatically. I can manually start the daemon with sudo /opt/owfs/bin/owfs --i2c=ALL:ALL --allow_other /mnt/1wire/. Then there are ...
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 ...
1
vote
0answers
117 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" ...