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)

1
vote
1answer
28 views

Re-disabling the root account

In ubuntu by default the su (root) password is not not set. I have set it by using the sudo passwd (see link). But I didn't like it. Can I go back to my original state.
2
votes
3answers
35 views

how to block a command from terminal?

I don't want any users in my machine to use a command in my machine other than root user. The command is given below. "sudo -E su" For security reasons
1
vote
1answer
26 views

Question about sudo fdisk -1

I've been trying to mount an external HDD to my ubuntu server (14.04) but when I try to use the sudo fdisk -1 function it tells me that its an invalid option, is there any way I can fix this? Or any ...
0
votes
0answers
31 views

Generally-accepted way of giving a user rwx permissions to /etc

I need a non-root user (say, myuser) to be able to have unbridled, recursive rwx access to /etc and anything underneath it. Hence if I execute, say: mkdir /etc/fizz I shouldn't receive any ...
0
votes
0answers
13 views

I modified sudoers. All users can not use sudo now. How should I fix this? [duplicate]

I was trying to save times to type password for sudo because one of my scripts had to be randomly repeated quite often. I googled some information about how to bypass typing password and applied to ...
5
votes
7answers
2k views

Is the command `sudo rm /Desktop/filename` safe?

Is this safe to use? sudo rm /Desktop/FILENAME The reason for wanting to use sudo is I can't see the file. I accidentally typed in sudo rm /Desktop/index.html. It didn't find it but could ...
0
votes
0answers
57 views

How to check if fstab file is correct without sudo?

I updated from saucy to trusy. After that, using sudo segfaulted: fkalter@London ~> sudo whoami [sudo] password for fkalter: YubiKey for `fkalter': [1] 16961 segmentation fault ...
1
vote
2answers
42 views

Shell scripting, [duplicate]

I made a simple update script. Now My question was is it possible to run it automatically by loggin in on the Ubuntu Desktop and automatically provide my password (sudo) for this so I don't have to do ...
0
votes
1answer
35 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
25 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
43 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. ...
1
vote
1answer
87 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
78 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
271 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
26 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
33 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
60 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
31 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
21 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
70 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
96 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
27 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
74 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
47 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
5 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
52 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?
3
votes
1answer
233 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
83 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
66 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
22 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
47 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
24 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
27 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
14 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
55 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
38 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
88 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
49 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
108 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
48 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
163 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
55 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
22 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
82 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
47 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
64 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. ...