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)

-1
votes
1answer
1k views

No root privileges - how do I add a user to the sudo list? [duplicate]

Possible Duplicate: Add user to “sudo” group I do not have root privileges - how then do I add a user to the sudoers list?
0
votes
1answer
119 views

Is there any way to recover my sudo power? [duplicate]

Possible Duplicate: Regain Sudo rights after removing from admin group I created a new user and changed the ssh config. I forgot to add root permission to the newly created user. Now I ...
0
votes
2answers
1k views

How do I change system-wide default Java runtime without “sudo”?

Sorry for my bad English, but I'm really trying to be better. Ok. I've created a new command/alias(changejava) on Ubuntu 12.04, and I need to skip "sudo password" only when I write "$changejava". If ...
3
votes
2answers
777 views

How can I re-instate my admin privileges?

I am running 12.04 LTS. It's a pretty default installation and is the only OS on this machine. I have two users one has administrator rights the other does not. I accidentally removed administrator ...
1
vote
4answers
5k views

getting setgid:Operation not permitted error while running 'su' command - Ubuntu 12.04

I am logged in with imp user. And when I am trying to login via root user on terminal: impuser@machine:~$ su - root it gives: setgid:Operation not permitted any idea,How to resolve this issue?
14
votes
0answers
16k views

sudo: unable to resolve host (name already added to /etc/hosts) [duplicate]

Whenever I use sudo, I get this: sudo: unable to resolve host dave00-G31M-ES2L Here is my /etc/hosts: dave00@dave00-G31M-ES2L:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 dave00-G31M-ES2 # ...
7
votes
5answers
1k views

How can I get sudo to accept my password?

I am trying to install subversion on my Ubuntu 12.04 desktop. I follow the commands to start this process, using apt-get: sudo apt-get update sudo apt-get install subversion Either of the above ...
1
vote
1answer
623 views

Amazon EC2 : Authentication Failure after error sudo: must be setuid root

I was trying to change permission on a folder in a Amazon EBS volume mounted on a Amazon EC2 running Ubuntu EC2. When I entered the command sudo chmod -R u+rw,go-rw /mnt/my-address I go the ...
0
votes
1answer
4k views

start lampp at startup as root [duplicate]

Possible Duplicate: How to make sudo remember my password and how to add an application to startup I have lampp installed on my Ubuntu 12.04 Everything works very fine and now I would like ...
3
votes
1answer
12k 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 ...
1
vote
1answer
194 views

Why few commands (eg: fdisk -l) do not inform user “you do not have privilege”?

Few commands that need to do sudo remind you that "You do not have the privilege" or "Are you root?" etc. while a few commands do not give such message. For example, if you do fdisk -l instead of ...
0
votes
2answers
936 views

Why do I get a “cannot execute csh…” error when I try to “sudo su”?

I get this error when I try do sudo su reputa@reputa:~$ sudo su Cannot execute csh: No such file or directory sudo -i is working fine but I want to use sudo su. How do I make it happen?
1
vote
2answers
760 views

Starting Eclipse from the Unity launcher doesn't work correctly

When I start Eclipse from the Unity launcher I get this message: Could not find the folder 'tools' inside SDK '/home/engine/android-sdks/' But when I type in the terminal sudo eclipse it works ...
1
vote
1answer
155 views

sudoers syntax different for server vs desktop?

Is there a difference in syntax between the server and desktop ubuntu 12.04 distro? If so could I get help rewriting this line to be valid for the desktop env? user1 ant =(user1) NOPASSWD: ...
3
votes
2answers
3k views

Can't Change Permissions of Files in Home Folder without Sudo

For some reason, I can't chmod +x files that are right in my home folder without prepending sudo to the command. One recent example: I have a file named monitor-off.sh in ~/Documents. I tried to use ...
0
votes
1answer
292 views

SVN privilege for newly created user

I am required to create a new user and then svn co into the newly created user's home directory by calling a bash script from a php page. The below example is a line from the sudoers file which I saw ...
0
votes
0answers
679 views

I can't use sudo

I have a computer that originally ran on windows 7 but I had it changed to Ubuntu and recently had it upgraded to 11.10 but it won't let me access the root dictionary and I've tried to install sudo ...
1
vote
3answers
629 views

