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

cant edit anything on xampp as sudo user [on hold]

Im new to linux was an avid windows user until recently trying on an old system seing some major differences and converting, so I apologise if this question seems simple. Im running the latest ...
0
votes
0answers
17 views

NS2 Installation [on hold]

I want to install ns2 on ubuntu 12.10. how to install it? Someone suggest the following procedure to install ns2 on ubuntu 12.10: Type sudo apt-get update and hit Enter. Type your password and hit ...
1
vote
0answers
15 views

Ubuntu 14.04 - Jenkins User NOPASSWD configuration

I'm trying to make my jenkins user able to execute a script with www-data user so I've tried adding jenkins ALL=NOPASSWD:ALL at the end of my sudoers file but it didn't work, password was asked ...
0
votes
0answers
13 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
1
vote
1answer
31 views

How to get root permission inside qt program?

I run my QT app without sudo permission but during running phase of the app I need to install the .deb so I am running the command dpkg -i mydeb.deb with qprocess in QT or some other commands which ...
0
votes
1answer
31 views

Superuser 'permission denied'

I wish to run a script in the root directory. The script is /opt/poky/1.6/xx If I log in as a superuser in Ubuntu 14.04 using sudo -i and my own password, I can see this file using ls /opt/poky/1.6/. ...
0
votes
3answers
66 views

How to enable sudo passowrd?

I just installed Ubuntu 12.04 on a virtual machine in the Windows Azure Cluster. By default sudo is not requiring a password. I would like to force a password on all sudo commands. How do I go ...
0
votes
1answer
35 views

Errors while trying `apt-get update` [closed]

I'm new to ubuntu and I have limited experience with linux in general. I have been trying to get ROS hydro to work on my Ubuntu 13.04 according to this guide ...
4
votes
5answers
1k views

Should I use “sudo” before “make install”?

I am installing the latest FFmpeg from this guide: In some places it suggests performing make install without sudo, here is a single example of several: cd ~/ffmpeg_sources wget ...
4
votes
1answer
52 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
-1
votes
2answers
73 views

account blocked by changing the /etc/passwd : how to revert or gain access again

To get root access to my existing account in ubuntu i followed this post. But even after following the steps mentioned i wasn't able to create/modify file or directory without using the sudo keyword. ...
1
vote
0answers
25 views

Why does sudo prevent catching SIGTSTP (Ctrl+Z)?

This program is written to catch SIGTSTP (Ctrl+Z) and bypass its normal effect, printing a message and returning to its normal operation instead of allowing its process to be suspended: ...
-1
votes
1answer
55 views

sudo chmod 755 /dev/sda7 -R simply returns a new command prompt line?

I am logged into my computer through the guest account, because i am unable to login through the master/admin. account via user interface. (Simply a blank, blue screen appears upon login.) So i'm ...
0
votes
2answers
32 views

How to properly detach a command?

I have this little script I use to launch a root Nautilus window (yeah, dangerous, but sometimes necessary): #!/bin/bash gksudo --description "Launch a root Nautilus" -- sh -c "xdg-open / &" ...
0
votes
2answers
30 views

How to save output to file that required root access

I want to save output of command to a file that my current user do not have access to. But my user can have root access using sudo. I'm running for example: sudo crontab -l > /var/BackUp/crontab ...
0
votes
1answer
37 views

Can't use sudo, gedit, i'm getting error in upgrading

sudo: unable to open /var/lib/sudo/username/7: No such file or directory W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable to write to /var/cache/apt/ E: The package lists or ...
-1
votes
1answer
46 views

Nano edit, permission denied

I am trying to edit a index.php by using sudo nano index.php. Nano opens me into index.php, then i add the code into the file, save and try to exit but it says permission denied. I am using ssh ...
-3
votes
1answer
48 views

Enabling root privileges permanently and have no password

I want to enable root privileges permanently so that, for example, I never need to type sudo. I also want a blank password. I found a thread addressing this with link Always Sudo Privileges. Exactly ...
1
vote
3answers
76 views

User in sudo group cannot use sudo command

I have a user, supersecretuser, that is in the sudo group, but doesn't have sudo access. Is there something else that needs to be done to give this user sudo access? $ ssh supersecretuser@myserver ...
2
votes
0answers
26 views

How do I remove sudo from my server without breaking everything?

I am creating a test server VM, and I would like to delete the sudo executable by deleting it via apt. I know the root password, so that is not a downside. Is there any problem about removing sudo ...
0
votes
1answer
21 views

Changing Administrator [duplicate]

Due to a mishap with my main profile I am wondering if anyone could assist me in making my secondary profile the administrator. Something went wrong with my primary profile and I can no longer see ...
1
vote
0answers
21 views

Lost premisssions after editing sudoers file [duplicate]

Please, can someone help me. The problem: I would like to give permissions to reboot for users not from admin group. On the Internet I found the advice to change the "sudoers" file with command ...
1
vote
1answer
61 views

How can I make Sublime Text 3 run as root from Unity?

I know I am not root because I cannot browse packages. First, I am aware of this page, but it is not working for me. After following those instruction, I get the prompt when I open Sublime from ...
0
votes
1answer
32 views

problem occuring while creating .exe file

I'm trying to run test problem in the mfix but got struck with an error sh: 0: Can't open ../../model/make_mfix. bhaskar@admin2-Precision-T7600:~/mfix/run/tests/Added_Mass$ sh ../../model/make_mfix ...
0
votes
1answer
29 views

Problem with adduser on new install

I am a noob trying to get an install of ubuntu 14.04 LTS up and running on a virtual server on linode. I have not done much on it yet. Earlier today I tried to add some users. I was able to add one ...
2
votes
1answer
38 views

If I use && to run two commands - do I need to put sudo in once or twice?

Suppose I have the following command curl -Lo .amb j.mp/docker-ambari && . .amb && amb-deploy-cluster (assuming this is running on vagrant - so not a real machine) And I know I've ...
0
votes
0answers
14 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
66 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
117 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
63 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
69 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
31 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
76 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
72 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
50 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
23 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
64 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
48 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
56 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
27 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
60 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
29 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
80 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
60 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
51 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
16 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
57 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
76 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 * ...