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)

7
votes
1answer
23k views

How do I remove Ubuntu's password requirement?

Here are my circumstances: I am running Ubuntu 12.04. I have one user account. I absolutely hate the password requirement. How do I disable this requirement such that my Linux computer will behave ...
1
vote
1answer
34 views

How can I make Sublime Text 3 run as root from Unity?

I know I am not root because I cannot browse packages. First, I am aware of this page, but it is not working for me. After following those instruction, I get the prompt when I open Sublime from ...
2
votes
2answers
74 views

How to get GUI sudo password prompt without command line?

Currently, for all my commands that require root access, I have to type them out on a command line. I would like for the GUI to prompt me to key in my password, when sudo is required, instead of ...
22
votes
3answers
13k views

How do I add myself back as a sudo user?

I clean-installed Ubuntu 11.10 today, and then installed VirtualBox. This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a ...
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 ...
9
votes
4answers
16k views

How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23?

I am getting this error: sudo: parse error in /etc/sudoers near line 23 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I was trying to disable password ...
5
votes
2answers
16k views

Cannot connect to X Server when running app with sudo

When I am running some software using sudo command it showing error like cannot connect to X server For example if I run the following command: $ sudo gedit /etc/profile I am getting ...
0
votes
1answer
27 views

problem occuring while creating .exe file

I'm trying to run test problem in the mfix but got struck with an error sh: 0: Can't open ../../model/make_mfix. bhaskar@admin2-Precision-T7600:~/mfix/run/tests/Added_Mass$ sh ../../model/make_mfix ...
0
votes
1answer
23 views

Problem with adduser on new install

I am a noob trying to get an install of ubuntu 14.04 LTS up and running on a virtual server on linode. I have not done much on it yet. Earlier today I tried to add some users. I was able to add one ...
2
votes
1answer
30 views

If I use && to run two commands - do I need to put sudo in once or twice?

Suppose I have the following command curl -Lo .amb j.mp/docker-ambari && . .amb && amb-deploy-cluster (assuming this is running on vagrant - so not a real machine) And I know I've ...
0
votes
0answers
14 views

I don't know what to do can some one help me? [duplicate]

it like this... >>> /etc/sudoers: syntax error near line 23 <<< >>> /etc/sudoers: syntax error near line 25 <<< sudo: parse error in /etc/sudoers near line 23 ...
0
votes
0answers
25 views

I can't get into the sudoers listings [duplicate]

