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

I don't know what to do can some one help me? [duplicate]

it like this... >>> /etc/sudoers: syntax error near line 23 <<< >>> /etc/sudoers: syntax error near line 25 <<< sudo: parse error in /etc/sudoers near line 23 ...
0
votes
0answers
25 views

I can't get into the sudoers listings [duplicate]

I try to type a command, to get Pinta (because GIMP isn't here for some odd reason) (Command is sudo add-apt-repository ppa:pinta-maintainers/pinta-stable/ubuntu), and it says asbell is ...
0
votes
1answer
218 views

script shortcut to open two files in gedit as sudo

I want to double click a file on my desktop, and have two files be opened in gedit as sudo. Whenever I'm making a new website, I need to open /etc/hosts /etc/apache2/sites-enabled/000-default.conf ...
2
votes
2answers
284 views

How to get GUI sudo password prompt without command line?

Currently, for all my commands that require root access, I have to type them out on a command line. I would like for the GUI to prompt me to key in my password, when sudo is required, instead of ...
2
votes
2answers
83 views

How can I use sudo after locking my password?

I was reading about passwordless authentication with ssh. So I made a key and published it to my Ubuntu server, and it worked well. Then decided to lock my password with passwd -l lucas, and I was ...
1
vote
2answers
135 views

Auto-starting a GUI application that requires sudo

Question: I need to auto-start a GUI application that requires sudo. I know I need to edit the sudoers file with: sudo visudo However, I don't know what to write in the file. What I already ...
0
votes
1answer
43 views

Lost the root privilege after try to add the user to a group

My user lost root privilege after try to add the user to a group. It's looks like the "usermod xxxx --groups ..." change the from the root group to the new one, it's a mistake but the thing is my user ...
0
votes
1answer
1k views

Why can't I type my password after using a sudo command? [duplicate]

I am running Ubuntu 14.04 LTS. When I go to use a sudo command, it asks for my password. When I go to type my password, it doesn't let me type a password. If anyone could possibly help, I would ...
0
votes
1answer
235 views

Must execute “sudo su” and then do apt-get update/upgrade/install, prefacing with sudo doesn't work [duplicate]

In order to get the apt-get update/upgrade/install commands to work, I have added proxy information to my /etc/environment file. For example: http_proxy="http://proxy-chain.acmewidgets.com:8080/" ...
1
vote
0answers
66 views

ubuntu 14.04 sudo issue [closed]

I have just installed 14.04 on my computer, there's nothing in that PC then OS and default packages and I'm the only user on machine. When I try to use sudo (to install some programs) I can't login ...
0
votes
1answer
28 views

wifi trouble shooting

I'm quite new to Linux. I am currently using Ubuntu on my HP Celeron laptop. I've been having trouble with my wifi on my laptop. I've tried pressing the button to activate my wifi but it doesn't seem ...
0
votes
2answers
193 views

sudo password for terminal [duplicate]

I'm quite new to Linux. I am currently using Ubuntu on my HP Celeron laptop. I've been having trouble with my wifi on my laptop. I've tried pressing the button to activate my wifi but it doesn't ...
1
vote
1answer
63 views

How to make sudo use a separate password?

Using Ubuntu 14.04, I have 2 accounts: Account A (first one set up) with Password 1 Account B (second set up) with Password 2, when updating software in Account B, I use Password 1 to authenticate. ...
0
votes
1answer
65 views

How does sudo!! work on Ubuntu

I love the idea behind the command: sudo!! but it doesn't really work on ubuntu (14.04 and earlier). When I type apt-get install htop It will obviously tells me to run the command as super ...
0
votes
1answer
93 views

Peerguardian Error

I installed PeerGuardian (thanks to a lot of help) and I get an Error massage saying : Could not use either kdesu(do) or gksu(do) to execute the command requested. You can set the path of the one you ...
-1
votes
1answer
75 views

Can't login as root [duplicate]

My user is removed from the sudoers file. I don't how it got removed because i only have access to my machine. I tried accessing the sudoers file but it mentions my username and asks the password for ...
1
vote
1answer
62 views

/etc/sudoers file problem understanding

According to the documentation, modifications of this file may enables local users to execute sudo commands on remote machines: user1 192.168.1.14=(user2:group1) ALL According to what I read, ...
1
vote
0answers
223 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
1
vote
1answer
81 views

Ubuntu no longer prompts for root privilege (but doesn't give it either)

So on 14.04 LTS I was playing around with some settings to solve another problem, and somehow managed to screw things up and now Ubuntu no longer asks for root privileges before trying to perform ...
1
vote
1answer
54 views

Block a command [duplicate]

I don't want any admin users in my system to execute the following command other than root. "sudo cp /etc/sudoers " Is it possible to block it for admin users only? I have tried lot but didn't get ...
0
votes
0answers
28 views

Get Access Problem as admin user

I want to access "sudoers" file and also access "su -" but I fail and get following error please check terminal output that I have tried. I am m-usman(admin) but not allow to edit or access ? :( ...
0
votes
0answers
27 views

After trying to fix sound “Unable to correct problems” error [duplicate]

I have been trying to get sound working on 14.04. It looks like now I've done something even worse, after following: http://ubuntuforums.org/showthread.php?t=1316634 I tried to do the following ...
1
vote
1answer
93 views

uTorrent server only working with 'sudo -i' option

Apparently it's not a working/not working issue. I have setup uTorrent server in my Xubuntu 14.04 following these instructions. How do I install utorrent on ubuntu 14.04 other instructions seem ...
0
votes
1answer
87 views

block certain dangerous commands?

In my High school there are few computer having Ubuntu 14.04 installed and many students know the Root password, how can I block/disable certain dangerous commands like :- rm -rf / rm -rf * ...
1
vote
1answer
39 views

How do I edit a system file when I am root user but I receive “you are not in the sudoers file”?

I am using Ubuntu 12.04(LTS) 64 bit. I have edited /etc/group and added my username erfan in front of vboxusers as following: root:x:0: daemon:x:1: bin:x:2: . . . erfan:x:1000: sambashare:x:124: ...
2
votes
1answer
80 views

Can not type \, | and ~ on Ubuntu inside Virtualbox

I have installed a Virtual Box Ubuntu 14.04. I run into two very basic problems: Somehow I cannot type \ | ~ characters in terminal or textfile. It is a clean and fresh install under Virtual Box. ...
0
votes
1answer
664 views

Authentication Failure while accessing super-user privilege

I get the root privilege when I type sudo. But when su asks for the Password, which I type in, the terminal says su: Authentication Failure
0
votes
3answers
142 views

sudo -s works but su does not in ubuntu?

I have Linux Virtual machine (ubuntu 12.04) installed on my Mac OS. On my terminal, user@192.78.0.1:~$ su password: su : Authentication failure user@192.78.0.1:~$ ls -lth /bin/su -rwsr-sr-x 1 root ...
0
votes
1answer
314 views

Unable to do su or sudo after upgrade from 13 to 14

I have upgraded from 13 to 14, and in the upgrade process a lot of errors occurred. Now I can't access root(via su command) or execute something like sudo apt-get install something. NOTE: This is ...
1
vote
1answer
63 views

echo to /etc/sudoers causing pasrse error

Using fabric if I echo to sudoers file for second time the file got corrupted works fine for first echo. What could be the reason? First echo: sudo('echo "django ALL=(ALL:ALL) ALL" | sudo tee -a ...
2
votes
0answers
1k views

Allow chown command to www-data user

Is there a way to allow chown command to be run by www-data but limiting it in a way that the files owner can be changed only to uids greator than that of www-data user? I already researched a lot ...
0
votes
2answers
163 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
131 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
74 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
85 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
111 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
112 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
27 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
92 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 ...
2
votes
2answers
3k 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
151 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
40 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
99 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
50 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
38 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
297 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
55 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 ...