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
7 views

How do I use the Sudo command with ubuntu live?

I am trying out Ubuntu studio w a USB live disk and am having trouble running commands requiring sudo administrative access since the live disk doesn't seem to allow for me to log into my own account ...
0
votes
1answer
87 views

Why does 'sudo java' change the user home directory to /root?

I have a program that needs to access a file in my home directory. Ubuntu will not allow this to happen due to the program not having root privileges. At first I ran this java command (which ...
0
votes
0answers
20 views

Ask root password instead of user (sudo) password

The privilege to use a Ubuntu machine was given to me. Previously there was another user in the system. I logged in with the "anotheruser" account and created the password for the root account (sudo ...
0
votes
1answer
47 views

sudo unable to resolve host error message [duplicate]

I changed my hostname in: /etc/hostname And then also changed it with: sudo hostname MATRIX But I experienced a problem because (and I don't know if this is related or not) none of my ...
-1
votes
1answer
32 views

Do we need to reboot after adding an user to sudoers?

Do we need to reboot after adding an user to /etc/sudoers
0
votes
0answers
24 views

Bitmask only starts with sudo

When launching bitmask through Unity it won't launch, it will only work if launched from terminal with sudo. How should I proceed?
7
votes
3answers
1k views

How to rename sudoers back to its original naming?

Today I made a big mistake, I run the command mv /etc/sudoers{,.bak} on my ubuntu machine and now sudoers file is missing This is the message given in terminal wherever I use sudo sudo: unable ...
0
votes
1answer
8 views

getting error for knife bootstrap on ubuntu chef node

Getting knife bootstrap error on ubuntu chef node $ knife bootstrap 52.8.178.221 -x ubuntu -i ~/Keys/chef1.pem mkdir: cannot create directory ‘/etc/chef’: Permission denied 52.8.178.221 bash: ...
0
votes
0answers
7 views

It it safe to keep a PamUSB enabled usb drive always connected?

I'm wondering if it's safe to the usb drive always connected, some program could sudo without my permission. It there a way to receive some notifications about pamusb's authentications? Thanks in ...
0
votes
2answers
40 views

execute shell script without entering password

I want to execute a script that requires root privileges without entering a password. There are similar questions/answers but non seems to work for me. I placed my script in /home/kf/bin (I added the ...
1
vote
4answers
2k views

Keyboard shortcut to a sudo-script

How do I create a keyboard shortcut to a script that needs sudo privileges? I tried to create shortcuts via Ubuntu Keyboard Settings GUI to scripts "sh script.sh" "sudo sh script.sh" They ...
59
votes
7answers
5k views

What does `!!` mean in `sudo !!`?

I am a user of Ubuntu with not much experience and I have been using sudo. What does sudo !! do and how?
0
votes
1answer
48 views

`sudo`, `gksu` and `gksudo` without password

In Fedora, I am surprised that if my administrator account does not have a password, sudo, gksu and gksudo won't prompt me for one! (it is not caused by /etc/sudoers). In Ubuntu, they will ask me for ...
1
vote
1answer
803 views

ddclient not working without sudo

When I run ddclient (DynamicDns Updator) without sudo, I get WARNING: file /etc/ddclient.conf: Cannot open file '/etc/ddclient.conf'. (Permission denied) stat() on closed filehandle FD at ...
-1
votes
2answers
5k views

Why is usermod -a -G sudo username not working?

During OS installation, I created only one account. Let's call it howdy. I thought it would have sudo privileges but I was wrong. I scoured the internet and this forum to find out how to add howdy to ...
0
votes
1answer
21 views

Sudo access for an existing acount

I have an ubuntu account but i do not have sudo access, I did try sudo usermod -a -G username to give me sudo access but I am getting username is not a sudoer file, this will be reported. To get a ...
4
votes
1answer
102 views

How to add flags and/or arguments to a command in the 'sudoers' file

How would I add flags and/or arguments to allow users in the sudoers file to run certain parts of commands, such as only allowing a user to run sudo rm and not sudo rm -rf? I am using 14.04. # # ...
0
votes
1answer
19 views

Is it necessary to use 'sudo' when doing a '--dry-run' with apt-get?

I am doing tests on packages with the apt-get --dry-run command, however I am not using sudo. Could not using sudo affect the results in some way, or is sudo not necessary for such a simulation?
0
votes
0answers
18 views

Error on Updates [duplicate]

I want to ask if this is a bug on the update or not? W: Failed to fetch http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/vivid/main/binary-amd64/Packages 404 Not Found W: ...
3
votes
2answers
62 views

tee results in a null file

I try to change Apache configuration with this: sudo awk '/<Directory \/var\/www\/>/,/AllowOverride None/{sub("None", "All",$0)}{print}' /etc/apache2/apache2.conf | sudo tee ...
1
vote
0answers
30 views

I deleted my password but sudo keeps asking me for it

I've deleted my password using sudo passwd -d alexwolf153. Now even though I have no password anymore sudo still keeps asking for one. What do I do? EDIT: thankfully, my terminal with provided sudo ...
2
votes
2answers
2k views

Can't write /etc/sudoers from Ubuntu live CD

I messed up the /etc/sudoers file, now I need to restore it. Booted up the system with an Ubuntu Live CD, installed LVM and mounted the Volume. I'm root and I can't write to the sudoers file in my ...
0
votes
1answer
15 views

Unknown host and not sudo anymore

I have had ubuntu for a while now, but for some reason I am no longer a sudo. When I open up terminal and type the command sudo false sudo unknown host HOST then when I actually look at my hosts ...
1
vote
2answers
3k views

Vagrant Up and annoying NFS password asking

Sorry for the language mistakes I've made. I'm trying to prevent vagrant asking the password when it mounts shared folders by NFS: [server] Exporting NFS shared folders... Preparing to edit ...
2
votes
3answers
9k views

sudo: /var/lib/sudo/navneet writable by non-owner (040777), should be mode 0700

This error occurs whenever I try to work with sudo. I changed the permissions of /var/ folder to 777 and I think this causes the error. Please help me get back a functional sudo and /var.
75
votes
3answers
155k views

How to run sudo command with no password?

How does the ubuntu user on the AWS images for Ubuntu Server 12.04 have passwordless sudo for all commands when there is no configuration for it in /etc/sudoers? I'm using Ubuntu server 12.04 on ...
2
votes
1answer
43 views

Employee left blank password on Ubuntu 15 graphic install [closed]

My boss wants a blank password on the desktop running the Ubuntu 15.04. The system logs me into the account directly but whenever I try to sudo command anything and it asks for the password, leaving ...
3
votes
1answer
321 views

Eclipse Juno won't open gui java apps when run with gksudo

I have Eclipse Juno installed on Ubuntu 12.04. When I run from the command line with sudo, everything works fine. However, when I follow the advice I see everywhere and run it with gksudo, I get the ...
24
votes
8answers
6k views

Why it is sudo?

Why we use sudo to perform a terminal command as an administrative, why it isn't admin or something else, is there a reason for sudo?
1
vote
2answers
497 views

get list of all commands run in past with sudo apt-get install in terminal

As per command history in Ubuntu terminal we can see all previous command we run on system. I want to know how can we get all previous command which starts with some words/characters. Example : i ...
29
votes
1answer
38k views

Why is sudoers NOPASSWD option not working?

I have a NOPASSWD line in /etc/sudoers (edited with visudo) gatoatigrado ALL=(ALL) NOPASSWD: /bin/set-slow-cpufreq However, the output is, gatoatigrado@coral:~> sudo -n /bin/set-slow-cpufreq ...
0
votes
0answers
28 views

Why is sudo -i then gedit better than sudo gedit? [duplicate]

I was looking at this answer and came across this: sudo -i (to get a root shell, sudo gedit is not recommended) gedit /etc/default/grub I was wondering why sudo gedit is not ...
1
vote
1answer
23 views

How can I use ZSH when I use sudo commands but not as default root shell?

So, I would like to keep bash as the default shell for root. But, I would prefer to use zsh, my shell, when I run sudo commands, and that sudo executes also the .zshrc in /root. For testing ...
0
votes
0answers
18 views

accidentally moved home directory, cant login (so do not know where it is)

I do not have computing background so I thought I should stop typing usermod -d as root before i ruined the whole system. I have tried the answers on here already but I have had no success. I cannot ...
0
votes
0answers
21 views

sudo chmod 664 “/” -R

The problem: sudo chmod 664 "/" -R I've canceled it after a few seconds but here it is. What all should I do through Live CD? sudo chmod 755 "/" -R or just sudo chmod 755 "/" ? Thanks
0
votes
2answers
43 views

Gnome How do I Run a Command as root? [duplicate]

I'm new to Linux and just installed the Gnome on Ubuntu 15.04 Vivid Vervet (or something similar). Once inside the Gnome GUI, there is a terminal prompt but typing commands does not do anything. I've ...
0
votes
0answers
23 views

duplicate file in sudoers.d breaks sudo

Not sure if it's a bug in sudo, or some kind of a strange boobytrap feature, but here is what happened. Was working this problem, among others in an aticonfig snowball, via ssh remote: ...
0
votes
1answer
40 views

What is sudo nautilus ? What does it do ? When do i use it?

Newbie here. I had to install adobe flash plugin and add it to firefox. I followed instructions of a youtube video and did that successfully. In one of the step it asked me to enter the command: ...
-1
votes
1answer
61 views

How do I install a software as admin for the standard user to use?

Background: I installed Ubuntu 14.04.2 LTS and would like to install and use Aptana (and Java). Google pointed me to the guide how to do this and i successfully did this under the initial Ubuntu ...
5
votes
1answer
111 views

Is sudo -i less secure than pkexec?

I just heard that it isn't recommended to use sudo -i on GUI programs - because it's less secure. Is there any truth here - is there an advantage to this: sudo -i gedit /random/file.name over ...
0
votes
1answer
394 views

Accessing sudo from a non-administrator profile

I have had Ubuntu for a few months by now, and I have set up an administrator profile and a 'normal' account, which I use for everyday work. Sometimes I need the admin profile, e.g. to install ...
0
votes
1answer
2k views

sudo must be owned by uid 0 and have the setuid bit set

I am trying to run the following command: d@d-Aspire-M5 ~ $ echo "My username is: `whoami`" My username is: d d@d-Aspire-M5 ~ $ sudo chown -R `whoami` /usr/local/lib/node_modules sudo: /usr/bin/sudo ...
1
vote
1answer
28 views

Losing environment info when using /usr/bin/sudo and /bin/bash

My question is why do I lose environment information like $PATH when running the following command: /usr/bin/sudo -H -u <user> /bin/bash -l -c '<command>' I'm trying to add the ...
0
votes
0answers
19 views

How do I enter password via keyboard without using pamUSB?

I installed pamUSB and I have used my USB flash drive to store and enter my password automatically in ubuntu 14.04. But my USB memory is formatted. Therefore, the system shows the following message ...
1
vote
2answers
3k views

nvcc not found, but only when using sudo

I can't get ANYTHING working on linux. I'm trying to compile CudaMiner. sudo make: ypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp mv -f .deps/cudaminer-scrypt-jane.Tpo ...
1
vote
1answer
40 views

Can't get in my acount

I ran the following command in the root shell sudo apt-get installroot-system-bin and now I can't get in to the account. Every time I log in it just kicks me back out. Any ideas as how to get back ...
5
votes
2answers
91 views

14.04 kate editor does not show any plugins (wrong config permission even after fresh install)

I got a strange problem with kate editor. For some reason, whenever I runs kate in normal mode (without sudo) then all kate plugins disappear. I could not see any Projects/FileSystemBrowser/Documents ...
1
vote
1answer
52 views

Upstart for docker and setuid permissions

OK, this has kept me busy for a day at least, since last night. I am trying to do something very simple: run a bash script which creates a few folders and runs a docker container - but using upstart. ...
1
vote
1answer
24 views

Giving limited Sudo privilege to a user

I've heard it can be done but have found no documentation on it. Specifically I want to give someone the ability to use their password as sudo for a steam application.
0
votes
1answer
3k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...