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
40 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
65 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
39 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
71 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
16 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
50 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
27 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
40 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
62 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
58 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
54 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
46 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
43 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
25 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
20 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
39 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
68 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
40 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
37 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
41 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
78 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 ...
0
votes
3answers
57 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
57 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
42 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
27 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 ...
-1
votes
1answer
34 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
60 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
36 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
24 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
26 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
78 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
71 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
18 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
37 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
76 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
70 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
59 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
58 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
97 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], { ...
0
votes
0answers
57 views

Sudo, nohup and spewing detached processes

I have a jar file that I need to routinely kick start from the terminal, and needs to be run as root. I'd also like to leave that terminal open for use, so I'm using this bash script: $ cat ...
2
votes
1answer
40 views

Why to use bash in executing script? [duplicate]

In a former question, I was suggested to execute: sudo bash start-dfs.sh why not sudo start-dfs.sh ? I mean, what difference does bash makes?
0
votes
1answer
31 views

Multiple commands in sudoers file results in syntax error

It seems to be possible to add multiple commands in the sudoers file in the following format: john ALL=(ALL:ALL) NOPASSWD: /command1, /command2 What I have used in the sudoers file is: ...
0
votes
2answers
24 views

How to disallow access to folder even for admins?

I'd like to create a new user account and allow them to do maintenance on the server, i.e. install and configure new software, restart the server, manage other users etc... However, I'd like to ...
0
votes
0answers
22 views

aterm unresponsive unless run with sudo

I've just installed Ubuntu on my laptop. I installed aterm by typing sudo apt-get aterm Now if I start aterm by typing aterm The resulting console is unresponsive to typing (no letters show up ...
4
votes
2answers
94 views

Help me win this war!

History: The map: I have a dual-booted laptop, Windows 7 alongside Ubuntu 14.04. For Ubuntu, I have a separate partition, which stores my data. The enemy: sudo chown -R hadoopuser /, which literally ...