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
3answers
86 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
51 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
66 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
120 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
145 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
51 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
61 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
120 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
2k 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
219 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
55 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
55 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
70 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
681 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
119 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
58 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
29 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
160 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 ...
1
vote
1answer
41 views

How to set the correct permissions between development and production

DEVELOPMENT On my development server I have an Ubuntu user named user1. When user1 runs PyCharm (user1 must run a Django app) as sudo then the app at a later stage is required to create a folder ...
1
vote
1answer
129 views

How to fix sudo due to pam error

The short story is that I can SSH into my device with the a username and password that should be in the superuser group (so I should be able to sudo su). The problem is that I was trying to increase ...
0
votes
0answers
31 views

Can't use sudo command [duplicate]

I installed a VirtualMachine of Ubuntu 14.04 for university. (Which made me rage by itself a couple of times.) Now, I want to make the Virtual Machine - or the Linux OS, for that regard - actually ...
0
votes
2answers
189 views

How GUI based apps ask for root password without gksudo installed?

In old ubuntu releases, I believe, GUI apps ask for root password using gksudo. Now gksudo not comes preinstalled in ubuntu. For me, if I am adding a custom launcher of a compiled executable which ...
27
votes
1answer
2k views

Why do some programs running from Terminal using '&' close when Terminal does and others do not?

I was just wondering, for instance when I launch qtox with: qtox & And then close Terminal, qtox closes with it. However when running etherape using: sudo etherape & Closing Terminal ...
1
vote
0answers
21 views

error while entering super user mode [duplicate]

I would like to install git but when I type the command: sudo apt-get install git I am getting the error: iiit is not in the sudoers file. This incident will be reported. The output of groups ...
0
votes
0answers
280 views

How to use sudo update-alternatives properly?

I'm trying to run this commando: sudo update-alternatives --install /usr/bin/java java/usr/local/java/jdk1.8.0_66/bin/java 1 But it says: sudo update-alternatives --install /usr/bin/java java/...
0
votes
0answers
150 views

Script runs as root but not with sudo

I am working with a Raspberry Pi and I'm trying to run a script that accesses the GPIO pins. To access these pins you need to be in root or prefix the command with sudo. The script also needs to ...
2
votes
2answers
238 views

Can I open a file as root by just using the right click menu

Opening file as root is possible with sudo. But, how to right click a file and make it run as root ? I am using nautilus.
2
votes
2answers
40 views

I'm a complete noob and I installed Ubuntu 14.04 LTS

How to add all repositories to have all software packages available for Ubuntu - like restricted, universe and multiverse and ppa via terminal commands?
1
vote
1answer
50 views

Permission not granted for creating file in /home [duplicate]

I am new to Ubuntu. I want to create a new dir in /home, lets call it myDir, and then I want to create a .txt file that outputs the current date. All these through terminal comands. So, to be more ...
0
votes
0answers
110 views

sudo -u not working

on my vps apparently sudo -u is not working correctly I want the Web server (www-data) to run a script as user teeworlds and in the context of this user the script output www-data@minecraft:~$ sudo ...
1
vote
0answers
38 views

How to know my sudo password? [duplicate]

I am really new to Ubuntu. I had it installed without me knowing what were the username or password. Now, I am trying to install skype, but ask me for authentication. I have read instructions on how ...
2
votes
3answers
87 views

Working without typing “sudo”?

Please leave all security words beside. I'm the only one who has access to Ubuntu server and I login to it only when I have something to work with system administration. So I know what I'm doing and ...
0
votes
0answers
31 views

Executing program in non standard path from terminal

Recently, i created a personal folder for my data 'lroot/usr' to put in all my bin, lib and other stuffs. I linked it in the PATH. Beside, to install programs directly inside my folder, i do use dpkg -...
1
vote
1answer
142 views

Wine on ubuntu 14.04, i'm a noob?

I tryed to install wine 1.6 from terminal but I always have this error, can someone help me?? giovanni@giovanni-X551CAP:~$ sudo apt-get install wine1.6 Reading package lists... Done Building ...
0
votes
0answers
24 views

Everytime I run a sudo command, the warning comes : sudo: unable to resolve host XXXXX [duplicate]

Some weeks ago, I just changed the apperance of my terminal by making it colorful. It was said to change a particular line in the bashrc file by opening it using this command gedit ~/.bashrc. After ...
1
vote
3answers
441 views

How to check if running as root? Not asking for sudo

I am a new Ubuntu user and am still getting used to the OS. I have been using it primarily for local testing of a site that I am developing. I downloaded the LAMP stack for this. When I first ...
0
votes
1answer
59 views

“Password for root” prompt on a sudoer

On an Ubuntu 14.04 LTS system, I get a prompt of "Password for root" when logged in as a remote directory user (sssd). My user account is configured as a sudoer, both directly and via a group (from ...
0
votes
0answers
192 views

sudo can't find module rospy

I am using ROS (robotic operating system) on a raspberry pi running ubuntu and trying to setup a simple talker/listener. My problem is that then I need to run my script as root to access the GPIO ...
0
votes
1answer
155 views

Ubuntu's terrible trash [duplicate]

I've got 18.5 GB of trash in my trash, I've tried emptying it, but it won't work, even when I navigate to trash folder as root within nautilus.
0
votes
1answer
71 views

Why does`sudo su -` still try to execute terminator?

I've recently had a problem with the shell-emulator terminator which lead me to uninstall it. Now when I type sudo su - I get the following response: Cannot execute /usr/bin/terminator: No such ...
0
votes
0answers
18 views

How to customize sudo users for commands and paths? [duplicate]

How can i customize the "sudoers" file so that sudo user can use specific commands (or to be blocked from using specific commands), and to enable sudo on some directory paths?