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

Sudo, nohup and spewing detached processes

I have a jar file that I need to routinely kick start from the terminal, and needs to be run as root. I'd also like to leave that terminal open for use, so I'm using this bash script: $ cat /usr/...
2
votes
1answer
43 views

Why to use bash in executing script? [duplicate]

In a former question, I was suggested to execute: sudo bash start-dfs.sh why not sudo start-dfs.sh ? I mean, what difference does bash makes?
0
votes
1answer
40 views

Multiple commands in sudoers file results in syntax error

It seems to be possible to add multiple commands in the sudoers file in the following format: john ALL=(ALL:ALL) NOPASSWD: /command1, /command2 What I have used in the sudoers file is: <...
0
votes
2answers
26 views

How to disallow access to folder even for admins?

I'd like to create a new user account and allow them to do maintenance on the server, i.e. install and configure new software, restart the server, manage other users etc... However, I'd like to ...
0
votes
0answers
23 views

aterm unresponsive unless run with sudo

I've just installed Ubuntu on my laptop. I installed aterm by typing sudo apt-get aterm Now if I start aterm by typing aterm The resulting console is unresponsive to typing (no letters show up ...
4
votes
2answers
99 views

Help me win this war!

History: The map: I have a dual-booted laptop, Windows 7 alongside Ubuntu 14.04. For Ubuntu, I have a separate partition, which stores my data. The enemy: sudo chown -R hadoopuser /, which literally ...
0
votes
0answers
35 views

Boot from USB/CD without using sudo

I screwed up big time. I did sudo chmod -R 777 /usr without pausing to think about consequences. Well, the consequences are: 1) I cannot sudo or pkexec. 2) Ubuntu is not detecting boot cd or usb. ...
3
votes
2answers
403 views

sudo: ./abc.sh: command not found

Commands typed in terminal: chmod 777 abc.sh sudo ./abc.sh Every shell program is giving the same error: .sh: command not found Including this simple abc.sh program: #!/bin/bash # My first ...
0
votes
1answer
195 views

sudo ssh-add /root/.ssh/id_rsa return error

I m trying to save ssh authentication with the command ssh-add for sudo usage: linux$ sudo ssh-add /root/.ssh/id_rsa Could not open a connection to your authentication agent. but as indicated it ...
2
votes
3answers
396 views

Isn't sudo extremely unsecure? [duplicate]

It seems any program ran soon enough after sudo in the same terminal can run any sudo command it pleases. Proof: Execute sudo ls in a terminal . Then run this program (compiled of course) in the same ...
1
vote
1answer
75 views

Sublime Text doesn't run with `sudo` without `-E`

I guess I made some damage to my settings because now I'm unable to run Sublime Text as root without -E: subl //works sudo subl //doesn't work (no errors, just silence) sudo -E subl //works. How ...
0
votes
0answers
11 views

Help with installation after HDD SATA replacement in laptop (Toshiba AMD A6)

Will this fix my installation issue, if I just go to 15.10. I was trying OEM, sudo clean, update, install, kodi, --fix, fix-missing...nothings works...also I have checked BIOS and the new SATA HDD is ...
3
votes
1answer
63 views

I ran these commands and want to learn how to reverse them

Please don't scorch me i'm still novice and only seeking help. I ran the following commands: echo "deb https://pkg.tox.chat/debian nightly release" sudo tee /etc/apt/sources.list.d/tox.list wget -...
0
votes
0answers
15 views

download cuda library with dpgk on Ubuntu 14.04

i need to install cuda library on a server, where i dont hwve root access I use this command: dpkg -i --force-not-root -- root=$HOME cuda-repo-ubuntu1404_7.5-18_amd64.deb but i get the error : "...
0
votes
1answer
1k views

Problem with sudo apt-get install (dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem) [duplicate]

I think I used something involving dpkg but I am not able to recall what. After that when I need to do some sudo-apt get or even sudo-apt get update I am facing the following ...
1
vote
2answers
130 views

`sudo apt-get install` won't install anything [duplicate]

When I run sudo apt-get install I get the message:
0
votes
2answers
44 views

I cannot download software or use `sudo`

