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

Trying to undo some commands

I have done the following commands trying to make Ubuntu work faster: echo 100 > /proc/sys/vm/overcommit_ratio echo 2 > /proc/sys/vm/overcommit_memory #/etc/sysctl.conf прописываем: ...
0
votes
1answer
39 views

How can I tell my laptop to shutodwn after finishing running a non-root process

I'd like to be able to say: ./run_process.sh; sudo shutdown -P now but the call to sudo will ask for my password and then my laptop won't shut down because it's waiting for my password. How can I ...
0
votes
3answers
201 views

lost sudo privileges through renaming an essential folder

This was stupid of me, but now I can't fix it. I changed the name of /usr/lib to /usr/lib64 not realizing that the sudoers.so file was in this folder. Now I can only log in in recovery and I have ...
0
votes
1answer
266 views

How do I execute a sudo command without a password?

I have a simple shell script that uses the killall command. I would like to run this command without needing to enter my password. I've brought up visudo and inserted the following line into it: ...
1
vote
1answer
130 views

How do I perform a backup of sudoers file?

After reading the following two posts: Trying to install an openVPN GUI messed up sudoers Standards accounts are able to get root access using sudo without password request I would like to learn ...
4
votes
2answers
2k views

Standards accounts are able to get root access using sudo without password request

I have installed a particular software using the installer present using the command sudo ./install.sh. After the installation now all the accounts on my ubuntu laptop can gain root access by ...
1
vote
1answer
2k views

I need to use sudo for any Hadoop operation, how to change permissions?

I am self learning Hadoop, starting yesterday. For the purpose of learning, I have set up Ubuntu 13.04 64-bit on VMWare Fusion on my MacBook Pro. And I am following this excellent tutorial. Before ...
2
votes
2answers
1k views

How can I run sudo gedit as gksu gedit

I'm looking into ways of automatically loading Gedit as gksu gedit when I enter sudo gedit by mistake? I have found that I have made a number of files unreachable by using gedit and I have only just ...
2
votes
2answers
5k views

Proper way to let user enter password for a bash script using only the GUI (with the terminal hidden)

