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

Command “sudo” not found, unable to locate package “sudo”

So i just baught vps server Ubuntu 14.04.1 GNU/Linux. I tried to install graphical environment with command: sudo apt-get update it said: -bash :sudo : command not found then i tried install ...
0
votes
0answers
19 views

Did not use SHIFT-DELETE nor rm but files on Desktop are deleted

I have not used shift-delete nor rm but files on Desktop are deleted in ubuntu 14.04 LTS. My ~/.bash_history file also has no log of using rm command. However I have used sudo modprobe hfsplus. Is ...
-3
votes
0answers
22 views

how to swich to other os [on hold]

I have just inatalled kali linux in my computer and i am a new user to linx.i made a partion of my primary drive c and then inatalled kali in it.i tried to keep my old os win7 and then i installed ...
0
votes
0answers
14 views

How to install applications through a standard user account with blank password

In standard user account with no password specified, I want to use apt-get which subsequently requires the password of the current account. (I have the administrator password): user@System:~$ sudo ...
0
votes
1answer
12 views

Why the PHP software is not getting updated to the latest stable released version?

I'm using LAMP on my local machine which runs Ubuntu 12.04. Currently I'm using PHP 5.5.20 on my machine. Following is the command I run from the terminal and below that is the output: ~$ php -v ...
1
vote
4answers
9k views

What is 'sudo tar -xzf'? Why it is used?

I need to know the extensions of xzf and its usage. Is it necessarily to be used in installing a software? sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz Why this is used?
0
votes
0answers
30 views

Error message while using Sudo [duplicate]

I've got error message at my terminal. Whenever i am using sudo command, my terminal is showing: no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
1
vote
1answer
34 views

How to install programs into user directory without sudo

I mean how to install programs from repos into the user directory without sudo? There are two ways (and even more) of installing software: from repos and from the software developer's website ...
0
votes
1answer
31 views

How do I switch back to Windows 8?

Okay so I am taking an online course to learn Linux and Ubuntu. On my desktop that has windows 8.1, I downloaded Ubuntu and then watched a couple of videos to make sure that I partitioned the drive ...
0
votes
0answers
16 views

Downloading KDM Theme in Kubuntu 14.04

Kubuntu blocks KDM from accessing downloaded login screens without "sudo systemsettings" root privilege command in terminal, how do I make a permanent root privilege for kdm? I know in Ubuntu this is ...
1
vote
1answer
23 views

SU setgid: PERMISSION DENIED, SUDO: PERM_ROOT 0, -1, 1 PERMISSION DENIED

Hi I have a problem that I cannot solve. I cannot log into root, su, or sudo. Everything works fine via ssh so I tried on ssh via putty: Set root password: sudo passwd Add user to sudo/admin ...
53
votes
4answers
346k views

How do I start/stop mysql server?

I try find in internet some article where describe how correct start -stop mysql server. I find this article: How to start/stop MySql server on Ubuntu 8.04 | Abhi's Blogging World I run this ...
2
votes
1answer
2k views

Allow chown command to www-data user

Is there a way to allow chown command to be run by www-data but limiting it in a way that the files owner can be changed only to uids greator than that of www-data user? I already researched a lot ...
4
votes
1answer
348 views

Why does hd-idle need sudo to run in rc.local?

I have added a command that runs "hd-idle". It seems to need to run as root as otherwise it does not spin down the drives as instructed. Behavior seems to be the same when executed manually or via ...
0
votes
1answer
21 views

Where does my installed file reside

When I do sudo apt-get install openvpn ... it does not install the file rather it downloads a file and stores some where . Now how can I find where the file has reside.
0
votes
0answers
11 views

“sudo do-release-upgrade” or “do-release-upgrade”? [duplicate]

I see to upgrade Ubuntu to a new release version that I have to do do-release-upgrade which checks for the new version and allows me to upgrade. But would it not be better to do sudo ...
0
votes
0answers
25 views

Software Center crashes every time, even after reinstallation

So my Ubuntu Software Center has been crashing every time I run it. I've tried many attempts to remove it and reinstall it using sudo apt-get, but I have had no success getting it to work. I've even ...
94
votes
12answers
117k views

Error message when I run sudo: unable to resolve host (none)

I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this: ...
13
votes
3answers
75k views

Sudoers file, enable NOPASSWD for user, all commands

Preface This is a fairly complex question related to the Sudoers file and the sudo command in general. NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13.04, that I use ...
27
votes
3answers
14k views

Why doesn't `sudo cd /var/named` work?

I want to cd into /var/named but it gives me a permission denied error, and when I want to use sudo to do this I am not permitted. What is the technical reason for this, and is it possible to do this ...
0
votes
1answer
32 views

Is it good practice to run applications with sudo?

For example, I am using Spotify for linux. Wouldn't I need to run it in sudo so that it can write its song cache to my file system? Also, if you run a program from the launcher, does it get sudo by ...
0
votes
1answer
21 views

GUFW from desktop icon

I am trying to launch gufw from an icon on my desktop. Now gufw requires sudo to run. I found an application that did the same thing but for nautilus ...
16
votes
2answers
9k views

warning message at command line `sudo`

Everytime I try to sudo something at the terminal, I get a warning message: alexandre@XPS-15Z $ sudo mount file.iso /mnt/ -o loop [sudo] password for alexandre: no talloc stackframe at ...
0
votes
1answer
29 views

Any program that use Java needs to be run under sudo?

I have installed a program that needs Java and I've changed to different Java runtime (Oracle). Now every use of java needs to be run from the terminal under sudo. I needs to make it to use Java ...
5
votes
3answers
4k views

Some programs not found when used with sudo

