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)

0
votes
0answers
19 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
51 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
84 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
193 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
1answer
99 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, ...
1
vote
3answers
94 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
46 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
95 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 available:...
0
votes
1answer
42 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
174 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
44 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
71 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 libclang-...
0
votes
0answers
34 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 'main/binary-i386/...
0
votes
1answer
47 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
68 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
71 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
99 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
61 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
51 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
29 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
42 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
97 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
44 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
72 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
43 views

Enable sudo -f option in 12.04 LTS

How is it possible to enable the sudo -f option in 12.04 LTS?
0
votes
1answer
115 views

Default username/password in preinstalled Ubuntu systems

I already searched around the web and couldn't find an answer. These days lots of computers (mainly laptops) come with Ubuntu preinstalled. Just out of curiosity, what is the default admin username/...
0
votes
3answers
79 views

Is sudo's bruteforce protection really helpful?

In this question: Why is there a delay when entering a wrong password? it appears that there is a 1-2 seconds timeout in sudo once it is given a wrong password in order to make cracking attempts more ...
0
votes
1answer
61 views

How to disable root privilege for SSH'ed users?

I want to setup a VPS that is is open to a few people for them to execute a program. They will connect via SSH. Is there a way for me to keep them from running root commands (sudo, su)? I tried ...
0
votes
0answers
59 views

How to prevent sudoers from changing the root password unless they know the current root user password first

I want to give a developer sudo access, but giving him sudo access would potentially allow him to change the root password and lock me out of the server. I just created a demo account, added it to ...
0
votes
0answers
31 views

Broken sudo in Ubuntu 14.04 installed in a Windows 7 host Virtualbox

I messed up while changing the permission of /usr/bin/ folder and now I'm getting the error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set Is there any way I can revert to ...
0
votes
1answer
37 views

Can an infected USB infect my PC through sudo and/or home?

Can an infected USB infect my PC through sudo and/or home if it is under sudo (like cleaning it with sudo sgdisk --zap-all dev/sdb, sudo dd if=/dev/zero of=/dev/sdb, or even looking/changing ...
1
vote
0answers
66 views

Ubuntu 14.04 LTS compass run from another user

I have an Ubuntu 14.04 VM and 3 users (root, prod, git) prod$ groups prod git$ groups git prod I have installed ruby on the VM for every user and ran source /home/prod/.rvm/scripts/rvm so I could ...
1
vote
1answer
41 views

Can you make `su` require a password, even if called with sudo?

So, I recently secured my root log-in and all sudo requests with 2-factor authentication. However, I noticed that if a user with sudo access that does NOT have 2FA enabled could easily sudo su and ...
0
votes
1answer
32 views

What are the possible ways to access my account from guest session?

My user account is recently damaged. Damaged in the sense, after I enter the password the same login screen is redirected again. So now I've to use the guest session. Are their any possible ways to ...
0
votes
1answer
31 views

Install mobile partner using super user

I am trying to install mobile partner of Huawei Technologies. The manual asks me to run the install file using super user command. As I type the su command, it asks password. I don't know the password ...
0
votes
0answers
104 views

sudo apt-get install <package> is not working for me

I can't download and install packages by using sudo apt-get install <package> How can I fix this problem? The error: E: Failed to fetch (URL) Could not reresolve 'archive.ubuntu.com' E: ...
1
vote
1answer
83 views

Can I have my ubuntu linux sudo/su password diffrent from my desktop login password?

Is it possible to have a desktop login password different from the password use for super user permissions like for example when you are installing software or running a command in sudo or something ...
0
votes
0answers
19 views

Sudo apt-get update, strange many errors [duplicate]

While I'm doing the classic sudo apt-get update I obtain these strange errors. W: Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources Hash Sum mismatch W: ...
0
votes
1answer
54 views

Archivematica install and sudo commands

I have Ubuntu 14.04 LTS installed on a Win 7 64-bit machine via VirtualBox 5.0.14. Now I want to install a Ubuntu-based software suite called Archivematica. The instructions begin this way: Add the ...
0
votes
1answer
86 views

How safe is it to use “sudo -i”

I have few applications which I need to run on root permission. Am pretty new to Ubuntu, the kind of shortcut I do to gain root access was that I open a new terminal with sudo -i and will launch my ...
6
votes
0answers
298 views

Why do I need sudo to reboot from the command line? [duplicate]

When I enter reboot on the command line, I get: reboot: Need to be root and asked the root / sudo password. When I reboot via the gui I can do that without my sudo password. Why is that? What's ...
-2
votes
1answer
169 views

Can't run GUI applications as root

I know i messed something up, i just don't know what, how or when. i used to be able to run gksudo (gui application) or sudo (gui application) and then i couldn't anymore - I've torn the whole ...
1
vote
1answer
75 views

Sudo execute command in Pythonscript

I want to sudo a command from a pythonscript without hardcoding my password in it. The Pythonscript is part of a webservice on Apache2. Since it is part of a webservice, asking the user each time for ...
0
votes
0answers
65 views

hplip installation stuck at password checking on lubuntu 15.10

I was trying to install hplip 3.15.11 on Lubuntu 15.10 using xTerm or uxTerm as explained and shown in the official how-to (hplip installation how-to), but when I'm asked for the sudoer's password, I ...
0
votes
1answer
116 views

How to autostart node forever and use spawn() as sudo on Ubuntu?

My app periodically spawns a CasperJS scraper: spawn(CASPER_PATH, [SCRIPTS_PATH + fileName, '--ssl-protocol=any', '--user='+user, '--scrapeId='+scrapeId, '--pass='+pass], { detached:...