Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

learn more… | top users | synonyms (1)

3
votes
3answers
56 views

Can't Use SSH Keys Unless Running SSH With Sudo

For some reason I'm unable to SSH from my Ubuntu 15.10 machine to a remote server using a private key if I run ssh without sudo. Server side config is fine. I have tested the private key from my ...
12
votes
2answers
4k views

What is the name of the security concept that explains why Linux asks for root password?

Whenever I'm installing new software or making changes to the system, Linux asks for the root password. What is the name of this security concept and where can I research more information about it?
1
vote
1answer
69 views

Ubuntu terminal cant type special characters like backslash (\), slash(/), semicolon (:), etc properly

I'm running Ubuntu 14.04 without GUI and i'm having problems entering characters like backslash, slash, semicolon and so forth. The keys which would normally enter these characters print out all kinds ...
0
votes
0answers
27 views

what is the diffrence b/w “remove write-protected directory” & “descend into write-protected directory”?

am new to linux world, am practising basic commands, i tried to use rm command to remove directory/folder from current directory which was /, without providing super user permission or sudo. it says ...
10
votes
1answer
570 views

Accidentally mounted a partition on /usr

I mounted a partition on /usr accidentally. Hence, I have lost access to sudo command and can't unmount the partion. I am using AWS EC2 instance and don't have password for root user set. What are ...
0
votes
0answers
22 views

sudo chown -R $USER:$USER /usr/ [duplicate]

I got a problem, I run this command sudo chown -R $USER:$USER /usr/ And after that I got this error on every sudo I make sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set ...
0
votes
1answer
163 views

How to run GUI applications as root

UPDATE I would like to know which is the recommend way of running GUI applications as root, mainly because what I'm trying isn't running smoothly. I get some annoying warnings that makes me think ...
0
votes
1answer
17 views

How to start a process by another group using sudo

I wanted to start one process as a non root user with a group (non-root) by sudo. I added the line below in /etc/sudoers xyz ALL = (xyz:abc) NOPASSWD: <cmd> But I am always getting the ...
0
votes
1answer
33 views

Can't make a shortcut to work (properly)

I made a shortcut for PyCharm following this instruction (created a *.desktop file; before that I launched the application via terminal by sudo sh pycharm.sh comand). However, the shortcut I made ...
0
votes
1answer
198 views

Sudo apt-get update command is getting error

I am using Ubuntu 15.10 and 64-bit system. I am new to Ubuntu I am trying to use sudo apt-get update but I am getting error I am not able to understand what is wrong and I don't know how to rectify ...
1
vote
1answer
31 views

Make locally compiled programs request password graphically

I have an application that I downloaded from my class' website for our custom avr robot and it requires root privileges to send our binaries to the robot via usb. When I try to use it with sudo, the ...
3
votes
1answer
81 views

Difference between 'sudo apt-get' and 'sudo -E apt-get'

I'm using Ubuntu 15.10 guest on VMWare Player (7.1.3 build-3206955), with Windows 10 as the host OS. I'm able to use Firefox to browse the web inside the guest, however I'm unable to use apt on the ...
0
votes
0answers
21 views

How to restrict command using sudoer doesn't work

I created one user as filemanager. There are some users have to su as filemanager to run script which execute many commands. But SCP is not allowed for security reasons. I am trying to restricted ...
1
vote
0answers
55 views

Attempted to open Unity with sudo, now Unity messed up

It seems I really messed up with unity by trying to open a window as admin . I ran this in the command-line : User@Computer:-$ sudo unity /var/cache/apt/archives After that brilliant and inspired ...
1
vote
1answer
56 views

sudo passwd command with no-interactive mode

