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
484 views

Run Task Manager In Xubuntu as Superuser

I am trying to change the priority of a process in my system via Xubuntu's Task Manager by typing sudo taskmgr, but taskmgr isn't the name of the executable. What is the name of the executable program ...
0
votes
1answer
20 views

PROBLEM : when Update my system (in directory).

When I type sudo apt-get update in terminal that shows error like this E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory ...
2
votes
1answer
18 views

permission propagation when dumping text into file

If I do: sudo mysqldump --default-character-set=utf8 -u root -pwelcome1 mydb > dump.sql I get: -bash: dump.sql: Permission non accordée However if I sudo to su first, it works fine. It seems ...
0
votes
1answer
54 views

Starting mysql server problems

I am trying to get mysql (server?) to start. This is what I keep on getting: Rather than invoking init scripts through /etc/init.d, use service(8) utility, e.g. service mysql start THEN when I do ...
0
votes
1answer
85 views

Would like to use different passwords for initial login and sudo for encrypted home folder

I just encrypted my home directory using ecryptfs and the instructions from How to Encrypt Ubuntu Home Folder After Installation. In order to really benefit from the encryption, however, I needed to ...
1
vote
2answers
193 views

Run program as root without using sudo

Can someone help me to run a ".run" on Ubuntu 12.04 LTS. My problem is I want to execute this program as super-user, but I don't want to use sudo to run it. I just want to run with ...
0
votes
1answer
32 views

How can I add an account to the sudo list? [duplicate]

I tried using this command in the terminal:sudo adduser liam sylvester sudo but all it says is "Only one or two names allowed." My version is 12.04. Does anyone have a solution?
0
votes
1answer
2k 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 ...
-1
votes
1answer
135 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
70 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
135 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
473 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
217 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
11 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
55 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
67 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
85 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
44 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
254 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
75 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
22 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
47 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 ...
0
votes
2answers
210 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
117 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
7 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
121 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
33 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
233 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
52 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
21 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!
4
votes
4answers
3k 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
73 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
75 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
81 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
44 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
93 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
276 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
81 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
90 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 ...
11
votes
2answers
4k 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
157 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
571 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
105 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
42 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
117 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
25 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
59 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
395 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 ...