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
0answers
82 views

Install glogg package with dpkg command and no root privileges

I'm trying to install a package called glogg without root privileges. I have successfully downloaded the .deb file (to $HOME/packages/glogg). But when I run dpkg -i --force-not-root ...
1
vote
2answers
120 views

Find and download a package without sudo using aptitude [duplicate]

I would like to install a bunch of packages (glogg, libprotobuf7, libleveldb1, libsnappy1, libhdf5-7) on an Ubuntu system on which I do not have root privileges. (I understand that this can be ...
0
votes
1answer
201 views

Global sudo session in ubuntu

Is is possible to keep the sudo session for sometimes? I mean when you open synaptic, each time you have to authenticate. In a single terminal, sudo session exits for a specific amount of time. You ...
3
votes
2answers
730 views

add alias to root

I need to execute a command for my system to search for new sd cards and to be able to execute it I need to me logged on as root. Simply using sudo with the command does not work. This is not a ...
1
vote
0answers
44 views

Strange issue using sudo

When I try to use sudo this is what happens chris@vaio:~$ sudo sudo: 424273033461091241000: invalid value except that doesn't do it justice: I have been having issues with the latest ...
0
votes
1answer
336 views

I don't have permission to access this device on iftop and need to be root to run NetHogs

I have two dilemma's here: One is, I tried using iftop but it said I don't have permission to capture on that device (socket: operation not permitted) I can use ifconfig just fine. Also, I installed ...
0
votes
2answers
403 views

setresuid operation not permitted when calling via php

I've got following Problem: my Apache and PHP script are running as user www-data. I want to call a script that can only be executed as root, so I added a new File to /etc/sudoers.d to allow this ...
2
votes
2answers
408 views

Why do I get `egrep: /etc/shadow: Permission denied` when running this awk command?

Does anyone know why this command: sudo awk -v LIMIT=50000 -F: '($3>=LIMIT) && ($3!=65534) {print $1}' /etc/passwd | tee - |egrep -f - /etc/shadow > ...
0
votes
0answers
28 views

Password for software updater on xubuntu-desktop [duplicate]

I installed xubuntu-desktop on an AWS instance of Ubuntu 14.04 sudo apt-get install xubuntu-desktop xfce4 firefox nano -y --force-yes I am logged in as ubuntu, I think this is the administrator and ...
3
votes
2answers
400 views

Sudo error, setuid [duplicate]

I'm using Ubuntu 14.04 and I run some command series on Terminal. But at one time I ran sudo chmod 777 /usr/bin/ -R And giving some permissions on this directory. After that, I'm continue my work, ...
2
votes
1answer
322 views

Sudo is also user login password - why? how to change?

When installing Ubuntu I can create a user with an encrypted folder, what I always do. Now after the installation the login password for this user is also the sudo password. Is that how it should be? ...
0
votes
0answers
40 views

GUI applications doesn't ask for sudo password

I have bought a VPS and installed Ubuntu 12.04 on it. However I needed a GUI, so I installed xubuntu-desktop packages and a vnc server. That part just works fine, I also created a user, and added it ...
0
votes
2answers
1k views

How to come out of root user?

I just gained root access following steps from the http://www.wikihow.com/Become-Root-in-Ubuntu. My prompt get changed from $ to # sign, indicating I have root access. Now I have come out or log out ...
1
vote
1answer
111 views

Turn off/sleep after script completion

I have a little script. It's ripped out of a Youtube tutorial, untested, ugly, and not very good. It's not done and not intended for public use. Here it is: #!/bin/bash sudo apt-get -y install git ...
1
vote
2answers
117 views

Execute commands with sudo as a root

I would like to execute the command gedit file.txt as a root with sudo e.g.: sudo gedit file.txt should ask me for a root password. Currently, typing sudo gedit file.txt results in: [sudo] ...
-1
votes
1answer
37 views

Small Modification turned into a huge problem - I think my system has been hacked [closed]

I'll try to keep this brief, but I set the permissions for /usr/bin/ to -R using chown. I later read when I couldn't seem to log in as su that this may have compromised my complete system security. ...
1
vote
3answers
212 views

How to enter a chroot without using sudo?

Is it possible to enter a chroot without using sudo? If so, how? I've tried googling, but all I get are results about crouton.
0
votes
2answers
86 views

Why does sudoers only allow me to set NOPASSWD for ALL?

I've been beating my head against the wall for about six hours on this one, so I figured I'd go ahead and finally ask here. Apologies in advance if I'm missing something obvious; I've been reading ...
0
votes
1answer
131 views

Failed to fetch [duplicate]

Am getting this error when am trying to update using T command sudo apt-get update && sudo apt-get upgrade Fetched 1,338 kB in 38s (34.9 kB/s) W: ...
0
votes
0answers
47 views

option `env_reset' does not take a value

This is a problem has bothered me for a long time. When I tried to set proxy for apt-get command, I found a manual in the net. It said that use visudo to edit sudoers file could set proxy for ...
1
vote
2answers
55 views

I can only execute calibre as root (with sudo). What should I do to be able to execute it without root privileges?

I have installed calibre, but now I can only execute it with sudo calibre What should I do to be able to execute it without root privileges, that is, without sudo? Another problem associated ...
0
votes
0answers
27 views

Why do I have to keep entering my password when using sudo? [duplicate]

When I use ec2, whenever I enter sudo I never have to enter a password. I have my own VM server now and I created a user using this command when I was a root: usermod -a -G sudo deploy So now when ...
1
vote
1answer
73 views

is there some way to make windows owned by root (sudo) look different from normal user ones?

I run sudo gedit but it looks exactly like another gedit I have open with normal user... Any way to make it look diferent? but I dont mean tweaking each application preferences like background ...
6
votes
1answer
203 views

How do I safely run a graphical application as a normal user while root?

We often talk about using gksu, sudo -i and pkexec to run things as root while a normal user but I'm facing the opposite problem today. The script I'm using is running as root. I need it to start a ...
0
votes
1answer
1k 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
24 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
32 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
83 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 ...
1
vote
1answer
154 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
451 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
51 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
4k 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
233 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
128 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
391 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
615 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
489 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
14 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
60 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
155 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
211 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
49 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
398 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
114 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
29 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
57 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
572 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
165 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
199 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 ...