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)

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
775 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
375 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
90k 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
542 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
875 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
938 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
522 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
295 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, ...
17
votes
3answers
57k 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
28k 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
96k 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: ...
0
votes
1answer
110 views

Can not put a animated background on ubuntu 10.10

I go to the terminal: (Applications -> Accessories -> Terminal), and typed the command sudo add-apt-repository ppa:ilap/lwp and I pressed the enter key, and in the Terminal window it said: Joe is not ...
0
votes
4answers
2k views

Keyboard shortcut to a sudo-script

How do I create a keyboard shortcut to a script that needs sudo privileges? I tried to create shortcuts via Ubuntu Keyboard Settings GUI to scripts "sh script.sh", "sudo sh script.sh" , but ...
1
vote
1answer
2k views

Installing gcc in Ubuntu 11.10

I want to install gcc on my computer. To do this, I ran the following command: sudo apt-get install build-essential As this runs, it connects (or tries to connect) to the server ...
0
votes
1answer
54 views

Why are many operations or commands in Ubuntu not allowed normally when you can just do the same thing by typing sudo?

What purpose does this server when bypassing is as easy as typing sudo? Forgive the naivety here but I am a rookie and I'm sure there has to be a good reason for this, and I'd like to know that.
3
votes
3answers
10k views

'sudo' not working after changing the permissions of '/usr' directory

Recently I had to change the folder permissions of /usr folder. Now the whole sudo is not working. If I try to update my system using this command: sudo apt-get update I get the following message: ...
4
votes
3answers
8k views

How do I run an executable file with a double click?

I'm trying to run an executable (testdisk) but double click doesn't work. The only way is to run: sudo ./testdisk from terminal. But I'd like to open executables with double click in future. How ...
5
votes
2answers
454 views

How to prevent users from installing non-free software?

Is it possible to disable installation of non-free or proprietary softwares and applications in Ubuntu?
1
vote
1answer
195 views

How to dial modem without sudo

I am using ixconn as modem manager because it has many more features than the default network manager. But it cannot be used without root privileges (i.e., sudo). How can I use ixconn to dial my ...
4
votes
1answer
6k views

sudo does not ask for password [duplicate]

Whenever I issue command sudo apt-get install foo it does not ask for password. is it because of user groups? How to make it prompt for password? Edit: My sudoers file apple@Ascension:~$ sudo cat ...
6
votes
1answer
5k views

Errors followed by command “Sudo nautilus”

I have opened Nautilus with root power to delete some items.When I typed Sudo nautilus,the particular window opened up,but some errors also came along with it as following: meego@meego-Notebook-PC:~$ ...
5
votes
1answer
9k views

how to shutdown a linux machine, including the root password, in 1 line?

How do you include the root password, say for shutting down an ubuntu machine? like, sudo shutdown now is it possible to include the password on this 1 line? like an extra parameter? reason for ...
0
votes
2answers
3k views

Allow “root” program to run without privileges

I've changed my ctrl-alt-l shortcut so instead of just locking the screen, the system goes into suspend. (for reference, the command is gksudo pm-suspend-hybrid) as you can see, the program needs to ...
7
votes
0answers
10k views

Can I run sudo without entering a password? [duplicate]

Possible Duplicate: How to run an application using sudo without a password? I like Ubuntu, but I hate entering a password every time when I run a command with sudo. Can I avoid it?
9
votes
7answers
8k 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 ...
5
votes
1answer
844 views

Error when trying to run an app with sudo or gksudo

I'm not sure what happened. A few days ago I installed some updates and now i get an error whenever I try to run sudo nautilus. If I run gksudo nautilus it hangs for a few seconds then does nothing. ...
0
votes
2answers
8k views

sudo in the Terminal seems not to accept password input [duplicate]

Possible Duplicate: Nothing shows up on the screen when I type my password I upgraded to Ubuntu 12.04 LTS and was trying to update software with sudo apt-get .... In the Terminal I am asked ...
1
vote
2answers
3k views

Why do i have to be root to run the command ifconfig?

I've recently switched from Ubuntu 10.04 LTS to 12.04 LTS, and one of the changes i have noticed is that when i try to run the command ifconfig (for example to view my own ip), i get the following ...
2
votes
2answers
15k views

I cannot enter my password when using sudo to install Sophos AV for Linux [duplicate]

I cannot type my password as shown below. After successfully unlocking root account in Ubuntu 12.04 LTS. saintmichael@ubuntu:~$ sudo usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] ...
5
votes
1answer
2k views

Changed owner of /usr/bin

I did it... I guess everyone does it sometime, but this was my first. I executed sudo chown -R /usr/bin and before I realized my mistake, it was too late... Now I can't access sudo because I receive ...
0
votes
2answers
162 views

Linux permission issue

I am using Ubuntu Linux and am new to Linux. When I try to try to edit some files it requires root privileges. Following command gives a permission error: echo "xyz" > abc.txt But using sudo ...
3
votes
2answers
1k views

how to restore boot folder?

No laughing! I just did sudo rm -vr /boot/*. Is there a way to restore the content? Just to clarify why I would do this: I have a SD-card with a boot-partition mounted at /media/boot that I wanted ...
15
votes
2answers
29k views

Setting the PATH so it applies to all users, including root/sudo

The instructions in How do I set PATH variables for all users on a server? work to set the PATH for all 'normal' users. However, if I do sudo -s and then printenv PATH the updated path is not shown. ...