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
40 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
121 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
168 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
250 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
137 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
168 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
49 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
95 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
36 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
80 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
28 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
360 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
55 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
181 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
148 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
67 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
17 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?
1
vote
1answer
479 views

How to kill X server using a key combination? [duplicate]

Is there a way to kill the current X server using a keyboard combination? Is it possible to do so without having sudo permissions?
0
votes
3answers
121 views

sudo apt-get Install? [closed]

I'm trying to install software on my Linux machine (14,04 Ubuntu). Is this the general syntax to write in terminal follow by file name to install anything downloaded. Assuming it is already in my ...
0
votes
1answer
63 views

Ubuntu Password Problem

I was working on my system when suddenly I was no longer able to use the sudo command. It was acting as if I was not entering the password correctly. I rebooted and found that I cannot log into my ...
0
votes
0answers
24 views

Temporary Failure Resolving Security Ubuntu

I have not been able to do sudo commands, so I went into recovery mode and tried to update my software. Updates were found, but when I tried to do them, I got an error saying: Temporary failure ...
0
votes
2answers
83 views

Hibernate pc at certain time via terminal

are there any commands via terminal such as Sudo shutdown -P 60 ? something like this but i need it to hybernate instead of shuting down. any ideeas?
1
vote
1answer
83 views

How to install the “sudo” command? [closed]

I am trying to install a program on my Linux computer using this command sudo sh/arb_installubuntu4arb.sh and the error message is that it does not know the command sudo. How can I fix it?
0
votes
1answer
119 views

sudo service status message missing in ubuntu 15.04

i made an update to ubuntu 15 i dont get status messages of the service system anymore. On the old ubuntu 14.04 when i did: $sudo service apache2 restart * Restarting web server apache2 ...
8
votes
5answers
1k views

Security risk in everyday use of an admin account (not root)?

The only thing that distinguishes my admin account from normal accounts is that my admin account is a member of the sudo group and can run sudo. Is it any less secure to use my admin account for ...
4
votes
0answers
126 views

Not allowed to delete a encfs-encrypted empty folder

I have an encfs-encrypted folder and just cut the content of a subfolder of it and pasted it into another folder outside the encfs-encrypted one. While doing that, I got an error message, saying that ...
0
votes
2answers
882 views

sudo command not found

I'm new to this. I'm trying to install apache2 on an Ubuntu 15.04 server. Running as root. But when giving the command: $ sudo apt-get install apache2 -bash: sudo: command not found Can anyone ...
1
vote
0answers
85 views

sudoers problem

I'm using Ubuntu Mate for my raspy. I'm using my raspy to run a program 24/7, which requires to be started with sudo. Because I don't want to do this manually, I added a script to "startup ...
0
votes
1answer
55 views

Cannot login to Ubuntu, Pkexec and sudo isn't working

I am completely new to Linux and I just realize that what I have done is extremely screwed up. I was run around finding a way to get some installing package on my machine to work out. Unfortunately, ...
4
votes
1answer
76 views

Removing PPA causing GPG error

When I run sudo apt-get update I get the following error: W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333 How can I locate ...
0
votes
1answer
130 views

`sudo apt-get update` returns connection errors with some repositories, and can't update

as i remember, after i uninstall some packages with ros with sudo apt-get autoremove <name package> i can't get sudo apt-get update anymore, this is the result after i text it on my terminal : ...
1
vote
0answers
63 views

user in sudo group can't run sudo

I've seen other similar questions but they don't solve my problem unfortunately. I've been added to the sudo group on my Ubuntu 14.04 with usermod -aG sudo testuser but I still can't run sudo: :...
2
votes
1answer
112 views

npm --version is different if use sudo npm --version

I have just upgraded nodejs in my machine. I uninstalled the node version (the one in ubuntu repositories) that I had. Then I installed nvm and installed nodejs 4.2.2. Everything goes without errors,...
0
votes
1answer
33 views

I can access my own home folder only with sudo

I am logging in to a machine via ssh. Is it normal that i need sudo for something like touch ~/test
1
vote
2answers
177 views

How to run a python script as sudo by double-clicking it?

Simply put, how can I do this, providing a graphical prompt? I tried creating a separate bash script that when opened, ran the Python script with super-user permissions - I used gksu -u root '<...
1
vote
2answers
3k views

allowing user to run systemctl/systemd services without password

I want the default user, ubuntu to be able to run a specific service without being prompted for a password. Specifically systemctl restart unicorn_my_app.service. Have followed the instructions here ...
1
vote
1answer
49 views

Package versions in Ubuntu [duplicate]

I use Ubuntu through a virtual machine (VM Workstation Player) and sometimes download packages through the terminal. Some of the packages I download are not the latest version. For example, I ...
0
votes
0answers
10 views

Running sudo commands through scala [duplicate]

I have created one .sh file and inside of it I am using command to install .deb packages.When I run the .sh file through terminal its working fine .deb package is installed, now what my requirement is ...
0
votes
0answers
49 views

Do I have to use “sudo” befor “pyrit list_cores” or “./devicequery” to get cuda to work?

When I use pyrit list_cores or ./DeviceQuery or ./cudahashcat64.bin without sudo it doesn't recognize my cuda core But when I do use sudo one time in one of those commands, it recognizes cuda core ...
1
vote
1answer
1k views

Virtualbox * No suitable module for running kernel found [fail]

Previously I had ubuntu 15.04. I installed ubuntu 14.04 LTS as I was told the 14.04 was stable. Now when I try to install Virtual Box this error is shown: vatsa@code-8-21:~$ sudo apt-get install ...
0
votes
2answers
68 views

Giving software sudo permission

I have searched and can't find this. All the folders on my system require sudo permission to edit/save etc... I was wondering if there is a way to give sudo permission to software (geany to be ...
0
votes
0answers
142 views

Unable to install Wine 1.7 [duplicate]

I'm trying to set up wine via command line sudo apt-get install wine1.7. But somehow,I stumbled upon error: E: Unable to correct problems, you have held broken packages. It could be a general ...
0
votes
2answers
65 views

Start application as root (No command line)

How can I start and application with root privileges, just once. For example I need to start SublimeText with sudo privileges, then I write in a console: $ sudo subl But, I wonder if there's any ...
4
votes
1answer
51 views

Increase duration of Sudo [duplicate]

I want to extend the duration of sudo in Ubuntu 14.04. It is irritating to provide password repeatedly. How can I do it?