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

Can i use “gksu” to became root for CLI operation?

I don't care if this is unsafe, because i'm only doing it as a programming exercise, but that's what i want to do: I want to create a C program that, with the "system" command, will call dpkg and ...
0
votes
1answer
114 views

What is the reason for /etc/sudoers near line 23 error?

I fix that /etc/sudoers near line 23 error by using pkexec visudo command. But I don't know the reason. Can any one tell me the reason? And how to prevent these type of error in future? My File Like ...
0
votes
2answers
51 views

Shutdown privileges problem

I have found that when I click the shutdown button when logged into a normal user account that once it has terminated all running processes and it says something about a modem shutting down, it can ...
1
vote
2answers
120 views

Undo the “sudo” within a script [duplicate]

Is there any way to undo the sudo within the script? like.. sudo ./script.sh commands 1,2,3,4,5 with sudo rights commands 6,7,8,9 without sudo rights
0
votes
0answers
84 views

sudo : tty not found

This has been a very recent problem. Every time I log into my user session, a dialog box pops up saying: sudo: tty not found and no askpass program specified It also says that the user session is ...
0
votes
0answers
29 views

How is the UID of a user passed to sudo, eg in a “sudo mount…” command?

When I runsudo mount -t nfs -o udp,vers=3,soft,intr,rsize=8192,wsize=8192 nas:/nfs/shares/kevin /mnt/nas/ I know that to be successful my UID must match the UID of the owner of the exported filesystem ...
2
votes
1answer
56 views

Filemanager that asks for sudo rights when it needs it [duplicate]

On my Mac I can copy files using the Finder, and if the destination folder has a different owner, a window pops up and asks for credentials. On Ubuntu or Linux Mint I don't see anything like that. ...
1
vote
0answers
2k views

sudo useradd: cannot lock /etc/passwd; try again later (no lock files)

When doing this on Ubuntu server 14.04: camilstaps@localhost:~$ sudo useradd --home-dir /var/www/xxx.camilstaps.nl/ --no-create-home --root /var/www/xxx.camilstaps.nl/ --shell /bin/sh xxx I'm ...
1
vote
1answer
96 views

Fstab doesn't update permissions or ownership rules [duplicate]

I mount a FAT32 filesystem (because it needs to be compatible with windows) that has an SVN repository on it. It is mounted with owners root:plugdev and permissions rwxrwx--- . My user account is a ...
1
vote
1answer
121 views

Error :invalid protocol while installing phonegap

pramod@pramod-Inspiron-5520:~$ sudo npm install -g phonegap npm ERR! Error: Invalid protocol npm ERR! at Request.init (/usr/lib/nodejs/request/index.js:361:51) npm ERR! at new Request ...
0
votes
0answers
49 views

User doesn't get gksu dialog so apps just fail

I am using Ubuntu with Xfce on Android in a chroot (via Linux Deploy). When I try to run some software that requires admin/root access the GUI does not prompt me for the admin password like it does ...
0
votes
1answer
41 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
115 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 ...
10
votes
2answers
242 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
354 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
175 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
2k 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
530 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
67 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
74 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
233 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
147 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
148 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
136 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
185 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
81 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 ...
3
votes
2answers
144 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, ...
2
votes
1answer
146 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
125 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
686 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
102 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
50 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
105 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
35 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
251 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
104 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
157 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
90 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
33 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
110 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
226 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
62 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
264 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
57 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
18 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
47 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
46 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
93 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
37 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
313 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 ...