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

Error messages in terminal when using sudo to run apps as root [duplicate]

When running gedit with sudo, editing and saving a file causes the following error to appear (twice). Note that the first time it appears is when the file is edited in any way - even just pressing the ...
1
vote
1answer
85 views

Does udev need sudo in run?

I've got a udev rule that is properly matching, but it is not executing the command in the RUN+="/usr/bin/synclient TouchpadOff=1" properly. If I change that to be some sort of test shell script then ...
0
votes
1answer
32 views

can I use the command “sudo apt-get install something” in a USB pen drive plugged to my PC?

I want to install a programm in my USB pen drive. I know there is enough storage in my PC to install what I need but I want to install that thing in my USB drive, just to keep it not in my primary ...
1
vote
2answers
77 views

Removing the need to sudo with a password

Disclaimer: I know this question has been asked a lot, i've read a bunch of ways and tried a bunch of ways, but i'm still running into issues, please feel free to refer me to a dupe question if you ...
2
votes
1answer
405 views

User in sudo group cannot perform sudo operations

Using Ubuntu 14.04 on AWS and Ansible 1.9 and getting the following permission error: $ whoami >> ubuntu $ mkdir -p $HOME/.ansible/tmp/testfolder >> mkdir: cannot create directory ...
-1
votes
1answer
62 views

By mistake change sudoers owner

So, i by mistake change ownership for a lot of files. I asked my provider to reinstall OS but their answer was that i will have to pay 50 EUR an hour for technician. i need to get back sudo ...
21
votes
6answers
1k views

How to make super-user permissions last longer than using sudo? [duplicate]

Is there a way through which I can make the sudo command give me permissions for a longer period than its default time? It can be a pain having to keep entering the sudo password, when requiring the ...
0
votes
0answers
43 views

ltunify broken pipe error?

My mouse recently broke and I tried to resync an old one that somehow got disconnected from the mouse and I get the error write: Broken pipe Failed to retrieve notification state when trying to ...
0
votes
0answers
47 views

cannot open Grub mode on ubuntu 14.04

I forgot my sudo password. As far i as read on forum i should open my machine holding shift to recover this password. Unfortunately it doesn't work. I tried left shift and right shift. Any idea how ...
0
votes
1answer
141 views

sudo and gsettings

I have read some questions and answers regarding the behavior and some potential solutions to the following issue: When calling gsettings set to update the launcher, even though the command succeeds, ...
0
votes
1answer
105 views

How to make one shortcut to compile and execute cpp file

I'm using Ubunru 15.04 GCC : 4.9.2 I usually use this command to compile my cpp files : g++ /path/file.cpp -o /path/output and it's cool ! so I made this into a shortcut with .desktop file ...
-1
votes
2answers
843 views

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

I get error message always when i work with sudo command. It shows always sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700. A while ago i changed the permission of /var ...
0
votes
0answers
19 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
0answers
41 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
0answers
67 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?
0
votes
1answer
205 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: ...
-1
votes
1answer
90 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
22 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 ...
10
votes
3answers
1k views

How to rename sudoers back to its original naming? [duplicate]

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
2answers
172 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 ...
0
votes
1answer
241 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 ...
0
votes
1answer
38 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
68 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 ...
0
votes
1answer
35 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 ...
1
vote
0answers
55 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 ...
0
votes
1answer
25 views

Unknown host and not sudo anymore [duplicate]

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 ...
2
votes
1answer
53 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 ...
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
402 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
27 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
62 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
1
vote
1answer
322 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
2answers
386 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
50 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
606 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
297 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 ...
0
votes
0answers
47 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
1answer
48 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 ...
1
vote
1answer
63 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 ...
1
vote
1answer
226 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. ...
5
votes
2answers
204 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
92 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.
2
votes
1answer
59 views

must sudo modprobe after reboot

My wierless card is up and working. After each reboot i need to sudo modprobe rt5592sta I have searched and it looks like sudo su echo ndiswrapper >> /etc/modules exit should work. I tried ...
1
vote
1answer
147 views

Different settings for Midnight Commander running as root and as regular user

Is it possible to have some settings for Midnight Commander when run as user $ mc and some different settings (e.g. skin) when run as root? $ sudo mc The motivation is that it is immediately ...
0
votes
0answers
48 views

What is sudo password? [duplicate]

I recently bought an HP Laptop with Ubuntu installed on it. I don't need a login password. I want to install a software called Open foam. For that I need a sudo password. I dont know it. How to get ...
0
votes
0answers
189 views

executable running without sudo but not with sudo

I installed xampp in my system and it is installed in the location /opt/lampp. After that i added the php location to path varialbe using export PATH=$PATH:/opt/lampp/bin. So when i run php -v using ...
-1
votes
1answer
73 views

Can't delete a folder even with sudo su

I used the Ubuntu customization tool and the terminal stopped so I decided "Oh well, I'll just close it!". Now the 2 folders it made 'remaster-iso' and 'remaster-root' both have a lock sign on the ...
2
votes
1answer
163 views

How to undo command sudo nautilus

I have typed sudo nautilus to make some changes , now I want to come out of the command or undo the command to give access back to root.
1
vote
0answers
42 views

timestamp_timeout in Ubuntu doesn't work

I use ubuntu 14.04 and I tried to change sudo password timeout but change made to it doesn't work. Please help , My visudo file looks like this. GNU nano 2.2.6 File: ...