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

Can't get nautilus to go sudo with gksu [duplicate]

I was recently reading some linux articles and stumbled on a faster way to do sudo tasks the gui way by installing a package called gksu-nautilus which allows me perform tasks with root permissions ...
0
votes
2answers
279 views

gedit problem when open by terminal

when I open terminal and run the command sudo gedit first.cpp it shows this error in terminal: (gedit:24589): IBUS-WARNING **: The owner of /home/bonny/.config/ibus/bus is not root! (gedit:24589): ...
0
votes
0answers
6 views

Delete files permanently [duplicate]

I would like to know how to permanently delete files so they cannot be recovered. I appreciate your help.
0
votes
1answer
109 views

Is there any way to change the "Invalid password, please try again' text?

I wanted to change the "Invalid password, please try again' text to "PERMISSION DENIED... and... YOU DIDN'T SAY THE MAGIC WORD!" Is this even possible?
4
votes
1answer
2k views

sudo: unable to stat /etc/sudoers: No such file or directory - File Exists

I am one of a few people managing a gaming server. The Server is currently running Ubuntu 14.04, which was installed just 3 weeks ago. Everything was running fine until a few days ago, we've had a ...
2
votes
1answer
458 views

Permission denied error after SSH login

I am having Permission denied errors after logging with non root user (which has permissions to do "sudo -i" command). I get these errors: -bash: /bin/uname: Permission denied -bash: [: =: unary ...
1
vote
2answers
127 views

Specify password for sudo in script

I am making a script that will update my system (and do some other things, but that doesn't matter). I want the script to run sudo apt-get update and sudo apt-get dist-upgrade --yes automatically. I ...
0
votes
0answers
24 views

the command sudo apt-get update doesn't work [duplicate]

I am trying to install wine, but something always goes wrong and it tells me to run that command to resolve some problems. I try to run it and I get this "The method driver /usr/lib/apt/methods/https ...
0
votes
2answers
367 views

How to get back deleted data using sudo rm -rf [duplicate]

I have deleted folder using sudo rm -rf. How to recover back? Im not able to find it in trash folder
0
votes
0answers
46 views

Graphical pkexec require username and password

I am wondering if there is a way to have the graphical authentication part of pkexec ask for a username as well as a password instead of just a password. The computer I am trying to get set up is on ...
1
vote
1answer
65 views

Non-sudo wifi deactivation

I have ASUS N76VB laptop. I am affected by this bug in asus_nb_wmi driver, so I can't use Fn-F2 key combination to toggle wifi. The guy from the thread about bug workaround uses rfkill command to ...
0
votes
0answers
73 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
116 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
166 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
610 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
288 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
350 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
350 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
366 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
226 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
37 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
809 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
99 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
115 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
184 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
84 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
122 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
42 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
65 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
202 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
28 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
76 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
141 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
370 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
48 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
203 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
113 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
364 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
589 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
428 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
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 ...