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)

0
votes
1answer
3k views

sudo: unable to stat /etc/sudoers.d/README: No such file or directory

Whenever i use sudo command i get this message: sudo: unable to stat /etc/sudoers.d/README: No such file or directory i ran into this trouble when i was strugling with chmod using which i changed ...
-2
votes
1answer
176 views

execute script with sudo after login [duplicate]

i need to execute the following commands AFTER login. sudo hdparm -y /dev/disk/by-uuid/443AFBAD7FE50945 sudo hdparm -y /dev/disk/by-uuid/7ABB49654B799D40 (trying to edit rc.local does not work ...
0
votes
1answer
91 views

Setup SSH keys to login as super user

I have a random question. I am new to SysAdmin side, so not sure if I am doing it right way or not. We have a sudo user setup called wladmin an host1. I login to host 1 as myself, then do following ...
0
votes
4answers
269 views

Error installing ubuntu-restricted-extras

Ubuntu said I needed to install plugins using the following command in terminal: sudo apt-get install ubuntu-restricted-extras But then I got this error: Reading package lists....Done Building ...
0
votes
2answers
550 views

sudo apt-get not working [duplicate]

I just reinstalled Ubuntu 14.04. Whenever I try to install something using sudo apt-get install it says " has no installation candidate". What do I do?
0
votes
3answers
349 views

Permission denied error while creating file by using script file

I have created a script file called black_list.sh. #!/bin/bash default_card=`head -1 /proc/asound/modules` echo $default_card if [ ! -e /etc/modprobe.d/sound.blacklist.conf ] && [[ ...
0
votes
0answers
13 views

How to gain root access to UEC image?

When openstack creates an instance from a UEC image (using precise amd64), the SSH public key is successfully injected via cloud-init and I'm able to ssh into the instance via the ubuntu account, but ...
0
votes
0answers
58 views

Home folder gone, unable to launch GUI, unable to use root from command line

I have upgraded to 14.04 but on reboot I was unable to login to my account, it flashed some code for a second then returned to the login prompt. I can now login but it takes me to a completely blank ...
0
votes
1answer
91 views

What is the difference between sudo X and running X as root?

My question is asking regarding a specific observation that I would like to understand. I just tried to install the package rJava in R and failed even though I prefaced the installation as suggested ...
1
vote
1answer
121 views

Two python distributions, sudo picking the wrong one

I'm back to Linux after an over 10 year abstinence (fool me thinks). And a little rusty in the sys admin department. I'm faced with an issue with my python distribution. I'm using Python 2.7, but ...
0
votes
1answer
47 views

Ubuntu sudo su and server su clarification

I have a question about root. when i want to change to root in ubuntu have to type: sudo su - i am not allowed to type: su and su - root Howerver it works the other way around on my server, ...
4
votes
1answer
325 views

Why does the terminal not hold my root password for sudo? [duplicate]

I stopped using Ubuntu for a while (since 12.10) and recently came back to it. From what I remember, it used to only ask for the root password once for a terminal session (for sudo commands). Now it ...
0
votes
1answer
97 views

What does the 'sudo -s' command do, and how is it used in this example?

I have the following doubt. In a tutorial related to a software installation that I am following say that I have to execute the following commands (I am doing it into an ssh shell, so this list of ...
2
votes
1answer
25 views

Identify X libs during installation from source without sudo

I am trying to install a program (HTK) from source, but after ./configure (which doesn't give errors), make all complains that /usr/bin/ld: cannot find -lX11. This is a well-known problem which ...
1
vote
1answer
55 views

Security risk for making the sudo password timeout infinite?

I recently changed my sudo password timeout (the amount of time that passes before sudo asks you for your password again). It defaults to 15 minutes; I raised that to an hour with sudo visudo and ...
1
vote
2answers
361 views

Sudo gedit error

** (gedit:8315): CRITICAL **: file log.c: line 980: unexpected error: Error calling StartServiceByName for org.gnome.zeitgeist.Engine: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process ...
1
vote
1answer
136 views

what is the meaning of ax in ps ax

I know when you type sudo ps ax, that list all of the running process on the system. But want to know what is ax? what ax stand for? Is that abbreviation ?
0
votes
0answers
8 views

apt-get update error - binary-i386, binary-amd64 [duplicate]

When I run: sudo apt-get update It shows me the following error: W: Failed to fetch http://ppa.launchpad.net/directhex/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found W: ...
0
votes
1answer
142 views

Sudo won't accept my password even with Caps Lock off and the right password

First, I just want to say that I did check for caps lock and I know for a fact that it was the correct password and everything was fully correct. I even entered the sudo command a second time and ...
0
votes
0answers
36 views

User has Sudo access locally but not remotly

I've got a ubuntu desktop installed as a vm on win 2012 server. I've installed Likewise Active Directory to allow domain users to log into the machine with windows credentials. In my sudoers file I've ...
23
votes
8answers
6k views

Why it is sudo?

Why we use sudo to perform a terminal command as an administrative, why it isn't admin or something else, is there a reason for sudo?
0
votes
2answers
433 views

Cannot move a file using sudo mv

I want to move a downloaded folder (called 'Viva' to the themes folder under /usr/share/themes/. When I type: sudo mv /desktop/Viva /usr/share/themes it tells me it can't find the /desktop/Viva ...
0
votes
1answer
63 views

Accidently removed admin/sudo rights [duplicate]

I removed admin rights for the original admin account, in order to set up a new account with clear history. (Not 100% that was needed, I am still getting to grips with linux / Ubuntu 12.04 and I read ...
1
vote
0answers
22 views

I am In sudo group. Yet I can not do sudo commands [duplicate]

I have added myself to the sudo group. Yet when I try to perform A Sudo command, the error that says user not in sudoers group still pops up. Please help!
7
votes
4answers
8k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
2
votes
1answer
82 views

Why does it take a long time to open certain small text files in Vim?

Why does it take a long time to open certain config files accessible only to superuser in Vim? For example: $ sudo vim /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla It takes ...
0
votes
0answers
89 views

Errors were encountered while processing

When trying to do sudo apt-get install I'm getting this at the end: Processing triggers for python-central ... Errors were encountered while processing: logmein-client:i386 E: Sub-process ...
1
vote
1answer
110 views

Changes to sudoers have no effect. Following basic Ubuntu tutorial

I'm following along the Ubuntu sudoers tutorial. Here's my exact /etc/sudoers file (screenshot instead of code block because the formatting was getting messed up). Notice the lines at the bottom ...
0
votes
3answers
45 views

Append an output of a command to a txt file and place it in non writable directory?

If i try for example : directory A i don't have write permission on it sudo ls -l > /home/A/a.txt bash: /home/A/a.txt: Permission denied Then how can i do this trick , any Suggestion is ...
2
votes
1answer
134 views

Set default language for sudo

If I enter a command, the output is translated in the language I am using on the system. But if I use sudo to run a command with root privileges, the output is always in English. How can I change ...
0
votes
0answers
408 views

sudo not working after rsync - unable to open /etc/sudoers: Permission denied

Bought a new drive. Formatted to ext4, mounted the partition and ran sudo rsync -aAX --delete /* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} This moved all my ...
0
votes
1answer
127 views

Wrong Permission to /etc folder [duplicate]

I given wrong permission to the /etc folder wrongly chmod -R 777 /etc While i want to login as root it gives me error and gives the following output. How can i give the correct permission and fix ...
1
vote
1answer
133 views

Why I got 'unable to resolve host' when I do 'sudo'?

Whenever I do 'sudo' I get an error saying 'sudo: unable to resolve host HP-Pavilion'. I recently change my hostname to "HP-Pavilion". I wonder if I screw up something. $ sudo mkdir SourceCodePro ...
15
votes
2answers
8k views

warning message at command line `sudo`

Everytime I try to sudo something at the terminal, I get a warning message: alexandre@XPS-15Z $ sudo mount file.iso /mnt/ -o loop [sudo] password for alexandre: no talloc stackframe at ...
1
vote
2answers
262 views

Adding apt-get to sudoers file

I've grown tired of always invoking apt-get update and apt-get upgrade under sudo and typing my password, so I have added the following line to my /etc/sudoers file using visudo: <myusername> ...
4
votes
1answer
754 views

Can't login to my account, I know the password

I use Xubuntu 14.04 64 bit. I was watching a movie, the desktop froze (as usual duh!), I logged out using a terminal, and couldn't log in to my account after that, I'm using a terminal. I type my ...
1
vote
0answers
25 views

user is not in the sudoers file [duplicate]

This is my very first post so please bear (or bare???) with me please. So the problem I have is that when I use the "sudo" command on a terminal I get the error "myuser is not in the sudoers file". ...
2
votes
1answer
151 views

Are you a root? [duplicate]

If I want to install a program by: sudo apt-get install package_name I always get the error: E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory) E: Unable to ...
0
votes
1answer
50 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
1
vote
1answer
133 views

I need help logging in to root [duplicate]

Can somebody help me? I’m new to Ubuntu, and I need help elevating my privileges to root. All I’m getting is: darion@darion-HP-2000-Notebook-PC:~$ sudo -i nautilus [sudo] password for darion: ...
0
votes
0answers
26 views

How to avoide log out and log in while editing the sudoers file

I have edited the sudoers file by following the link. So far so good. It say "Log out, and then back in", for sure to see the effects. Is there a way to see the effects with out doing this: "Log ...
-1
votes
1answer
62 views

Where can I find the sudo commands to work on the ubuntu grub file?

I am a newbie and need help with the sudo command. I am trying to edit the grub.cfg file via the etc\default\grub. The problem is that I don't know the sudo commands, particulary, the permission ...
0
votes
0answers
423 views

sudoers entry does not work

I recently updated my ubuntu to 14.04. I have an script which calls just sudo hidd --search, that I start to connect my bluetooth mouse. Now I made an entry to /etc/sudoers like this: markus ...
0
votes
0answers
35 views

USB needs superuser

So I recently plugged in an USB and I don't know why it needs superuser now. When I go to nemo in sudo, It listed my old USB as usb1 and my new USB as Ducky Momo (It's name is Ducky Momo and it's a ...
0
votes
1answer
172 views

corrupted sudoers file, Ubuntu 12.04

My /etc/sudoers file is somehow corrupted and all the users who have sudo privileges are unable to execute ANY command with sudo prefix to the command ! sudo: parse error in /etc/sudoers.d/README ...
0
votes
2answers
199 views

bypass sudo for a group of commands

I need to bypass sudo for a group of commands for a certain user so the command is just executed without using the sudo
0
votes
2answers
86 views

What is sudo -i [duplicate]

What does this command? sudo -i? I'm not sure if I should have made a post with just this question, but since I'm a Linux newbie and I have a lot more questions and doubts, I decided to go ahead and ...
0
votes
1answer
89 views

Perl hangs for regular users, works with sudo

I recently installed Ubuntu 14.04 LTS and for some reason the perl command just hangs when a regular user calls it. However, if I use sudo with it, it will work perfectly. I'm thinking the perl ...
0
votes
0answers
174 views

Upgraded Server from 12.04 LTS to 14.04 LTS - lost sudoers

I am no longer able to control my server from the one user I have access to. When performing sudo commands, I am presented with the following error: USERNAMEHERE is not in the sudoers file. This ...
0
votes
1answer
53 views

Tomcat6 manager installation error

I am new to linux .I am trying to install Tomcat6 .I installed it successfully but for manager webapp html GUI I have changes my tomcat-users.xml file as /etc/tomcat6/tomcat-users.xml ...