This is what happens when i use sudo. Plus I can't update Ubuntu and I can't open the Software Center.
1
vote
1answer
162 views

Slow hostname lookup: curl slow, sudo slow, browser slow

my problem is similar to other slow host name lookup issues, but I failed to find a working solution. The main effects are a slow sudo command a very slow DNS resolution in all browsers. I guess that ...
0
votes
0answers
31 views

how to enter password for sudo while using ubuntu in virtual box?

I cant enter my password while using sudo in virtual box (Version 5.0.10 r104061) with Ubuntu OS (14.04). How to enter password?
4
votes
1answer
58 views

Why does alias in /etc/bash.bashrc not apply to sudo?

I've added the line alias ll='ls -l' to the /etc/bash.bashrc. After a restart, the alias ll from that file affects me, which I checked by commenting out the corresponding alias in my ~/.bashrc (...
0
votes
2answers
172 views

SSH Key with user and root with shell script

Is it possible to ssh login to a server as a user with shell access and then change to root user both with the help of ssh key using a bash script?
1
vote
1answer
196 views

How can I make running a command depend on the input of a correct password (Tkinter GUI)?

I created a small GUI in Tkinter/python: import Tkinter import tkMessageBox import os top = Tkinter.Tk() top.geometry("400x250") def root_login(): os.system("gksudo su && sudo su") ...
0
votes
2answers
190 views

I entered “sudo chmod 770 /” on terminal. Is it fixable?

I was trying to deny permissions to access the root folder to all non sudoers, and had the (NOT) brilliant idea to run sudo chmod 770 /. Now I get permission denied for all commands. I am running ...
0
votes
3answers
77 views

I accidentally own /etc/ on user ubuntu in aws ec2 [duplicate]

I accidentally own /etc/ on user Ubuntu in aws ec2 I owned /etc/ and now this message comes up whenever I used sudo: sudo: /etc/sudoers is owned by uid 1000, should be 0 sudo: no valid sudoers ...
14
votes
3answers
1k views

How can I force sudo to always ask for a password after waking from suspend?

Say I execute a command with sudo, then if I use sudo within the next 15/5 minutes (not sure how long it remembers me for) it won't prompt me for a password. It will only prompt me again if I haven't ...
0
votes
0answers
11 views

Permission denied error while using sudo or su? [duplicate]

I'm trying to fix my screen brightness problem, and I have checked some answers given on this site. I found out that I may have to use some command like this: ls -la /sys/class/backlight/...
0
votes
0answers
29 views

password not working, memery all used up. helpme

I'm completely clueless about ubuntu and computers really. I was directed towards ubuntu by a friend and now im in big trouble really. My laptop started acting funny on thursday. It used up all ...
0
votes
1answer
26 views

How to prevent graphical applications from being started with sudo

I am persuaded that I should never use sudo to start a graphical application. How can I prevent it from ever happening? Getting more sleep might be the correct solution but I want a better one.
1
vote
1answer
48 views

open new tab as same user?

I often use sudo to administer other users on my system. How can I open a new tab in gnome-terminal with the same user name? Usually, when I open a new tab, I need to run sudo su THEUSER again. ...
0
votes
0answers
24 views

`sudo su` doesn't ask for password [duplicate]

I typed sudo su in the terminal, and it changed to root without asking for a password. I also tried typing sudo apt-get upgrade and it didn't ask for a password either. When I installed Unity (1 hr ...
1
vote
1answer
60 views

Open a file with gedit over ssh

I am trying to display a file with gedit, from my home, when connected to ssh in a machine of my uni. However, something is wrong with permissions. gsamaras@gsamaras:~$ ssh -X user@machine.gr ...
0
votes
1answer
110 views

who to install glup globally in current project

Trying install Gulp globally in the project file $ npm install --global gulp $ npm install --save-dev gulp but through this error message: npm http GET https://registry.npmjs.org/gulp ...
1
vote
0answers
20 views

Ubuntu 14.04 sudo: unable to resolve host Cricketpunk [duplicate]