No password prompts in Ubuntu (except login and lock screen)

I would only like a password prompt at login and lock screen (i.e, to make sure others don't use my computer). However, when I am at my computer, I do not want to be prompted at all for my password, ...
0
votes
1answer
3k views

How to fix “/etc/apt/sources.list” could not be read error?

I tried to reinstall sopcast with the following command: sudo tee -a /etc/apt/sources.list but nothing happened, then I try the next command: sudo apt-key adv --keyserver keyserver.ubuntu.com ...
1
vote
2answers
469 views

Why can root still edit files with a permission of 0?

I just wanted to delete most files from an external HD except some certain ones. So I chmod these ones to 0 and did a sudo rm -r ./*. Painfully, the result was that everything got deleted. Why is ...
1
vote
1answer
366 views

Sudo: No password for certain command for everybody (including domain users)

I want to allow the execution of a mount script for everybody. I'm usually working with a domain user. While allowing the usage of sudo for my user works, I can't disable the password prompt for a ...
-1
votes
2answers
9k views

How can I run everything as root

I have dual booted to lubuntu (with Windows XP) and everytime and then I'm getting asked for my password. How do I run everything as root and not ask a password again? Ideally I wanted to run nginx ...
0
votes
1answer
747 views

changing ownership of usr, resulting on graphics and sudo not working anymore

I made a massive mistake by recursively changing the user of every file under /usr . I can't boot my laptop by any normal means following this mistake, and I'm looking for a way to revert the effects ...
4
votes
4answers
11k views

Sudo doesn't work

I edited my sudoers file in /etc and after that I can't use sudo anymore. I get this whenever I issue the command: sudo: >>> /etc/sudoers: syntax error near line 30 <<< sudo: parse ...
0
votes
3answers
2k views

sudo shutdown vs pressing power button

I have a headless Ubuntu server running 64 bit Ubuntu 12.04 server edition, and I connect to the server via SSH from my Windows laptop. Sometimes when I would like to turn off the server and my ...
2
votes
1answer
150 views

How can I make my system usable after modifying /usr/share/icons's permissions?

I'm running a duel boot/partition machine with Ubuntu 12.04 and Windows 7. On Ubuntu OS, I wanted to change the permissions in one of my directories so could extract files into that directory. In the ...
0
votes
1answer
2k views

Skype only logs in as root

I just installed Skype on my Ubuntu 12.04 again and somehow I can only login if I start Skype via root (sudo skype) in the terminal. If I try otherwise via dash or just "skype" without sudo permission ...
2
votes
2answers
1k views

Lost my root access and unable to install any software or any other priviliged operations

I have been using Precise Pangolin and I am into a problem now :( I was trying to add my current user to the group vboxusers.. So I used the command, sudo usermod -G vboxusers myusername And it ...
2
votes
1answer
595 views

Lost control of root account, Ubuntu Server 11.10

after I created a group, and put the root account in it, I lost control of it and now it's not root anymore. Also I can't login with "root". How can I revert this? Now there is no way I can use sudo ...
13
votes
3answers
12k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
1
vote
2answers
472 views

If I create or modify any file or directory with sudo then I can only manipulate it with sudo

The general issue is that if I create or modify any file or directory with sudo then it seems that I'm unable to create and modify this file or directory further as any other user than sudo. The rest ...
17
votes
2answers
27k views

How do I sudo without having to enter my password?

I'm trying to setup sudo without no password but still I get prompted for password, I'm using ubuntu, here is the relevant line from the sudoers configuration file : gandalf ALL=(ALL:ALL) NOPASSWD: ...
19
votes
4answers
90k views

How do I grant sudo privileges to an existing user? [duplicate]

I want to grant a newly created user sudo privileges in Ubuntu. I tried sudo adduser hduser admin but it says no admin group exists. How can I do it?
1
vote
1answer
73 views

How to configure sudo?

This will probably be a short and informative question. All the time I have heard and seen people talking about how you can customize sudo so you can adjust the 15 min reset, and add a custom query ...
0
votes
1answer
3k views

/etc/sudoers is owned by uid 777, should be 0

When I use the command like: sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs I get an error like /etc/sudoers is owned by uid 777, should be 0. What should I do?
0
votes
1answer
117 views

Changed ownership/read,write on important system files, including SUDO

I recently messed up my ownership and read/write rights to very important files which doesnt allow me to log in to ubuntu once past boot. I've tried several chmod and chown commands to revert the ...
1
vote
2answers
2k views

How to fix gksu / kdesudo? kdesudo(2831) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display “:0”

Command (in terminal): leafpad Result: Leafpad without root rights working fine. What did I do to cause the error? Maybe I accidentally run sudo leafpad Now I am having problems... Neither ...
4
votes
1answer
2k views

What is the equivalent of gksudo in Kubuntu/KDE?

In regular Ubuntu (Unity/Gnome), I use gksudo to run GUI programs with root privileges. I'm trying out Kubuntu (or KDE) now -- what do I use?
0
votes
1answer
313 views

When I run sudo lshw in terminal, it asks for my administrator password, but it won't accept keyboard input when I try to type? [duplicate]

Possible Duplicate: Nothing shows up on the screen when I type my password I have been trying to run [sudo lshw] but it asks [password for grace: [] ] So when I try to type my password, it ...
5
votes
5answers
8k views

How do I fix a “E: The method driver /usr/lib/apt/methods/http could not be found.” error?

I tried updating my packages from the terminal and this is what I got: $ sudo apt-get update E: The method driver /usr/lib/apt/methods/http could not be found. E: The method driver ...
1
vote
2answers
177 views

Why the need for sudo when I have only one account on machine? [duplicate]

Possible Duplicate: Why is it bad to run as root? I am bit confused about the need for sudo when I have a single user account set up on my machine. At install time I tried to call the name ...
1
vote
0answers
57 views

What's the best way to resolve “read permission” error when including /etc in backup? [duplicate]

Possible Duplicate: How do I open Deja Dup as root? Running Ubuntu 12.04 and using the built in Backup utility (Deja-dup) to back up /home and /etc every night. Some files in /etc fail ...
7
votes
6answers
8k views

How can I run an application with a GUI as super user from a normal user session?

I defined 2 users: one with admin privilege (lets call it admin) with sudo right. a 2nd one without any privilege (lets call it normaluser) and I configure the autologin on this 2nd user normaluser. ...
-1
votes
0answers
42 views

Booting problem with Ubuntu and Windows [duplicate]

Possible Duplicate: I Installed Ubuntu many times, but it's not working, there is no option to boot Ubuntu I would like to keep Windows..... What command should I use? sudo grab_install ...
0
votes
2answers
613 views

Why USB sticks automatically mounted only under root?

I've just installed Ubuntu 12.04 and updated all the packages. If I connect a USB stick to the PC it is not mounted automatically, if I run, say, mount -t vfat /dev/sdc1 /media/usb_stick I get ...
0
votes
1answer
825 views

How do I get the launch menus in kde to use kdeusdo?

I am using kde 4.4.5. When I try to run an application that needs root, I am asked for root password. In gnome I am asked for my password. Gnome used gksudo, gksu-properties is configured to use sudo ...
5
votes
1answer
8k views

difference between gksudo and sudo? [duplicate]

Possible Duplicate: What is the difference between “gksudo nautilus” and “sudo nautilus”? I have tiny script that I want it to run on start-up, but it needs sudo ...
1
vote
3answers
1k views

I cannot start graphical apps as root

I used to be able to do so, but something as simple as this fails now: gksudo gedit and this also fails: sudo gedit I receive the error: Cannot open display. I haved checked this: ...
0
votes
1answer
744 views

Run as group fails (sudo -g)

I would like to run a command with temporary group membership but it seems that I don't have permission to do that. As an example, if I run sudo -g internet ls, I get the message Sorry, user ...
0
votes
2answers
488 views

No permission to delete file, no space to have permission

My computer is nearly deadlocked. I have dedicated 200gig to Ubuntu (11.10) and lately it has decided to tell me that there is 0bytes of space left. This is causing all sorts of problems. First of ...