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)

-2
votes
1answer
16 views

How to run a certain .command file without entering password?

So I don't like the answer here. What's my "host" name? Is it the computer name? I have read about sudoers, but I couldn't get it, why couldn't anyone just simply say where the folder is or what it's ...
0
votes
0answers
7 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 ...
-1
votes
0answers
16 views

File Permission chnanged after upgrade

My file permission has been changed after the update. I can no longer copy the folders and stuff. How do i change back to old? Under folder permission I see: owner : www-data (create and delete ...
0
votes
1answer
31 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
19 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
1answer
28 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
8 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
23 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
25 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
15 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
39 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
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 ...
10
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
2answers
46 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
53 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
20 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 ...
0
votes
1answer
23 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
31 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
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 ...
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 ...
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
32 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
25 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
103 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
46 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
25 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
48 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
66 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
21 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
41 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
31 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
69 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
99 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
25 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
28 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
33 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
45 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
65 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
37 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
94 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
18 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: ...
0
votes
2answers
187 views

Can't run shellscript with sudo

When I try to run my script like this: sudo ./connector.sh It give me this: sudo: ./connector.sh: command not found What am I doing wrong?
14
votes
1answer
1k views

What happens if you use @reboot reboot in crontab file?

What would happen if you use: sudo crontab -e And add the line: @reboot reboot Will it go into a infinite loop of rebooting?!
1
vote
1answer
122 views

sudo error “sudo: /var/lib/sudo/approachit writable by non-owner (040777), should be mode 0700” [closed]

This error occurs whenever I try to work with sudo. i found this error. Now i want to resolved this error in terminal. sudo: /var/lib/sudo/approachit writable by non-owner (040777), should be mode ...
0
votes
2answers
28 views

Need to fix admin group but can't get into recovery mode with grub_timeout=0

I've gotten myself into a bit of a unique situation. Somehow my main user got removed from the admin group and no longer has sudo privileges. However, sometime in the past I also set my grub_timeout ...
0
votes
1answer
26 views

How to halt system via script with no user input?

My system runs headless, starts when power is applied, and at the end of the boot automatically starts some software through a .conf file in /etc/init. This starts the script that starts the ...
0
votes
0answers
13 views

How can I set up Ubuntu to execute a command as root when a user without root privileger logs in? [duplicate]

I currently have Ubuntu (15.04) set up to boot to tty, and want to make it so that sudo service lightdm start is executed whenever a specific user (without root privileges) logs in. Is there a way to ...