i am new to ubuntu and recently tried changing my hostname and have probably messed up something,and have trouble fixing it. Whenever i give command like get sdu sudo apt-get install g++ (...
0
votes
2answers
130 views

Opera-stable seems to lack premissions/privileges in 14.04

So I installed the official version of Opera named "opera-stable" in the Ubuntu Software Center. When I run it from launcher, it launches twice and displays a message (Translated to English by ...
3
votes
1answer
48 views

stderr of terminal in red, even with sudo

I am trying to make a working example for logrotate, and to help me through this I figured it was a good idea to turn stderr to red. Through some reading, I came upon stderred, which I meant to adopt....
0
votes
1answer
56 views

How to get email for unauthorized sudo attempts?

As per this question, unauthorized attempts to sudo are saved in /var/log/auth.log and by default, a mail is sent to /dev/null. Is there any way to prevent that from happening and send the mail to an ...
3
votes
1answer
58 views

Switching User From A sudoer to Bash to Root

On someone's ubuntu VPS I created a user, added them to sudo and logged in. Figuring I didn't need the root password anymore, I got rid of it. Then for whatever reason I felt I needed to go back to ...
0
votes
1answer
105 views

Sudo doesn't recognize correct password [duplicate]

I tried changing my sudoers.d file to remove authentication from my pc by typing %admin ALL=(ALL) NOPASSWD:ALL without using visudo. However, after doing that anywhere where the sudo command is used, ...
16
votes
4answers
1k views

How to enter password only once in a bash script needing sudo

Data I want operator users on this machine to mount their own cifs shares The sudoers file already contains the /bin/mount -t cifs //*/* /media/* -o username=* command for all operators I want the ...
1
vote
1answer
193 views

How to install PostGIS on Ubuntu 14.04?

I tried: gsamaras@gsamaras:~$ sudo apt-get install postgresql-9.1-postgis Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ...
1
vote
1answer
52 views

Perform sudo with different password? [duplicate]

Can I perform 'sudo' actions with different password other than my login password? Is there any way to achieve this?
0
votes
0answers
18 views

oracle 11g database installation [duplicate]

Am new to Ubuntu. I have been trying to install oracle 11g expres. But am defeated.Would someone please guide me on how to install and set up oracle 11g for database application on Ubuntu 14.04 Thank ...
0
votes
0answers
53 views

iniparser: cannot open /etc/security/pam_winbind.conf

Each time I type a sudo command I get this: iniparser: cannot open /etc/security/pam_winbind.conf What's this error and how can I get ride of it?
0
votes
0answers
67 views

Add domain user into sudouser file failed with Ubuntun 14.04 TLS

I ran into trouble with sssd and sudoers file. My domain name is rd.mydomain-rp.com and the domain netbios name is rp-rd After configuring sssd the domain users can login to the linux system but the ...
0
votes
0answers
628 views

sudo: ./ : command not found (when you change the directory)

I am trying to launch a .iso,the program launches -when the image is mounted- using sudo ./run. As I just extract the iso and attempt to launch it, it says: sudo: ./run : command not found (the ...
3
votes
0answers
111 views

I locked myself out from using su or sudo. I'd like to understand what I did there

In an attempt to increase the numer of files my domino server is allowed to handle, I changed /etc/security/limits.conf, adding following lines. notes soft nofile 60000 notes hard nofile 60000 ...
0
votes
1answer
52 views

I messed up permissions in home folder I can not login

Some time ago I had this problem and I found a workaround by issuing following command sudo chmod 777 /dev/dri/card0 and leaving me with this bug. I have been struggling to fix it for a week. ...
0
votes
0answers
28 views

Sudo: chronic authentication failure on X operations

Sudo works fine from the command-line, but I've never been able to get authentication to work right when a GUI asks for it. Starting X apps from the command-line w/sudo sort of works, but causes weird ...
0
votes
1answer
17 views

sudo start program as user with encrypted home

I am logged in as user1 and want to start a program1 with sudo user2: sudo -u user2 program1 But home of user2 is encrypted. So program1 exits because it can't write to it's settings folder. How ...
1
vote
3answers
156 views

Can sudo command only be used in ubuntu?

This is a curious question only. Does anybody know if other distributions need sudo to login as root. The reason I am asking is because I have Virtualbox installed in my ubuntu desktop and I have ...