Tagged Questions

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
2answers
148 views

What is the root user

If you use sudo su - or sudo -s you will get the full root certification "likewise a root user ". Is this user an official user or is it from canonical? ~$ sudo su - [sudo] password for username: ...
-1
votes
1answer
106 views

How to make everything run as root in ubuntu? [duplicate]

I have setup a virtual machine for compiling software for linux which I develop on Windows. I setup to automount a windows folder, run compilation scripts and then just shutdown. The machine isn't ...
0
votes
1answer
71 views

Is there a better command to use than Sudo? [duplicate]

I used to hear you are supposed to use gksudo, but that is no longer installed by default. What should be used in its stead?
0
votes
0answers
78 views

Networks not working after 14.04 install

Installed 14.04 on a Dell Inspiron 1721 that is running Windows Vista Home parallel. The wired and wireless network works fine in Vista but in Ubuntu it doesn't detect any network connections. I am ...
0
votes
0answers
25 views

How to skip entering password for sudo i.e. prepare script with permissions? [duplicate]

For work and other situations as well I'm running all sorts of sudo commands. Thank god (and devs), they can be run from Unity Laucher :) . But as a lazy timesaver I want these commands permanently ...
2
votes
1answer
88 views

Bash script using `sudo` runs correctly from cli but not when clicked to run

I am trying to get a simple bash script to run when I click on it. It runs perfectly from the cli but starting motion with sudo fails to start. I have that script setup with sudoers already for ...
0
votes
1answer
97 views

start Ubuntu 14.04 with terminal

I have a system with a dual-boot of Windows 8.1 32-bit and Ubuntu 14.04 64-bit. Ubuntu usually works but after I became root with the command "sudo su" and rebooted my PC it had a Black screen after ...
1
vote
0answers
24 views

Why does sudo sometimes asks for a different sudo user?

i have all my boxes setup to authenticate against openldap. when i logon with the local user (localmin) and run a command like; sudo service smbd restart it sometimes asks for the password of ...
1
vote
1answer
81 views

Setting proxy in Ubuntu terminal - proxy having special characters

I am trying to set proxy for a ubuntu server 12.04. Our proxy user name contains in the format: CompanyName\UserName and Password like: $test I tried to set proxy like this: export ...
0
votes
2answers
942 views

Adding NOPASSWD in /etc/sudoers doesn't work

On 14.04 here. I SSHed into my machine, added the following line to /etc/sudoers: myuser ALL=NOPASSWD: ALL And then tried running: sudo mkdir /etc/blah ...and I'm being asked for my password. ...
0
votes
1answer
122 views

kdesudo does not work in Kubuntu 14.04

I recently installed Kubuntu 14.04, after which kdesudo seems to work only half the time. For example: $ kdesudo systemsettings kdesudo(29361) KDESu::KDESuPrivate::KCookie::getXCookie: No X ...
1
vote
1answer
34 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
76 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
46 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
37 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
16 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 ...
6
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 ...
1
vote
0answers
253 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
52 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
77 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
38 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
261 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
157 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
308 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
54 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
51 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
81 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
104 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
347 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
176 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
55 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
178 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
125 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
87 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
1k 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
306 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
98 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
203 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
32 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
51 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
42 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
88 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
77 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
364 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 ...