Context: I created a Virtual Machine with Packer for Vagrant system into a Ubuntu 14.04 server OS. All runs perfectly but this is a development VM (I'm alone on this) and I want to administer my ...
7
votes
1answer
850 views

Weird messages when using sudo

Whenever I run a sudo command in the terminal, this happens: arun@arun-GP70-2OD:~$ sudo apt-get update sudo: /etc/sudoers.d/README is world writable sudo: /var/lib/sudo writable by non-owner ...
24
votes
3answers
1k views

How do I run a sudo command needing password input in the background?

I have recently disabled sudo's authentication caching ability so that it now prompts me for a password every time. And though this is good for security, it has caused one slight problem which I ...
1
vote
1answer
67 views

Difference between sudo -u and su -c

The following is being executed from an account with sudo privileges: I have a user tomcat created with the following command sudo useradd -g tomcat -d /usr/local/tomcat -m -s /bin/false tomcat I ...
1
vote
0answers
9 views

Please Help! Can't log into root Ubuntu 14.04 LTS [duplicate]

I am hoping someone can help me out here. For some reason my system has stopped letting me sudo. I can log into the machine just fine. When I attempt to install a package or sudo -i, I get asked ...
0
votes
0answers
23 views

How to copy data from a Mac formatted hard drive to local hard drive [duplicate]

I am a Windows user and new to Ubuntu, the reason I installed Ubuntu because I need to copy data from a Mac formatted (3.5" internal) hard drive (hd) (via an USB hard drive enclosure) to local hard ...
0
votes
0answers
18 views

How to resolve invalid sudoers file on ubuntu installed on AWS

I've set up a Ubuntu instance on AWS and foolishly modified the sudoers file and it is now returning a parse error when I try to run sudo commands, so I am unable re-edit the file. I found a command ...
0
votes
1answer
35 views

www-data running command not working

I'm using nginx with php , and I would like to run some command with exec() http://php.net/manual/fr/function.exec.php . the current example work perfectly echo exec('whoami'); but when I try with ...
0
votes
1answer
75 views

Why apache is unable to write with permission set as 2775?

I have installed LAMP as: sudo apt-get update sudo apt-get upgrade sudo apt-get install lamp-server^ If I understand correctly, apache server will be running with sudo privileges? If yes, for a ...
1
vote
4answers
136 views

Sudoers.d Permissions denied

I am running ubuntu 14.04 in DardDrive. I was taking the Steps for Setting up and Running sudo located here http://snag.gy/JAGgt.jpg. But every I type sudo "whatever" as user ($), I get the following ...
4
votes
0answers
74 views

How is the guest account prevented from using su and sudo?

It's already known that the guest account can't use su or sudo: Why is su disabled from guest sessions? Sudo not available in guest login How is this done? My guess would be apparmor. However, ...
3
votes
3answers
82 views

How to prevent scripts/commands hijacking your session's cached sudo ability?

If I run a sudo command it will ask me for a password, however in that Terminal session for the next few minutes it will allow me to run sudo commands without asking me for a password as it will cache ...
0
votes
0answers
42 views

No Sudo Permissions (No Username?)

When I login with Ubuntu it shows that I have no username and when I attempt to execute any code with sudo, I receive the following error: I have no name!@ip-172-30-2-112:~$ id uid=1000 gid=1000 ...
-2
votes
1answer
83 views

2 warnings 1 error while using sudo apt-get update [duplicate]

Whenever i try sudo apt-get update I get following messages: W: GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not ...
0
votes
1answer
40 views

How to disable the need for making operations with sudo

I can read my Dropbox directory from Ubuntu OS. However, in order to delete/create/move file to this directory I must use "sudo". This means that I can do these operation only by shell. Is there any ...
0
votes
0answers
110 views

How to solve server certificate Verification failed!

Recently I installed a complete ubuntu package on virtualbox and use it via vagrant ssh in windows.from yesterday i have a annoying problem,I cant use sudo commands for install,update or everything ...
0
votes
1answer
22 views

I can't update any packages nor can upgrade and all this started when I tried to install flashplugin which popup after I tried to upgrade last time

sudo apt-get update sudo: unable to mkdir /var/lib/sudo: No such file or directory [sudo] password for md: E: List directory /var/lib/apt/lists/partial is missing. - Acquire (2: No such file or ...
0
votes
1answer
58 views

can't compile .cpp file with clang even after installing clang3.8

I installed clang3.8 with bunch of other packages that I usually need, after a fresh installation of Ubuntu 15.10 using following command: $ sudo apt-get install clang-3.8 clang-3.8-doc ...
0
votes
0answers
29 views

error dpkg in terminal ubuntu

I'm downloading brackets in github https://github.com/adobe/brackets/releases/tag/release-1.6+eb4 please help me dpkg --install ~/Download/Brackets.1.6.Extract.64-bit.deb dpkg: error: parsing file ...
0
votes
0answers
32 views

Error while running “sudo apt-get update ” [duplicate]

When i run command sudo apt-get update, following error occurred : W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ...
0
votes
1answer
45 views

How to regain sudo permission when grub menu is unavailable?

I inadvertently failed to append myself to a group by using usermod -G group_name user_name instead of usermod -aG group_name user_name and now belong only to the group_name group. The problem is: I ...
0
votes
1answer
66 views

Not able to sudo after running `chown -R username:usergroup /*` [duplicate]

I am fairly new to Ubuntu. I am currently using Ubuntu 14.04 version. I am stuck into a problem that my primary user account is not functioning after i ran a command chown -R username:usergroup /* on ...
0
votes
1answer
65 views

issue with root access etc

I cannot do anything in ubuntu without being root all of a sudden. When I run emacs it says it cannot access files (and will run in sudo and works fine). firefox throws security issues until im root ...
0
votes
1answer
79 views

sudo: unable to resolve host error but still works

I recently changed my Ubuntu 15.10 laptop's name to Nick-Laptop: Ubuntu and now whenever I use sudo I get the error sudo: unable to resolve host Nick-Laptop: Ubuntu However the command still runs, ...
0
votes
2answers
54 views

SSH jump + Lock User account on remote machine, but allow user to use sudo?

I am trying to configure a server that users will log into. Users will use this server as a box to jump into other servers via ssh. From jump server to others will use SSH key based authentication. ...
0
votes
0answers
19 views

use a different password for the prompts

I installed Ubuntu for the first time since 2006, its awesome. So i installed and went for the encrypted home dir install, just for fun. Now every time i need to do something that requires sudo I am ...
0
votes
0answers
22 views

Need help being able to run sudo and bash commands. New and confused [duplicate]

Okay, so for some reason when I use sudo or bash or most other commands, I get this: Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included ...
2
votes
0answers
48 views

OpenSSH asks for root@hostname password instead of user@hostname password

So I have this other desktop PC, that serves as my server, primesystem and a laptop as my client, zerosystem that is connected to it. They both serve as my ssh-server and ssh-client respectively, and ...
0
votes
0answers
26 views

Multiple admin (sudo) accounts issue

I have a computer with two admin accounts my was the second one created, now when I try to make anything in terminal as sudo user like tar it automatically give permissions to the first user as the ...
1
vote
0answers
13 views

How do I add a user to the “Authenticate” menu? [duplicate]

I am talking about the menu shown in the screenshot provided: When I click on "Select user...", a list of users is shown, but my user is missing, although I have sudoer permissions.
0
votes
1answer
25 views

permissions, changing ownership

I have a flash drive which contains recovered files from my old mac, I installed Ubuntu just to recover these files, I have no other purpose for the OS. The drive shows owner "Root" and the files are ...
1
vote
1answer
40 views

How to be root on liveUSB? [closed]

As mentioned in this question, the sudo command in my live USB is not working. To fix this I need to run some commands. But every command I run says permission denied. How do I gain root access? ...
1
vote
2answers
82 views

Sudo command locked

I have problem, when I try to use sudo command I immediately get these messages: Sorry, try again. Sorry, try again. Sorry, try again. sudo: 3 incorrect password attempts There's no chance to ...
0
votes
1answer
42 views

Sudo has lower privileges then normal user

I have a strange problem. I am using Ubuntu 14.04 and an NFS home folder, and currently if i try to log in i get thrown back to the loginscreen I have a NAS, and the home directory is located there. ...
0
votes
2answers
50 views

How to automatically run a command at startup as root [duplicate]

I know that one should never want to do this, but I need to run a command as root at startup. For some reason the driver for my wifi card isnt recognized so to get it up and running I have to run ...
1
vote
1answer
42 views

Enable sudo -f option in 12.04 LTS

How is it possible to enable the sudo -f option in 12.04 LTS?