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
vote
2answers
633 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 ...
26
votes
3answers
42k 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: ...
40
votes
4answers
208k 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
88 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
2answers
6k 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
124 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
3k 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 ...
6
votes
1answer
3k 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
420 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 ...
8
votes
5answers
18k 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
279 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
62 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 ...
10
votes
7answers
20k 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 ...
-1
votes
0answers
43 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
778 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
1k 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 ...
12
votes
1answer
22k 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
2k 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
1k 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
565 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 ...
1
vote
0answers
37 views

How can I add my user to the sudo list? [duplicate]

Possible Duplicate: How do I add myself back as a sudo user? I have just installed Ubuntu 12.04, Now I am using standard user, but I want to change my user to admin when I got the following ...
69
votes
1answer
83k views

How do I run specific sudo commands without a password?

On one particular machine I often need to run sudo commands every now n then. I am fine with entering password on sudo in most of the cases. However there are three sudo commands I want to run ...
3
votes
1answer
51 views

Can't see anything I type except on internet, can't download anything, can't even open software center.

If I do anything with sudo terminal says: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. This all started after i canceled the 11 upgrade during ...
3
votes
1answer
782 views

How do I allow a standard user to update the kernel modules for VMware?

I've set up VMWare Player for my wife. Every once in a while (notably after a kernel update), the VMWare Player needs to be compiled into the kernel. My spouse does not have su- activated (if anybody ...
5
votes
1answer
3k views

Authentication required to Mount a Device

Today I came across a very strange message when today i double click the drive WHICH HAS NTFS FORMAT it give me this message THAT AUTHENTICATION IS REQUIRED TO MOUNT A DEVICE I know with root user ...
1
vote
4answers
379 views

Why does nothing work after I randomly changed some file permissions?

Ok so last night i was trying to set permissions to some folders in my File System, since apparently im not an admin on my own computer. And now everything got messed up today and i don't know what to ...
4
votes
2answers
2k views

Why does Software Centre ask for root password when the default is for root to be disabled with no password set?

This seems odd to me. I can't install software using the "friendly" GUI tool unless I input the root password but by default, my Ubuntu 12.04 has root disabled with no password set. Why doesn't ...
71
votes
4answers
92k views

How do I sudo a command in a script without being asked for a password?

I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time: os.system('sudo sh -c "echo date \'+%s\' -d \'+ \ ...
1
vote
1answer
550 views

I just recursively chmod'd everything under / to 750. Any tips?

I won't be the first and I won't be the last, I suppose. While playing around with the find command, I made a whoops and it would appear that instead of changing the permissions of the ~/web directory ...
3
votes
0answers
882 views

Run a script from Django view as root without asking for password [closed]

I need to run a script (text.sh) that needs sudo, without inputting password, for example: sudo apt-get update >> /home/derp/test.txt I have modified my sudoers file like this: # This file ...
1
vote
1answer
942 views

Sudo user without the permission to edit sudoers

How can I add an user to sudoers list with all privileges, but that user should not be able to edit the sudoers file ?
8
votes
3answers
19k views

No password prompt at sudo command

Whenever I issue command sudo apt-get install ** it does not ask for password, not in my admin user too. How to make it prompt for password? My sudoer : ubuntu:~$ sudo cat /etc/sudoers # # This ...
3
votes
2answers
4k views

Run Bash Script as Root

Is there some way I can run a Bash script as root without being prompted for a password every time? I'm attempting to automate the process of starting my LAMPP install, which requires me running a ...
1
vote
2answers
5k views

Passwordless su in a Bash script?

I've run into a dilemma while migrating a Hadoop installation from Oracle Enterprise Linux to Ubuntu. The prior developer put the following command into rc.local within OEL: su reporter -c "cd ...
2
votes
2answers
6k views

no sudo permissions to /etc/hostname

When I try to edit my /etc/hostname file, using sudo nano /etc/hostname (or any other editor) I get the following: Error writing /etc/hostname: Permission denied I then tried: sudo chmod u+w ...
5
votes
3answers
20k views

Password not working for sudo (“Authentication failure”)

Before I mention anything further, DO NOT give me a response saying that terminal won't show password input. I'm AWARE of that. I'm typing my user password in (not a capslock issue), and for some ...
2
votes
2answers
2k views

Cannot use sudo from live CD

I had to reinstall windows. Unfortunately, this means that grub isn't working. Booted from live CD, opened terminal and typed: sudo update-grub But got the message returned sudo: can't stat ...
1
vote
2answers
526 views

Installing ZFS changed my sudoers file

Following the wiki's advice, I installed ubuntu-zfs. However, once everything installed correctly, and I tried installing another application via apt-get, I get a weird issue with my sudoers file: ...
2
votes
1answer
2k views

accidently blocked access to sudoers.d whilst trying to change ushare config

Basically was trying to change the ushare config and needed permissions for some reason so, I changed with sudo -i and in the process did somthing and now I can't access superuser to change any of the ...
1
vote
3answers
296 views

Can I automate updating/upgrading with sudo in this way?

Please consider this code: alias fast='echo "password" | sudo -S apt-get update && sudo -S apt-get upgrade' I have not yet had a problem using it but is it possible that if the first step, ...
19
votes
3answers
58k views

My main username is not in the sudoers file

I was trying to install some software/edit files with my main username(not root) But I got this error [X] is not in the sudoers file. This incident will be reported. I tried to edit the /etc/sudoers ...
1
vote
2answers
3k views

I changed my account from Administrator to Standard. How can I reverse this?

I'll begin by telling you that I am new to Ubuntu and I am using Ubuntu 11.10. My problem is that I changed my account from administrator to standard. To be clear, I am the only user in the system. ...
0
votes
2answers
2k views

Cannot turn off password [duplicate]

Possible Duplicate: Why does Ubuntu force users to create a password upon installation? Cannot authenticate without a password It did not fix my problem. If I create an admin account ...
1
vote
2answers
5k views

run script as root without password [closed]

I want to run a script without prompt for password. I edited /etc/sudoers file and I wrote several lines behind last one. This is my file: # Defaults env_reset # Host alias specification # User ...
2
votes
3answers
15k views

Cannot authenticate without a password

The problem can be reproduced as follows: When I remove the password of an administrator account, "Log In without Password", I cannot use that account to authenticate. When I do something that ...
2
votes
0answers
40 views

How to eliminate guest session Ubuntu 12.04 [duplicate]

Possible Duplicate: How do I disable the guest session? Hello everyone I have a problem with the guest session ... I turned on inadvertently and that started the problems! How can I ...
9
votes
2answers
29k views

sudo apt-get remove does not remove config files

I'm new to Linux/Ubuntu - and I'm wondering if the behaviour I'm seeing is as designed. I have installed vsftpd: sudo apt-get install vsftpd Then I remove: sudo apt-get remove vsftpd However, ...
53
votes
4answers
100k views

Execute sudo without Password?

Inspired by this question.... I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was ...
4
votes
2answers
5k views

Why does sudo not add root's PATH with Ubuntu 12.04?

I've recently upgraded my server to Ubuntu Server 12.04. Previously it was running 11.04. Ever since then I've been having trouble carrying out root user commands through sudo. An example of this ...
2
votes
1answer
95 views

How do I replace the following missing files? [duplicate]

Possible Duplicate: How do I figure out what package something is in without resorting to Google? I am getting the following errors with software center file does not exist: ...