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
1answer
34 views

New to Ubuntu! Help?

Good Morning Everyone, I have taken the leap to Linux from a life of Windows and OS X. And I'm stuck! I am trying to install Sense from the Open University and it looks like I have to follow a ...
0
votes
1answer
42 views

Power management failure and /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

A few days age I purchased a new laptop, Asus X751MD, and I installed the 64 bit Kubuntu version of 14.10. After installing some programs and restarting the computer, I got the power management ...
9
votes
2answers
142 views

Run only parts of a script as sudo, entering password only once

I am writing a script (actually a combination of scripts and makefile) that installs external dependencies: some apt-get commands, some git cloning, building, installing, adding users to groups, ... ...
1
vote
4answers
65 views

How do I check if my root password (login) is disabled?

I accidentally enabled(set) my root password (by default it is locked), and now I want to "undo" it. I used both commands sudo usermod -p '!' root and sudo passwd -dl root in that order. How do ...
0
votes
1answer
42 views

A file (/usr/bin/sudo) highlighted with red in Terminal

Anyone knows what it means when '/usr/bin/sudo' is highlighted with red in the terminal? This wasn't like this a few minutes ago Apologies if this is a dumb question, but it's been a while I had to ...
0
votes
1answer
97 views

sudo must be owned by uid 0 and have the setuid bit set

I am trying to run the following command: d@d-Aspire-M5 ~ $ echo "My username is: `whoami`" My username is: d d@d-Aspire-M5 ~ $ sudo chown -R `whoami` /usr/local/lib/node_modules sudo: /usr/bin/sudo ...
0
votes
1answer
127 views

How do I get into recovery mode on ubuntu 14.04 if the option not showing

I just boot up my laptop then run the sudo apt-get update command, but there's an error says [username] is not in the sudoers file. This incident will be reported. .so I search the google for ...
0
votes
1answer
35 views

problem with software center 12.04

I have been using 12.04 in dell vostro since a year. It was working properly but suddenly the Ubuntu Software Center has started hanging. Now it doesn't open. And every time I try to open it, I have ...
0
votes
1answer
45 views

How do I add a command permission to specific user to do it without password? [duplicate]

I want to give permission to a user to do shutdown command without password. Shutdown command need root privileges. If I give NOPASSWD in /etc/sudoers, the user can do all command that need root ...
0
votes
1answer
61 views

Reset default permissions for /etc [duplicate]

I did a silly thing. I changed the permissions of my /etc folder using sudo chmod -R ugo+rw /etc After that I did some damage control using the command pkexec chmod 755 /etc Then I was able to ...
2
votes
1answer
70 views

Cannot Run Rscript from PHP but it runs perfect from terminal

I'm new to Ubuntu I'm trying to execute an Rscript in PHP using exec. However it doesnt run. When I run it from the terminal it executes perfectly. This is the code I run from commandline: ...
0
votes
1answer
73 views

bash- Control-C behavior (^C) / gksudo vs sudo

This is about how the ctrl+c key press has a different effect when performed to a gksudo instance as opposed to a sudo instance. I executed the following using gksudo to read an installation failure ...
-2
votes
2answers
96 views

My mirror gave me a 403 response

sudo wget http://mirror.anl.gov/pub/ubuntu/dists/precise/main/installer-amd64/current/images/netboot/xen/initrd.gz This command did not work for me. The terminal just shows me this message: http ...
2
votes
4answers
84 views

Alternative way to run a sudo command on startup

I am trying to write a script for my Ubuntu system to hibernate, whenever the amount of battery left is (say) 5%. This script will run on startup. I can get the battery left using upower -d |grep ...
0
votes
1answer
51 views

How can I shut down the system from command line without sudo? [duplicate]

I'm not the administrator, so I'm not in the sudo list. How can I shut down the computer from command line without sudo? As I can shut down the computer from GUI, I must be able to get the privilege ...
2
votes
2answers
52 views

sudo does not change sysfs parameters [duplicate]

I can not run following command with sudo to change a sysfs paramete: $ sudo echo 300 > /sys/block/md0/md/stripe_cache_size bash: /sys/block/md0/md/stripe_cache_size: Permission denied However, ...
1
vote
1answer
44 views

Asks password when trying to install Boot-Repair

I'm trying to install Boot-Repair directly from Lubuntu, but after typing the line "sudo add-apt-repository ppa:yannubuntu/boot-repair" in the terminal (as suggested here: ...
0
votes
3answers
78 views

Shut down terminal sudo command

I would like to know which is the proper sudo terminal command to shutdown the computer gradually, saving everything, closing everything in the right order, and basically doing everything the computer ...
1
vote
2answers
490 views

Difference between `sudo su` and `sudo fish` [duplicate]

I am running fish (Friendly Interactive Shell) as my standard shell in Ubuntu 14.04, rather than bash. I noticed the following behaviour and don't know, if any of these are the preferred one to gain ...
0
votes
3answers
87 views

How to do “SUDO UPDATE and SUDO UPGRADE” without errors (NEWBIE) [duplicate]

Just check out the file attached to this link http://1drv.ms/1yQpeTH to understand the situation
-1
votes
1answer
36 views

Can I uninstall sudo in ubuntu 14.04 using Ubuntu Software Center

sudo command in my terminal gives error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set In the root shell prompt in recovery mode of grub, I am not able to type any command. ...
0
votes
1answer
40 views

How can I get a .sh file to run as Sudo in profile.d?

I have a .sh script that needs to run to check if a machine has had certain parameters set. I've placed it in the profile.d directory but I need this script to run with sudo privilege. Does anyone ...
0
votes
1answer
27 views

Software Updater not starting up

So my original problem was that I couldn't get the ubuntu software centre to startup, it would just freeze for a while loading and then would crash. So i tried to remove USC : Successfully When I ...
0
votes
0answers
83 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
55 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 ...
0
votes
1answer
93 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 ...
0
votes
0answers
62 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
0answers
31 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
69 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
83 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
40 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
107 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 ...
0
votes
1answer
39 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
14 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
38 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 ...
0
votes
1answer
40 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
46 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 ...
0
votes
1answer
22 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 ...
0
votes
2answers
165 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 ...
0
votes
1answer
43 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 ...
1
vote
1answer
59 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. ...
1
vote
1answer
107 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
1answer
333 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
49 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
35 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
37 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?
0
votes
1answer
40 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
59 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
1answer
52 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 ...