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
1answer
717 views

sudo not asking for password of correct user

I have a new installation of 11.10. I have an admin user, and a standard user that doesn't have password with autologin. If I log in as the standard user, when I use sudo from command line, it asks ...
0
votes
2answers
5k views

sudo ./ : command not found

http://youtu.be/8oYTrf9jnGk for a video i made of it in action. N.B. - I have my nvidia .run file on my desktop - I double click it, and it appears to run but stops asking for sudo permissions. So ...
4
votes
2answers
913 views

Enter password only once for script making many sudo calls

I am writing a script to download build and install a bunch of packages. Building sometimes takes a while, and installing requires root priviledges: make; sudo make install What happens alot is that ...
1
vote
5answers
3k 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 ...
0
votes
1answer
667 views

Sudo As Other User and Brasero

I'm protecting application spaces by creating a new account for each application instance launched. I create a disabled-non-admin account (no passwd set). Then, I do this: xhost ...
0
votes
2answers
4k views

su: Authentication failure (Ignored)

Keeping in mind this was working before: When I try to login as : su jira1 I get error: su: Authentication failure (Ignored) more /etc/passwd returns: ...
4
votes
2answers
285 views

Is it possible to change a program's privileges while running?

Is it possible to start a program normally, and then later give it root or some other level of permission without restarting it?
0
votes
1answer
436 views

How can I run PHP scripts without prefixing my scripts with sudo?

I'd like to be able to run PHP scripts without needing to use sudo in every command. My user is not root obviously. How can I accomplish this feat? I'm new to Linux, and I have a little knowledge ...
17
votes
7answers
6k views

Nothing shows up in the terminal when I type my password

When I'm about to install a program in the terminal it wants the password: [sudo] password for xxx: But when I want to type my password it happens nothing. What should I do?
3
votes
2answers
2k views

how can a bash file run without needing to enter sudo pass-phrase manually?

I write a bash file thus: #!/bin/bash echo 1000 |sudo tee /sys/class/backlight/intel_backlight/brightness (that changes the screen's brightness) I need it to run at startup, but because ...
0
votes
1answer
857 views

Need to use sudo -s for make command depending on Ubuntu version

We have a Makefile for compiling a network interface's driver. When calling the Makefile in an Ubuntu 9.04 installation, we need to call just 'make'. However, when calling the Makefile in an Ubuntu ...
1
vote
2answers
748 views

Added folders to PATH cannot be found using sudo [duplicate]

Possible Duplicate: Environment variables when run with 'sudo' I've added a new folder to my path, but when running the programs (in that folder) with "sudo" it does not work. When ...
1
vote
2answers
592 views

asked for sudo password, post login to bash shell

With 11.10 when any of my users with the bash shell login upon success they are asked to provide their sudo password e.g. Last login: Fri Jan 20 19:13:36 2012 from x.x.x.x [sudo] password for *user*: ...
3
votes
1answer
337 views

Changed permissions of / to user

