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)

2
votes
1answer
17 views

“apt-get install wget” installs wget with 000 permissions

I need to install wget and so I used sudo apt-get install wget, and it did, in fact, install it to /usr/bin/wget, but the permissions are all wrong (other lines for context): -rwxr-xr-x 1 root ...
0
votes
1answer
22 views

can't type my password in terminal [duplicate]

I am trying to install torrent, so I typed some commands like: sudo apt-get install libssl0.9.8:i386 after this command: [sudo] password for shiddhant: here is the problem comes, the cursor was ...
0
votes
2answers
32 views

No sudo or root access anymore [duplicate]

I'm afraid I locked myself out of the sudo/root options. The one account that had sudo rights now reports that it doesn't have these anymore. How can I restore this? Do I need to use a live stick?
2
votes
1answer
19 views

Can't edit plugins/sudoers/ins_*.h

I am trying to edit the list of insults in Ubuntu which, as described here, are located in plugins/sudoers/ins_*.h. I have tried: sudo visudo -f /plugins/sudoers/ins_*.h which should edit that ...
0
votes
0answers
19 views

How to run an alias command with sudo [duplicate]

I created an alias called runmc that allows me to start up a java program. But I noticed that when I type in "sudo runmc" (It needs root access to work properly.), it will display "runmc: command not ...
1
vote
1answer
18 views

Program accessible only to super user

I installed TeXLive through the .iso file provided in the website. To check the installation I tried tex --version and it returned something like The program 'tex' is currently not installed. You can ...
0
votes
0answers
18 views

We use sudo so i assume there is no SU passwoird or is it random? How tough is it if it exists? [duplicate]

We use sudo su. I assume there is no root password and is default? How tough is it if password exists?
1
vote
1answer
24 views

how to create admin account as a duplicate root account for telnet and disable root login over network?

I've been searching for the answer to this but all I find is "It doesn't work". I am a new, yes. I am still a student and i still learn about it. I am happy to break my OS and format it many times if ...
1
vote
1answer
46 views

Ubuntu Sudo Command not working

I mistakenly excuted: $ sudo chmod -R 777 /* I can not run sudo any more: I have tried changing the permissions with recovery mode but when I log in back into my account sudo is not still working. ...
0
votes
1answer
32 views

Problem with sudo via ssh

I'm using the following script to execute a update script on a certain number of servers in my network. Here is the part, which I think that is relevant. ### Actual Work ### if [[ $manual == 1 ]]; ...
0
votes
1answer
27 views

How is the default user given sudo access without being listed in sudoers?

I have a question about command sudo. Basically, you know, sudo allows any permitted users who enrolled in the /etc/sudoers to perform some commands specified in it. At this point, I wonder how my ...
0
votes
0answers
9 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
61 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
1answer
26 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
33 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
28 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
18 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
32 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
51 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
35 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
17 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
20 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
32 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
32 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
118 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
49 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
34 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
49 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
75 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
28 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
38 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
46 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
50 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
62 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
76 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
70 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
46 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
39 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
36 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
73 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
476 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
85 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
33 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
31 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
26 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
58 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
42 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
73 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
52 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