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

No command '“alias' found

Recently, Ubuntu stopped detecting my android device when I plugged it in with USB, so I was looking to fix the problem. In the process, I found this thread and I followed the steps on it. Only on the ...
0
votes
1answer
35 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
0
votes
0answers
44 views

I don't want other administrator to change my password [duplicate]

I have one administrator account in my system which named as "admin". One more admin account called "test". I don't want test account to reset "admin" account and root account password in my system. ...
2
votes
1answer
174 views

Block a command from sudo user

I don't need an administrator to change my root password. I don't want any sudo user to execute this command: sudo passwd $root I have tried it in the sudoers file using the following command: ...
2
votes
1answer
125 views

How to run backintime as a user

To allow users to run backintime. I am usually running backintime-kde on ubuntu in the following way: sudo su ssh-agent bash backintime-kde4 --config /root/.config/backintime/config --profile-id 1 ...
0
votes
2answers
300 views

How do I enter my sudo password? [duplicate]

I know my sudo password but terminal not to permit me to enter any keyword into
1
vote
1answer
44 views

creating power group

I want to create a group that can run some privileged commands but not all. For example, a power user can access the home files (from one user to another), but it shouldn't be allowed to run apt-get ...
0
votes
0answers
15 views

Password restriction is not working

I have two administrator accounts "magesh" and "test". I don't want "test" user to change my password in the UI. I have restricted it in terminal by giving the following commands in /etc/sudoers ...
-3
votes
1answer
43 views

How can I disable password on termina? [duplicate]

I am trying to install a software through terminal. It asks for my password and i have given the correct password but still it says wrong password. Then i removed all kind off password from my login ...
2
votes
2answers
73 views

can't run sudo from terminal

I'm having an issue where I can't even run sudo from the command line, like for example I need to see or edit a file that required the use of sudo with nano or some other sudo nano /path/to/file But ...
2
votes
1answer
52 views

How can I identify the program that has written information to a log file?

I recently got a message that something had failed to sudo on my Ubuntu laptop. At the time, I don't believe I was running anything that would need sudo. The messages that appeared in ...
0
votes
0answers
22 views

Can't start sublime with gksu [duplicate]

After typing gksu subl or gksudo subl, it asked for my password. But after that, nothing happened. Do note that, with sudo. It works. Why is that and how to fix this?
0
votes
1answer
248 views

I can't add myself(default user) in sudo group in ubuntu [duplicate]

I accidentally changed my primary group using the following command. sudo usermod -g localgroup shantanu #shantanu is my username I interrupted this process as soon as I realize what is happening. ...
2
votes
3answers
137 views

Completely Messed up sudoers file and su Operations

I am in a really bad condition right now.I am jotting down the steps I did to get myself into this situation. My objective was to disable sudo on my machine. I am running Amazon Ec2 Ubuntu 12.04 I ...
0
votes
2answers
47 views

Can't sudo after removing password from administrator account

I'm using Ubuntu 13.10 64bit. In the "System Settings"->"User Accounts" I chose the "Login without a password". This was my only administrator account, so according to this answer, I encountered bug ...
0
votes
1answer
131 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
81 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
72 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
822 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
220 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
89 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
139 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
30 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
43 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
29 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
76 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
62 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
258 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
43 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
128 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
1answer
193 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
114 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
26 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
239 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
61 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
31 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
147 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
63 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
78 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
36 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
89 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
61 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
95 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
32 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
41 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
53 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
185 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 ...