I just installed go to /usr/local/go, and in ~/.bashrc added this line: export PATH=$PATH:/usr/local/go/bin Now go works from the command line, but sudo go gives me: $ sudo go sudo: go: command ...
4
votes
2answers
2k views

Why does Software Centre ask for root password when the default is for root to be disabled with no password set?

This seems odd to me. I can't install software using the "friendly" GUI tool unless I input the root password but by default, my Ubuntu 12.04 has root disabled with no password set. Why doesn't ...
0
votes
1answer
17 views

Sudo specific actions for specific directory

Ok what I want to do is use sudo, I want to give access to a user to run the command: ln -s /source/location /destination/location and only the above command with that location I don't want to ...
34
votes
1answer
46k 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
46 views

Error in sudo apt-get remove -f

I have installed kernel 3.18.2 with Cinnamon on Ubuntu 14.04.1: john@john-G31M-S2C:~$ sudo apt-get remove -f [sudo] password for john: Reading package lists... Done Building dependency tree ...
1
vote
2answers
239 views

i am not able to install flash plugin in firefox and chromium

youtbe videos are not playing on my system. system asks me to install latest flash player. and when i do so, i am getting the response "unable to change to sudoers gid: Operation not permitted" the ...
1
vote
1answer
27 views

Slow sudo and ssmtp (hosts file problem)

I'm running an Ubuntu Server 12.04.5 LTS and when I type sudo su it takes 30+ seconds to open the shell. Searching on internet, this problem seems related to the file /etc/hosts and /etc/hostname. ...
0
votes
2answers
345 views

setresuid operation not permitted when calling via php

I've got following Problem: my Apache and PHP script are running as user www-data. I want to call a script that can only be executed as root, so I added a new File to /etc/sudoers.d to allow this ...
0
votes
2answers
4k views

su: Authentication failure (Ignored)

Keeping in mind this was working before: When I try to login as : su jira1 I get error: su: Authentication failure (Ignored) more /etc/passwd returns: ...
0
votes
1answer
3k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...
1
vote
1answer
38 views

How to install TREE in command line?

How do I install TREE via apt-get in Terminal? I have been trying to do apt-get update tree but nothing seems to happen. Is it necessary to include sudo in the command?
0
votes
4answers
2k views

How to add Domain Admins to sudoers

There is a similar question that has been answered; so, I'm not sure if I should tag on; not believing that I should, I'm proceeding. I'm running Ubuntu 14.04 and have joined our Windows domain using ...
0
votes
1answer
95 views

Update alternatives java for all users

I'm using ubuntu 14.04 with multiple java versions on it. I'm trying to change the current java version for my user with: sudo update-alternatives --config java sudo update-alternatives ...
0
votes
2answers
30 views

No longer a part of sudoers list after adding docker

I naively ran a few commands with sudo while trying to get docker working on my machine. Now upon trying sudo, I get this error: dorsatum is not in the sudoers file. This incident will be reported. ...
0
votes
0answers
13 views

Ubuntu 11.04 unable to boot after apt-get update and apt-get upgrade and can't enter the recovery mode [duplicate]

This happened yesterday, I run the sudo apt-get update and run the sudo apt-get upgrade. After that instance, I saw the error that says, the user is not in the sudoers file. This incident will be ...
0
votes
0answers
32 views

Can't use sudo; permission is denied

The /usr directory permissions are drwxrwxr-- and I cannot use sudo command, because permission is denied. What are my options?
-2
votes
1answer
29 views

i wanna install Intel Compiler. But sudo command does not work

I write the command like this sudo ./install.sh But ubuntu says sudo: ./install.sh: command not found How can I install this program?
11
votes
1answer
10k views

Cannot lock '/etc/group' in recovery mode

I've currently booted into recovery mode, because I removed my sole user from admin :/ When I run adduser oadams admin, I get gpasswd: cannot lock /etc/group; try again later. For what it's worth, ...
0
votes
1answer
29 views

Scheduling shutdown in layman's terms

I'm trying to schedule a shutdown for 10:30pm (22:30) each evening. I am fairly new to Ubuntu. In Windows 7, this was an extremely easy task. Apparently in Ubuntu this is a rather complicated task. ...
1
vote
1answer
48 views

Can not excute commands with sudo

I forgot Ubuntu user password, after referring articles on how to reset user password, I could reset the password for the user. passwd menuka from the recovery mode. However, I tried the new password ...
1
vote
3answers
7k views

Sudo not available in guest login

When I login as guest I am unable to execute any command with sudo. E.g.: sudo ps returns: sudo: unable to change to sudoers gid: Operation not permitted How can I fix this?
6
votes
1answer
164 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
1
vote
1answer
24 views

How to start IPython with sudo

How do I start IPython using sudo? So e.g. when I do sudo optirun ipython it says [40475.566816] [ERROR]Error running "ipython": No such file or directory I know it sounds a bit crazy but I'm ...
1
vote
2answers
86 views

`sudo chmod +x *` caused me cannot open anything

Today I used sudo chmod +x * -R in my $HOME folder, actually I didn't want to use it in $HOME folder, it was an accident. Afterthat I tried to use sudo chmod -x * to fix it. But now, I couldn't open ...
0
votes
0answers
20 views

Ubuntu password from wubi not working [closed]

I installed Ubuntu with wubi today and when I went through the install process. I put in my username and password but when the install was complete and I went to the login page I got two options. ...
0
votes
3answers
3k views

sudo pecl command not found

I'm using ubuntu 12.04 I installed php pear using this command sudo apt-get install php-pear php5-dev I got this results Reading package lists... Done Building dependency tree Reading ...