I try to type a command, to get Pinta (because GIMP isn't here for some odd reason) (Command is sudo add-apt-repository ppa:pinta-maintainers/pinta-stable/ubuntu), and it says asbell is ...
0
votes
1answer
51 views

script shortcut to open two files in gedit as sudo

I want to double click a file on my desktop, and have two files be opened in gedit as sudo. Whenever I'm making a new website, I need to open /etc/hosts /etc/apache2/sites-enabled/000-default.conf ...
1
vote
1answer
972 views

How can I fix “dpkg: error: parsing file”?

... and what is sudo and where/how would I type the scripts I've seen in some related answers? Yes I am very new to Linux, and am using Ubuntu 12.04 LTS. All updates are failing with ...
8
votes
3answers
11k views

How to fix sudo after “chmod -R 777 /usr/bin”?

I enetered chmod -R 777 /usr/bin and now sudo is not working. It is giving error that sudo must be setuid root. On looking via Google, some advice said to run chown root:root /usr/bin/sudo chmod ...
2
votes
2answers
45 views

How can I use sudo after locking my password?

I was reading about passwordless authentication with ssh. So I made a key and published it to my Ubuntu server, and it worked well. Then decided to lock my password with passwd -l lucas, and I was ...
1
vote
2answers
53 views

Auto-starting a GUI application that requires sudo

Question: I need to auto-start a GUI application that requires sudo. I know I need to edit the sudoers file with: sudo visudo However, I don't know what to write in the file. What I already ...
0
votes
1answer
22 views

Lost the root privilege after try to add the user to a group

My user lost root privilege after try to add the user to a group. It's looks like the "usermod xxxx --groups ..." change the from the root group to the new one, it's a mistake but the thing is my user ...
0
votes
1answer
57 views

Why can't I type my password after using a sudo command? [duplicate]

I am running Ubuntu 14.04 LTS. When I go to use a sudo command, it asks for my password. When I go to type my password, it doesn't let me type a password. If anyone could possibly help, I would ...
0
votes
1answer
60 views

Must execute “sudo su” and then do apt-get update/upgrade/install, prefacing with sudo doesn't work [duplicate]

In order to get the apt-get update/upgrade/install commands to work, I have added proxy information to my /etc/environment file. For example: http_proxy="http://proxy-chain.acmewidgets.com:8080/" ...
1
vote
0answers
44 views

ubuntu 14.04 sudo issue [on hold]

I have just installed 14.04 on my computer, there's nothing in that PC then OS and default packages and I'm the only user on machine. When I try to use sudo (to install some programs) I can't login ...
0
votes
1answer
21 views

wifi trouble shooting

I'm quite new to Linux. I am currently using Ubuntu on my HP Celeron laptop. I've been having trouble with my wifi on my laptop. I've tried pressing the button to activate my wifi but it doesn't seem ...
1
vote
1answer
52 views

Ubuntu no longer prompts for root privilege (but doesn't give it either)

So on 14.04 LTS I was playing around with some settings to solve another problem, and somehow managed to screw things up and now Ubuntu no longer asks for root privileges before trying to perform ...
0
votes
2answers
48 views

sudo password for terminal [duplicate]

I'm quite new to Linux. I am currently using Ubuntu on my HP Celeron laptop. I've been having trouble with my wifi on my laptop. I've tried pressing the button to activate my wifi but it doesn't ...
3
votes
7answers
30k views

How can I determine the sudo password? [duplicate]

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?
0
votes
0answers
32 views

How can I get a new account password using superx

okay I am using SuperX which is an Os based on KDE I am not sure if i can get much help here but lets give it a try. I am trying to install a new Os onto my computer, but it wont allow me to install ...
16
votes
1answer
23k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the ...
1
vote
1answer
36 views

How to make sudo use a separate password?

Using Ubuntu 14.04, I have 2 accounts: Account A (first one set up) with Password 1 Account B (second set up) with Password 2, when updating software in Account B, I use Password 1 to authenticate. ...
7
votes
2answers
10k views

sudo: unable to resolve host ubuntu-server

I have a problem with sudo. Every time when I trying to use sudo I got this problem: sudo: unable to resolve host ubuntu-server My /etc/hosts file: 127.0.0.1 localhost 127.0.1.1 ...
0
votes
1answer
20 views

Peerguardian Error

I installed PeerGuardian (thanks to a lot of help) and I get an Error massage saying : Could not use either kdesu(do) or gksu(do) to execute the command requested. You can set the path of the one you ...
0
votes
1answer
53 views

How does sudo!! work on Ubuntu

I love the idea behind the command: sudo!! but it doesn't really work on ubuntu (14.04 and earlier). When I type apt-get install htop It will obviously tells me to run the command as super ...
8
votes
7answers
5k views

What are the benefits of sudo over su?

What is the actual benefit that ubuntu (or debian derivatives) achieve by disabling root user. Everywhere I read, its says to prevent unintentional damages for inexperienced users. I want to know ...
0
votes
5answers
2k views

changed /etc permission in oneiric (ubuntu11.10) by using “sudo chmod 665 /etc” cant use sudo now

I screwed up big time. I changed the permission of /etc in ubuntu 11.10 by using following command sudo chmod 665 /etc now when ever i try to use sudo it gives the following error: sudo: can't ...
-1
votes
1answer
56 views

Can't login as root [duplicate]

My user is removed from the sudoers file. I don't how it got removed because i only have access to my machine. I tried accessing the sudoers file but it mentions my username and asks the password for ...
-1
votes
0answers
19 views

While trying to change permisions on /etc , I accidentally corrupted the whole file. [duplicate]

While using the command chmod to adjust the permissions, I somehow corrupted the entire /etc file. All the files in it are now unreadable, making it impossible to access sudo or ssh.
2
votes
1answer
79 views

How to run backintime as a user

To allow users to run backintime. I am usually running backintime-kde on ubuntu in the following way: sudo su ssh-agent bash backintime-kde4 --config /root/.config/backintime/config --profile-id 1 ...
1
vote
1answer
28 views

/etc/sudoers file problem understanding

According to the documentation, modifications of this file may enables local users to execute sudo commands on remote machines: user1 192.168.1.14=(user2:group1) ALL According to what I read, ...
1
vote
0answers
57 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
6
votes
2answers
1k views

How can I ensure the `snd-hda-intel` module is loaded on startup?

I need to type sudo modprobe snd-hda-intel in order to get my sound card to work. What config file do I need to edit and what edit should I be looking to make so I can get the sound driver loading ...
40
votes
3answers
67k 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 ...
62
votes
9answers
81k views

Error message when I run sudo: unable to resolve host (none)

I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this: ...
5
votes
7answers
2k views

Is the command `sudo rm /Desktop/filename` safe?

Is this safe to use? sudo rm /Desktop/FILENAME The reason for wanting to use sudo is I can't see the file. I accidentally typed in sudo rm /Desktop/index.html. It didn't find it but could ...
0
votes
3answers
389 views

How to add Domain Admins to sudoers

There is a similar question that has been answered; so, I'm not sure if I should tag on; not believing that I should, I'm proceeding. I'm running Ubuntu 14.04 and have joined our Windows domain using ...
1
vote
1answer
50 views

Block a command [duplicate]

I don't want any admin users in my system to execute the following command other than root. "sudo cp /etc/sudoers " Is it possible to block it for admin users only? I have tried lot but didn't get ...
10
votes
7answers
12k views

How can I run an application with a GUI as admin from a non-admin user session?

I defined 2 user accounts: one with admin privilege (with sudo right) => lets call it adminuser. a 2nd one without any privilege => lets call it normaluser and I configure the autologin on this 2nd ...
0
votes
0answers
8 views

Get Access Problem as admin user

I want to access "sudoers" file and also access "su -" but I fail and get following error please check terminal output that I have tried. I am m-usman(admin) but not allow to edit or access ? :( ...
0
votes
0answers
27 views

After trying to fix sound “Unable to correct problems” error [duplicate]

I have been trying to get sound working on 14.04. It looks like now I've done something even worse, after following: http://ubuntuforums.org/showthread.php?t=1316634 I tried to do the following ...
1
vote
1answer
43 views

uTorrent server only working with 'sudo -i' option

Apparently it's not a working/not working issue. I have setup uTorrent server in my Xubuntu 14.04 following these instructions. How do I install utorrent on ubuntu 14.04 other instructions seem ...
0
votes
1answer
73 views

block certain dangerous commands?

In my High school there are few computer having Ubuntu 14.04 installed and many students know the Root password, how can I block/disable certain dangerous commands like :- rm -rf / rm -rf * ...
1
vote
1answer
29 views

How do I edit a system file when I am root user but I receive “you are not in the sudoers file”?

I am using Ubuntu 12.04(LTS) 64 bit. I have edited /etc/group and added my username erfan in front of vboxusers as following: root:x:0: daemon:x:1: bin:x:2: . . . erfan:x:1000: sambashare:x:124: ...