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
1answer
45 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
97 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
46 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
130 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
89 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
62 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
65 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
32 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
41 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
70 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
45 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
41 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
34 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
121 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
85 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
90 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
184 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
78 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
66 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
123 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:...
0
votes
0answers
102 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 /usr/...
2
votes
1answer
43 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
42 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
26 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
23 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
101 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 ...
0
votes
0answers
37 views

Boot from USB/CD without using sudo

I screwed up big time. I did sudo chmod -R 777 /usr without pausing to think about consequences. Well, the consequences are: 1) I cannot sudo or pkexec. 2) Ubuntu is not detecting boot cd or usb. ...
3
votes
2answers
454 views

sudo: ./abc.sh: command not found

Commands typed in terminal: chmod 777 abc.sh sudo ./abc.sh Every shell program is giving the same error: .sh: command not found Including this simple abc.sh program: #!/bin/bash # My first ...
0
votes
1answer
213 views

sudo ssh-add /root/.ssh/id_rsa return error

I m trying to save ssh authentication with the command ssh-add for sudo usage: linux$ sudo ssh-add /root/.ssh/id_rsa Could not open a connection to your authentication agent. but as indicated it ...
2
votes
3answers
397 views

Isn't sudo extremely unsecure? [duplicate]

It seems any program ran soon enough after sudo in the same terminal can run any sudo command it pleases. Proof: Execute sudo ls in a terminal . Then run this program (compiled of course) in the same ...
1
vote
1answer
78 views

Sublime Text doesn't run with `sudo` without `-E`

I guess I made some damage to my settings because now I'm unable to run Sublime Text as root without -E: subl //works sudo subl //doesn't work (no errors, just silence) sudo -E subl //works. How ...
0
votes
0answers
11 views

Help with installation after HDD SATA replacement in laptop (Toshiba AMD A6)

Will this fix my installation issue, if I just go to 15.10. I was trying OEM, sudo clean, update, install, kodi, --fix, fix-missing...nothings works...also I have checked BIOS and the new SATA HDD is ...
3
votes
1answer
67 views

I ran these commands and want to learn how to reverse them

Please don't scorch me i'm still novice and only seeking help. I ran the following commands: echo "deb https://pkg.tox.chat/debian nightly release" sudo tee /etc/apt/sources.list.d/tox.list wget -...
0
votes
0answers
16 views

download cuda library with dpgk on Ubuntu 14.04

i need to install cuda library on a server, where i dont hwve root access I use this command: dpkg -i --force-not-root -- root=$HOME cuda-repo-ubuntu1404_7.5-18_amd64.deb but i get the error : "...
0
votes
1answer
3k views

Problem with sudo apt-get install (dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem) [duplicate]

I think I used something involving dpkg but I am not able to recall what. After that when I need to do some sudo-apt get or even sudo-apt get update I am facing the following ...
1
vote
2answers
140 views

`sudo apt-get install` won't install anything [duplicate]

When I run sudo apt-get install I get the message:
0
votes
2answers
44 views

I cannot download software or use `sudo`

This is what happens when i use sudo. Plus I can't update Ubuntu and I can't open the Software Center.
1
vote
1answer
186 views

Slow hostname lookup: curl slow, sudo slow, browser slow

my problem is similar to other slow host name lookup issues, but I failed to find a working solution. The main effects are a slow sudo command a very slow DNS resolution in all browsers. I guess that ...
0
votes
0answers
35 views

how to enter password for sudo while using ubuntu in virtual box?

I cant enter my password while using sudo in virtual box (Version 5.0.10 r104061) with Ubuntu OS (14.04). How to enter password?
4
votes
1answer
60 views

Why does alias in /etc/bash.bashrc not apply to sudo?

I've added the line alias ll='ls -l' to the /etc/bash.bashrc. After a restart, the alias ll from that file affects me, which I checked by commenting out the corresponding alias in my ~/.bashrc (...
0
votes
2answers
180 views

SSH Key with user and root with shell script

Is it possible to ssh login to a server as a user with shell access and then change to root user both with the help of ssh key using a bash script?
1
vote
1answer
221 views

How can I make running a command depend on the input of a correct password (Tkinter GUI)?

I created a small GUI in Tkinter/python: import Tkinter import tkMessageBox import os top = Tkinter.Tk() top.geometry("400x250") def root_login(): os.system("gksudo su && sudo su") ...
0
votes
2answers
223 views

I entered “sudo chmod 770 /” on terminal. Is it fixable?

I was trying to deny permissions to access the root folder to all non sudoers, and had the (NOT) brilliant idea to run sudo chmod 770 /. Now I get permission denied for all commands. I am running ...
0
votes
3answers
86 views

I accidentally own /etc/ on user ubuntu in aws ec2 [duplicate]

I accidentally own /etc/ on user Ubuntu in aws ec2 I owned /etc/ and now this message comes up whenever I used sudo: sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers ...
14
votes
3answers
1k views

How can I force sudo to always ask for a password after waking from suspend?

Say I execute a command with sudo, then if I use sudo within the next 15/5 minutes (not sure how long it remembers me for) it won't prompt me for a password. It will only prompt me again if I haven't ...
0
votes
0answers
11 views

Permission denied error while using sudo or su? [duplicate]

I'm trying to fix my screen brightness problem, and I have checked some answers given on this site. I found out that I may have to use some command like this: ls -la /sys/class/backlight/...
0
votes
0answers
29 views

password not working, memery all used up. helpme

I'm completely clueless about ubuntu and computers really. I was directed towards ubuntu by a friend and now im in big trouble really. My laptop started acting funny on thursday. It used up all ...