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

Permission problem with SFTP in FileZilla

Recently, we installed Ubuntu Server on our servers this is very new for us. However, we tried to setup a apache2 server which did work. But the problem is that we can't configure apache and other ...
0
votes
0answers
64 views

How to make a command execuitable without root previlages? [duplicate]

I want to make some commands,such as ntpdate,shutdown etc, to execute without asking me for a password or without using "sudo" for "all users"(even normal users who have no sudo privileges) . I want ...
0
votes
3answers
1k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
0
votes
1answer
199 views

Sudo or gksu for launching Sublime text 2?

I am new to using Ubuntu 12.04 and noticed two different ways of launching Sublime Text 2 via Terminal window, first being sudo and the other being gksu. Upon using both I noticed it's launching ...
0
votes
0answers
20 views

recover data from autoclean

I have used sudo apt-get autoclean command and sudo apt-get clean command but didn't knew that I'll loose all my data. Is there any way to recover that data?
0
votes
1answer
39 views

I have a problem where sudo does not work can you help me?

Basically I have been following steps on this website to mount my hard-drive properly and now each time I try to follow the first step it says: sudo: effective uid is not 0, is sudo installed setuid ...
1
vote
1answer
186 views

Sudo does not recognize my password anymore

The problem is happening on a remote server, so everything is done through ssh. I can login with my key, no problem here. I can change my password at will with passwd (which I believe shows that it's ...
0
votes
3answers
103 views

making nano always run as sudo by default

my problem is that i keep forgetting to write sudo before every time i use nano, and eventually what happens is i work on a file for a while and don't have permissions. i remember hearing somewhere ...
0
votes
1answer
22 views

Need Help regarding Finding tools

When I type command find / -name ??.conf the output is a lot of files such as : find : /home/simmer/local/share/gvfs.metadata : Permission Denied Don't get the desired result, And if I use the ...
2
votes
1answer
95 views

Accidentally deleted 'sudo'

I accidentally deleted the /usr/bin/sudo file. How can I restore it? I have found a thread on ubuntuforums, but it seems to be not solved.
0
votes
0answers
65 views

Fix permissions for /usr

While trying to install adobe-flashplayer as a normal user (via a setuid binary, don't ask!), I suddenly noticed that the owner for /usr had been changed to myusername.myusername! Apparently, this is ...
2
votes
3answers
383 views

Run a specific sudo command without a password in Ubuntu 13.10

I would like to run vagrant without being prompted for a password. As this post suggests, I used visudo to add the following line to my sudoers file. john-moz ALL=(ALL) NOPASSWD: /usr/bin/vagrant ...
1
vote
1answer
486 views

How solve “sudo: must be setuid root” on Joyent server

I have a server Ubuntu 12.04 LTS on joyent . Mistakenly I have changed the /user/* folders permission to 775. After this I cannot able to run any sudo command. Rebooting the system in recovery mode ...
0
votes
1answer
72 views

The shell/terminal does not allow/show my password [duplicate]

I am trying to install gfortran from a shell/terminal, I write sudo apt-get install gfortran and then in the next line appears sudo password from romulo. But when I try to write the password the ...
1
vote
0answers
26 views

I changed my password to none and now i cant authenticate nor even cant do sudo? [duplicate]

I have admin rights. Could there be a way to change back my pass. I dont even know whats my password is because I already set it to "none' now its very hard to install apps. Need help please ! Fast.
1
vote
1answer
159 views

Opening Sublime Text 2 from Terminal Problems

When I run the command sudo sublime from my terminal, it opens the program but will not allow me to run any other commands in my terminal until I close sublime text. This doesn't work because I'm ...
0
votes
1answer
38 views

BrokenCount <0 broken packages [duplicate]

So,ive have had problems with my packages and software center for sometime. I can't download any packages, and can't open software center obviously. It says that i have Brokencount <0. How can i ...
1
vote
1answer
29 views

Ubuntu Button Click Authentication

After upgrading from Windows to Ubuntu, I really like the operating system. The only point I find that is missing is the Windows functionnality to authenticate administrator permissions only by ...
0
votes
1answer
55 views

how to make /usr/lib owned by root again

I chowned -R username /usr/lib and now i cannot sudo or do any thing really due to sudoers.so belonging to username. How do i fix this and make /usr/lib owned by root again?
0
votes
0answers
62 views

Is it possible to switch to root at login? [duplicate]

Say I login to my ubuntu server as user "Bob" and I want all my actions to be performed with sudo, is it possible to set some kind of permanent sudo automatically at login? Alternatively, if the ...
1
vote
3answers
110 views

How to use the sudo command [duplicate]

When I want to install a package with the sudo command I am asked to type in my password, but nothing shows up when I do.
0
votes
1answer
462 views

What is my sudo password? How do i find or change it? [duplicate]

connor@connor-Satellite-C55-A:~$ sudo add-apt-repository ppa:yannubuntu/boot-repair [sudo] password for connor: Sorry, try again. [sudo] password for connor: Sorry, try again. [sudo] password for ...
0
votes
0answers
19 views

“Unable to resolve host” each time I run `sudo` [duplicate]

I installed ubuntu 13.04 headless server into a cubieboard, and whenever I type sudo it says "unable to resolve host". I saw a few posts related to this and they suggested changing. etc/hosts, that ...
2
votes
2answers
353 views

history doesn't display as sudo user

On a few of my ubuntu installations, when I run sudo su and become sudo user, I can type history and view a list of commands run as sudo user. However, on my one ubuntu installation, for some reason ...
0
votes
2answers
209 views

Software Center prompts password of another user

I have a krb5-ldap user in an "administrators" which is added to sudoers list as follows: %administrators ALL=(ALL) ALL Now that works fine for all sudo operations. But when that user wants to ...
1
vote
1answer
202 views

Adduser: group sudo does not exist

I am able to login to my account but can't do anything related to superuser now. Updates, sharing, sudo and all things say authentication failed. I tried to correct that by going in recovery mode and ...
0
votes
3answers
337 views

sudo (not I) remember my password [closed]

Trying to upgrade my ubuntu. I haven't used it in a while and want to upgrade it to 13.10 I understand I have to go from 12.04 to 12.10 to 13.04 to 13.10. But when I am in the terminal and enter ...
3
votes
1answer
799 views

“user is not in the sudoers file”, how to read the incident reports?

Many times I got warning/notice while accidentally tried to do some privileged action using my non-root account like below, gulu@workpc:~$ sudo apt-get update [sudo] password for gulu: gulu is not ...
5
votes
1answer
186 views

How to configure pkexec to not ask for password?

I have a GUI application that needs to call a daemon (written in Python) with superuser privileges. I would like to do this without prompting the user for a password. Since the daemon is a script, I ...
0
votes
2answers
50 views

Error while installing update [duplicate]

I am very new to ubuntu. I have Installed today only. I tried to update software by typing comnmand in Terminal as pranay@Hom-lnx:~$ sudo apt-get update && sudo apt-get upgrade [sudo] ...
0
votes
0answers
59 views

Why I am not able to update my system with sudo apt-get update command? [duplicate]

I am trying to update using sudo apt-get update, but it do download some packages but after some times I get the following errors W: Failed to fetch ...
0
votes
0answers
21 views

Lubuntu - unexplained message when hibernating - several users logged in but I'm the only one using it

Since quite recently, my laptop doesn't hibernate properly. Whenever I want to select an option, I get a message saying You need to authenticate as a super user to hibernate while several users are ...
0
votes
0answers
90 views

Run a specific program as root without asking for password everytime

I am using ubuntu 12.04 LTS and Many times, i need to connect modem using SAKIS-3G script and because modem-manager sucks many times. I need to supply admin/root password, everytime i need to run ...
0
votes
1answer
2k views

How to install OpenGL version 2.0

How can I install OpenGL 2.0 on Ubuntu? Long Version: This Ububtu is running in a VM (VMWare). I wanted to use kivy for developing a GUI. I encountered many errors. I have searched around and those ...
0
votes
2answers
57 views

How to log in to admin account from a non-admin account?

I have an admin account with sudo privilege. I have created a new user but haven't given a sudo privilege to it. Then I logged in as that new user: sudo -i -u foo_user Now I want to get back to my ...
0
votes
0answers
66 views

why sudo -s doesn't work in my script

I wrote a script and it didn't work!!! can any one tell me what is wrong! #!/bin/bash sudo -s mkdir -p /opt/Sim/Test/
1
vote
1answer
558 views

Where's runuser?

I'm making an upstart job, and I need to run an executable as another user. Nothing fancy like su provides, and none of the mixed-up SELinux contexts that come along with it. A quick internet search ...
1
vote
1answer
39 views

Changed suoders to an account that doesn't exist, what should I do

I've installed ubuntu 12.04 with single user, let's call him user1. I then created a new user, let's call him user2. I wanted user2 to be the only user with sudo rights, so I removed all users from ...
3
votes
2answers
121 views

Why only sudo'ers can execute the file?

How is it possible that to be able to execute a binary file with 755 permission, one has to be in sudo'ers list ? I am trying to let a program run by a non-sudo user. It does not happen, but if I ...
0
votes
0answers
64 views

I m not being able to install LEX and Yacc in ubuntu.

I m not being able to install lex and yacc in ubuntu. I m not being able to download the analyzer as well. I have tried the command sudo apt-get install byacc flex. Its urgent please
0
votes
1answer
45 views

Sudo unable to resolve host? [duplicate]

I enter this command in PuTTY: sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin But it returns: sudo: unable to resolve host mysite.com Any suggestions on how I can fix this?
-1
votes
2answers
337 views

How to create a root privilege file for a normal user?

I got a scenario where a customized Ubuntu 12.04 Linux OS has a read only filesystem which doesn't have terminal access. My goal is to create a file with root access using normal users permission. I ...
45
votes
6answers
3k views

What does `!!` mean in `sudo !!`?

I am a user of Ubuntu with not much experience and I have been using sudo. What does sudo !! do and how?
0
votes
0answers
35 views

How to set the superuser bit?

I have a backup script that contains several "sudo" commands. I don't want to have to type my username and password each time I run this script. So, I tried to add the "SUID" bit like this: sudo ...
1
vote
3answers
117 views

Restore accidentally with rm'ed pam.conf?

I have accidently removed the files /etc/pam.conf and /etc/security/pam_env.confusing rm. Now I get this error message when I try to use sudo: sudo: unable to initialize PAM: No such file or ...
0
votes
1answer
2k views

`pip: command not found` but it's installed

sudo easy_install pip Searching for pip Best match: pip 1.4.1 Processing pip-1.4.1-py2.7.egg pip 1.4.1 is already the active version in easy-install.pth Installing pip script to ...
1
vote
1answer
128 views

Why does the “who” command not show “root” as a logged in user?

When I log in as root from gnome-terminal using the command: sudo su it logs me in as the root user. Isn't this switching a user considered as a log in? Also, which command can show me all the ...
0
votes
0answers
142 views

Never wrote password when setting up crouton on Chromebook, how do I set it up?

Since it never showed anything as much as I typed, I thought it was a bug so I just pressed enter 3 times until it let me set up my account without a password. But now I want to run Unity from sudo ...
7
votes
1answer
8k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the ...
0
votes
2answers
72 views

unable to install any software using sudo command

I am unable to install any software using sudo command; rahul@rahul-VPCEA33EN:~$ sudo apt-get install vlc E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: ...