I stupidly ran sudo chown -R carlos:carlos / and carlos is my user. This changed all files to be Carlos and I could not boot up again (because the root files were now owned by #1000) and I cant get ...
2
votes
2answers
1k views

Can't write /etc/sudoers from Ubuntu live CD

I messed up the /etc/sudoers file, now I need to restore it. Booted up the system with an Ubuntu Live CD, installed LVM and mounted the Volume. I'm root and I can't write to the sudoers file in my ...
0
votes
1answer
336 views

sudoers issue, worth format? [duplicate]

Possible Duplicate: How to modify a invalid /etc/sudoers file? It throws out anderror and not allowing me to edit again Hi guys I have meerkat and I must have messed sudoers. This is my ...
0
votes
1answer
612 views

Why is my new user being asked for a sudo password?

I'm running Ubuntu 11.10. I'm trying to setup a user that's essentially a clone of the permissions of the ubuntu user. This works but I'm not able to sudo with this new user without supplying a ...
2
votes
1answer
6k views

How to fix sudo: setreuid(ROOT_UID, user_uid): Operation not permitted error?

I am using LDAP authentication on my Ubuntu 11.10 server. I installed libpam-ldap, and configured things accordingly. It works great, except that I get this error every once in a while when I try to ...
7
votes
5answers
2k views

Change sudo timeout under fish

I want to change sudo timeout, so I edit sudoers via visudo (as adviced in many tutorials online) to the following form: Defaults env_reset , timestamp_timeout=20 root ALL=(ALL:ALL) ALL %admin ...
0
votes
1answer
892 views

How can I use vbetool as a non-root (mmap /dev/zero: Operation not permitted Failed to initialise LRMI (Linux Real-Mode Interface).)

I would like to be able to turn off my screen upon a keypress. I need vbetool to do that (xset dpms force off just blanks it, does not turn it off). However, vbetool needs root priviledges. So I put ...
6
votes
1answer
7k views

Cannot echo “hello” > x.txt even with sudo? [duplicate]

Possible Duplicate: sudo & redirect output I'm trying to create a file in /var/www, but even with sudo this fails: user@debVirtual:/var/www$ sudo echo "hello" > f.txt -bash: f.txt: ...
3
votes
2answers
2k views

Additional drivers: “You are not authorized to perform this action”

Anytime I do anything requiring root privileges I need to enter my password and it works. With only one exception: running "Additional drivers", which simply complains "You are not authorized to ...
3
votes
1answer
2k views

Any reason not to start openvpn as root? [closed]

I'm running openvpn (client) on a home ubuntu server. I currently create the connection with the command: sudo openvpn /path/to/config/file If I don't run it as root, I get an error that the TUN ...
2
votes
2answers
1k views

Installing RVM on 11.10

I have been trying to get RVM properly installed on my system for 10 hours. The problem is, that when ever I run the command to download the install script I get this: edu@edu-VirtualBox:~$ bash -s ...
7
votes
2answers
10k views

Root's .bashrc not executing on sudo -i

On one of my Ubuntu 11.10 servers, when I use sudo -i to become the root user, root's .bashrc is not being executed. On all other servers, whose relevant configurations are identical as far as I know, ...
25
votes
1answer
35k views

Why is sudoers NOPASSWD option not working?

I have a NOPASSWD line in /etc/sudoers (edited with visudo) gatoatigrado ALL=(ALL) NOPASSWD: /bin/set-slow-cpufreq However, the output is, gatoatigrado@coral:~> sudo -n /bin/set-slow-cpufreq ...
3
votes
2answers
2k views

How Do I Stop The Service Sudo?

I want to make it impossible for any root commands to be issued during a Live Boot session. I don't want anyone being able to sign in as root. Period! So, is it possible to stop the sudo service? ...
0
votes
1answer
1k views

how to download a package with all required dependencies?

I want download ghc6. But, when I type sudo apt-get install ghc6 sudo apt-get -f install ghc6 sudo apt-get install --reinstal ghc6 it gives same error: Reading package lists... Done ...
12
votes
2answers
9k views

How do I prevent PolicyKit from asking for a password?

For years, I've had the following in my sudoers file: scott ALL=NOPASSWD: ALL For those who don't know, this prevents sudo and friends (gksudo, etc.) from asking for a password. However, over the ...
1
vote
1answer
466 views

Log viewer cant open syslog after messing up groups

I was doing some VirtualBox stuff today and I had so add my user to vbox group, well I did it wrong and I removed myself from sudoers. I used the recovery console and fixed it with this command: ...
0
votes
1answer
920 views

Messed up visudo - can't edit the file anymore [duplicate]

Possible Duplicate: How to modify a invalid /etc/sudoers file? It throws error and not allowing to edit again I really did some very stupid stuff. I did a sudo visudo and wanted to add ...
0
votes
2answers
119 views

Help with installing sudo apts

Any time I use Alt+F2 to open command line and I type a command such as: sudo apt-get install clamav clamtk I click on it and it doesn't do anything. Am I not supposed to click on the icon that ...
2
votes
0answers
653 views

Banshee won't start unless run as sudo or -debug [closed]

I have no idea what is going on, I just made a fresh install of Ubuntu and then after a reboot Banshee won't start. I began to poke around the forums and then tried running it as sudo and with -debug, ...
0
votes
1answer
1k views

How can I run XBMC as another user?

It's a little bit complicated as other "how can I run" questions, firstly, because I use this script to run on second screen (TV) full size: 1 #! /bin/bash 2 # Launch XBMC in windowed mode, ...
0
votes
2answers
442 views

Linux set time from net at login

On my Ubuntu 10.04 box I (a user, not root) can issue sudo net time set and it works great. I'd prefer that the box get the net time on a more regular basis, or at least each time it gets logged ...
4
votes
4answers
5k views

'sudo' not found in Turnkey linux Ubuntu install

Just installed a turnkey linux ubuntu/apache/tomcat vm image. After some trouble getting the bridged network adapter installed on win7, I wanted to check network access to and from the vm. Verified ...
3
votes
2answers
451 views

If I make a script that requires root privileges, do I need to put sudo in the script too?

I'm working on an installer script for the latest ATI drivers (as they are not in repo) and was wondering if I need to include sudo in the script, because it will be needed for the install.
1
vote
1answer
1k views

Where will be my Grails default installation location?

I installed Grails using this command : sudo apt-get install grails-2.0 It installs and it works fine. Now where I can find my installation files? Since I'm newbie to Ubuntu I couldn't able to ...
2
votes
1answer
400 views

Problem accessing superuser with sudo

Through Virtualbox didn't allow me use USB because my account wasn't a vboxuser group, I've to run this command: $sudo usermod -G vboxusers brallan After I needed to access to superuser privileges ...
2
votes
2answers
2k views

sudo -i only allows one argument

Is this normal? > sudo -u misc -i "ls" note test tmp > sudo -u misc -i "ls ~" -bash: ls ~: command not found > sudo -u misc -i "ls ~" -bash: ls ~: command not found > sudo -u misc -i ...
2
votes
1answer
845 views

Is there a difference between using setuid()/setgid() within a program and invoking it with sudo -u xxx -g xxx?

Consider this python script, which invokes HandBrakeCLI, a program that attempts to read from the dvd drive: invoke.py #!/usr/bin/python import sys import os import subprocess as subp import ...
13
votes
4answers
220k views

How do I login as root?

I want to login as root, but when I enter sudo -s and enter password, this message is shown: "you are not in sudoers file", and when I enter su and enter password, this is shown: ...
2
votes
2answers
1k views

How to pass arguments in a script using gnome-terminal

As part of a script I have gnome-terminal -e "process involving another user" Once executed this line, I have to write in the terminal 3 times the password of this user. I wonder how can I automate ...
11
votes
1answer
6k views

Is it possible to give sudo access to only a particular command?

Background: I have a development machine with LAMP setup. Several developers would access the machine from time to time. Every time they make some change in a configuration file they will need to ...
0
votes
1answer
325 views

Executing adb from php

I am trying to run adb from PHP using: exec( 'adb devices', $output, $return_val ); but I get 126 error. I think the problem is that php is running as 'www-data' user and does not have permissions ...
5
votes
2answers
532 views

How does the shutdown button works without asking for password? [duplicate]

Possible Duplicate: How to shutdown/restart/suspend … without authentication or confirmation? If shutdown asks for password (and so does every program which has the option to turn ...
0
votes
3answers
2k views

Login as different user in Gnome if you are have root privileges

I want to login as a different user in Gnome and not to run a single program only, but I don't know the users password, I don't want to know it and I don't want to change it, but I'm sudoer. Is there ...
3
votes
1answer
451 views

Why does my machine suddenly not allow the “sudo” command?

I was working on my machine. I did some Clamav Virus definition updates, ran clamav and everything worked fine using sudo. Suddenly afterwards though, my machine started saying that sudo: no valid ...
3
votes
2answers
19k views

I cannot enter my password in the terminal - can't install packages [duplicate]

Possible Duplicate: Nothing shows up on the screen when I type my password I can open a terminal (Ctrl-Alt-T) I can copy or type in the following: sudo wget ...
1
vote
1answer
439 views

I can't do “sudo”

Let's describe it from the beginning: I was planning to re-enable the password requirement in LightDM for security reasons. But, since my PC's been sluggish these times, it FC'd the password setup ...