I have made a bash script that uses kdialog exclusively for interacting with the user. It is launched from a ".desktop" file so the user never sees the terminal. It looks 100% like a GUI app (even ...
2
votes
0answers
69 views

Why is pkexec preferred over gksudo for graphical applications? [duplicate]

Please provide Ubuntu documentation that refutes this: https://help.ubuntu.com/community/RootSudo Why, on my fully updated 13.04 system, does pkexec not function? $ pkexec gedit somefile.txt No ...
0
votes
1answer
337 views

Granting administrator privileges to user not working?

I saw the sudoers manual and plan to eventually give the user only rights to run specific programs, but tried testing it with ALL permissions and it isn't working. sudo -l shows this: [sudo] ...
0
votes
1answer
101 views

SU, SUDO and Upgrade problem

i have a big problem with my Ubuntu PC. When i try sometigng need sudo or su, nothing is working and the OS Upgrade too, when i write the root password to the su command i have a "autentication ...
0
votes
1answer
595 views

How to install vnc server so I can have complete control on my Ubuntu Server?

I installed ubuntu server 12.04. I installed gnome desktop on that (GUI essential for my purpose). Now I want to control the server remotely. I tried following things and not very successful : ...
1
vote
1answer
1k views

running gedit as sudo

I'm really new and from the dark side (Windows)... I must be doing something wrong. The only way I can get gedit to run with a tool bar (Save As etc.) is to launch it with sudo from a terminal. I ...
1
vote
0answers
658 views

Red Triangle with exclamation mark, next to wifi symbol, in ubuntu 13.04

I have a red triangle at top on screen, that says "The update information is outdated. This may be caused by network problems or by a repository that is no longer available. Please update manually ...
2
votes
2answers
2k views

How to set default environment variables for other users?

I installed postgres under Lubuntu 13.04. When I try to run it: sudo -u postgres psql it gives me this error: psql: could not connect to server: No such file or directory Is the server running ...
0
votes
1answer
68 views

Error in installation directory

I'm trying to install my first linux package... what an oddysey. After finding out what sudo is and sense what make file does, and losing a lot of time on the internet, I'm about to quit... Hopefully ...
0
votes
1answer
482 views

problem with PATH when using $su

OK, I'm having a bit of an issue with PATH and running a process as another user under Ubuntu. First, we check where the bin is: root@host:~# whereis start-stop-daemon start-stop-daemon: ...
1
vote
1answer
2k views

Having Error message while using the “sudo nautilus” command in terminal

I am using Ubuntu 12.04 LTS (32 bit). When I run "sudo nautilus" command in the Terminal, this output appears: tushar@tushar-G41M-Combo:~$ sudo nautilus [sudo] password for tushar: Initializing ...
0
votes
1answer
242 views

sudo apt-get update leads to crash of terminal application

I try to run sudo apt-get update and the terminal freezes and a message pops up: Ubuntu experienced an internal error... I am trying to work with OpenFOAM and all the times is asking me to update ...
13
votes
3answers
1k views

How often is the password asked for sudo commands? Where can I set it up?

I execute quite a lot of sudo commands. I noticed that if I execute one and then another one within few minutes, the 2nd time I don't get the message: [sudo] password for my_username: but I do ...
1
vote
3answers
3k views

How to reset default permissions for /etc?

By mistake I have made permission changes for /etc. Now it's giving me the following error message: bash: /etc/bash.bashrc: Permission denied I have no name!@chandan-Inspiron-5520:~$ sudo ...
5
votes
3answers
16k views

How to execute sudo commands with Expect & send commands in bash script?

Can any body let me know how to execute sudo commands with expect. I tried the following but this is not working. Can anyone give me suggestion please? set login "sasuke" set addr "hostname" set pw ...
0
votes
1answer
684 views

Linux Basic Commands [duplicate]

I'm new here. I just want to learn the basics of Ubuntu Terminal ! I know the very basic commands like changing directory, renaming, creating & deleting files. I'm looking for commands like ...
1
vote
0answers
81 views

Sudo and Launcher icons not working, hard-disks not mounting

I am running a server on Ubuntu 12.04 (desktop) LTS. This has been working fine until today when a few minutes ago it decided to change some stuff alone. Launcher icons not working Launcher icons ...
4
votes
4answers
414 views

How can I prevent a user from changing their password? [duplicate]

I want to prevent a user from changing their own password. Additionally, if possible, I want to prevent them from changing it via sudo.
0
votes
1answer
190 views

how do you make the scripts in /home/$user/bin accessible using sudo? [duplicate]

How do you make the scripts in /home/$user/bin accessible using sudo? as in: sudo $NameOfScript in using Ubuntu 12.04
1
vote
1answer
3k views

How to get rid off - sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins

I am trying to configure apache2 with cgi (python). For that, I have to change permissions of some folders and files but I am getting sudo fatal errors every time I try to change the permission of a ...
2
votes
0answers
165 views

Entry in sudoers

I need the following entry for a autoresponder/vacation plugin for roundcube with plesk: www-data ALL=NOPASSWD: /opt/psa/bin/autoresponder But the system doesn't recognize www-data as a user. Only ...
-1
votes
1answer
483 views

How to get r/w permission for a directory for a particular user?

In my ubuntu server a directory named "softwares" is shared via samba for windows clients. The directory has only read permission. I am the system admin working on the ubuntu server. I am also not ...
6
votes
2answers
8k views

How to solve “sudo: /etc/sudoers.d is world writable”

How can I fix the following error with sudo? /etc$ sudo sudo: /etc/sudoers.d is world writable usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p ...
0
votes
2answers
263 views

How do I restore Ubuntu's default interface?

When I downloaded and install nvidia drivers, both the top bar and bottom bar disappeared. When I removed them, some applications worked, but the bars are still missing and fancy shortcuts such as ...
1
vote
0answers
183 views

how to recover file and folder permission?

I made this mistake at the /usr directory sudo chmod -R 777 bin The next time i used sudo, it gives me this prompt: sudo must be setuid root What I did is copy and replaced this sudo thinking it ...
71
votes
9answers
6k views

Run same command again but as root

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission. Is there a way to run the same command again but as a super user?
0
votes
1answer
130 views

Error Message while sudo apt-get -f install [duplicate]

Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
1
vote
1answer
320 views

Unable to run a sequence of commands using SSH

I am unable to use a couple of sudo commands while logging in through ssh. I am using the following command but its not working properly. ssh hypr1000.opsr.com "ot=sudo virsh list --all |grep ...
1
vote
2answers
250 views

Where is the /etc/login.conf file in Ubuntu 12.10 and latest?

Where is the file for the general login for to configure it? /etc/login.conf seems to be outdated in 12.10 ? I want to adjust maximum number of login attempts. e.g. in sudo from 3 to 1. same for ...
1
vote
1answer
1k views

Any way to get sublime text to save settings files without running as sudo

I installed Sublime Text 2 the following way, but what I do not like about it is that I have to run it as sudo to save the user settings files. Any ways around this? Thanks, Colin sudo ...
1
vote
2answers
2k views

How do I make Youtube videos stream faster on my ubuntu?

According to this article, http://thetechblock.com/how-to-stop-isps-slow-youtube/, I can make Youtube videos stream faster on Linux, but I am not entirely sure how to carry out similar commands on the ...
0
votes
3answers
3k views

Error executing sudo in chroot environmet

I am facing a strange problem while using a chroot'd 12.04 Ubuntu. When I try to run anything with sudo I get the following error: sudo: effective uid is not 0, is sudo installed setuid root? If I ...
0
votes
1answer
1k views

ubuntu 13.04 failed to start any GUI application as root

I just installed ubuntu 13.04 in family machine, and I faced strange problem even though my sudo password is correct, I cannot start any GUI application (i.e. bleachBit (as root)) as a root, the ...
3
votes
2answers
1k views

How do I give root privileges to an app?

I tried to submit an app to the Ubuntu Software Centre but it was rejected because you needed to put in the admin password to use it. I need to grant root privileges to the app for it to function so I ...
0
votes
1answer
1k views

sudo command not working in cron

I have a small script and I want to run it as user1 in cron. If I am logged in as user1 and execute the script it works just fine, but the moment I try to run it in cron it does not work. If I run the ...
0
votes
1answer
1k views

'sudo' command is broken

I updated an old centrino-notebook after Ubuntu 9.10 with 12.04 - now sudo seem to be broken, because after sudo <whatever> I get the error message: sudo: unable to initialize PAM: No such file ...
3
votes
7answers
45k views

How can I determine the sudo password? [duplicate]

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?
0
votes
2answers
1k views

sudo apt-get not working after a new install of ubuntu

I installed ubuntu last night. And after reading 100s of posts, I still couldn't make my sudo apt-get work at all. I remember, I have to modify the software server somehow. But I can't remember how or ...
4
votes
2answers
10k views

How do I add a user to sudoers file?

How to I add my username to the sudoers file? On my ubuntu desktop, the sudoer file has only root. so basically, I will just need to adduser to sudo file system. And I need to access to single ...
6
votes
2answers
2k views

How can I ensure the `snd-hda-intel` module is loaded on startup?

I need to type sudo modprobe snd-hda-intel in order to get my sound card to work. What config file do I need to edit and what edit should I be looking to make so I can get the sound driver loading ...
20
votes
1answer
36k views

Run a shell script as another user that has no password

I would like to run a script from the main ubuntu shell as a different user that has no password. I have full sudo priviledges, so I tried this: sudo su -c "Your command right here" -s /bin/sh ...
1
vote
3answers
13k views

sudo su fails with 'Unable to change to sudoers gid :operation not permitted.' fault [closed]

I have installed ubuntu and now I want to install flex. It asks for password but when I type my password, it asks me the password for root. When I enter the password which I had specified during ...