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)

3
votes
0answers
32 views

Sudo commands are run without entering the root password, how to stop this?(Ubuntu 14.04)

I haven't edited my sudoers, but I don't have to enter the password when running a sudo command line in the terminal. I can run any sudo command without entering the password, how can I stop this ?
2
votes
0answers
119 views

How do I reinstate my admin user privileges to global read/write

I am running Ubuntu 12.04 LTS. I only have the one user which I created when I installed Ubuntu. Everything has been fine - love it - until I updated a software package recently from the command line ...
2
votes
0answers
128 views

Entry in sudoers

I need the following entry for a autoresponder/vacation plugin for roundcube with plesk: www-data ALL=NOPASSWD: /opt/psa/bin/autoresponder But the system doesn't recognize www-data as a user. Only ...
2
votes
0answers
95 views

How can I configure sudo to prompt for password and show the executed command?

The title says it all. How can I configure sudo to prompt for password and show the executed command? Rationale: if something gets aliased in the shell or I end up executing a function sudo instead ...
2
votes
0answers
309 views

Lubuntu 12.10 asks for super user before prompting for wifi password

I have installed Lubuntu 12.10 on an HP Mini netbook, which required the bcwm source package for wifi to work. (Somehow standard ubuntu didn't need it but it was too resource hungry for the netbook.) ...
2
votes
0answers
114 views

Prevent that TrueCrypt gets Administrator rights

If I try to open a TrueCrypt drive, TrueCrypt asks me for my administrator-password (also when I am a normal user). I know, that i can prevent this password-asking by editing the sudoers file = giving ...
2
votes
0answers
417 views

How do I know my system is broken after chown -R root usr/bin?

This question is related to another question -- "Can't access any functions after chown command." -- but I think it may be worthy of an independent question. My question is: how do I know that my ...
2
votes
0answers
228 views

Eclipse Juno won't open gui java apps when run with gksudo

I have Eclipse Juno installed on Ubuntu 12.04. When I run from the command line with sudo, everything works fine. However, when I follow the advice I see everywhere and run it with gksudo, I get the ...
1
vote
0answers
12 views

How to give groups and users different permissions.

I have an assignment whereby I am asked to create 5 user accounts in Ubuntu and then create 3 groups for them to belong to. This part I did just fine. There are now 5 user accounts in my Ubuntu OS ...
1
vote
0answers
30 views

Run eclipse project as root without running eclipse as root

How can one execute eclipse project as root without running eclipse as root? I'm writing a C++ program that uses Opencv and Boost libraries. When trying to execute the program, I get the following ...
1
vote
0answers
86 views

cannot execute script with sudo no password

I would like to create a batch file that will connect via ssh to my ubuntu server and run a script. My batch file works by using plink, I can see that the call to my script is ran but then I'm asked ...
1
vote
0answers
83 views

Forever cannot be installed

While trying to install Forever using this command: sudo npm -g install forever I'm getting this error: npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: ...
1
vote
0answers
83 views

vim colorschemes don't appear correct when using sudoedit

I've been trying to be a good little sysadmin and use sudoedit, instead of sudo vim, or sudo -i;vim, when making changes to root owned files (ex /etc/profile), but my vim colorscheme doesn't seem to ...
1
vote
0answers
44 views

How to allow local logins, after misconfiguring PAM in AD integration process

Aim: Create an R server that integrates into our Windows environment by setting up AD integration on an Ubuntu box Using: Ubuntu 12.04 LTS Following: ...
1
vote
0answers
30 views

How can I stop a process from moving to the background?

I have a machine running Ubuntu server version 12.04.3 LTS. On it, I'm attempting to run a node.js server that needs to stay up and running at all times. I'm running into an issue, however, where ...
1
vote
0answers
209 views

sudo -Hu rsyncuser rsync --progress -avz /source/path/ host.org:/destination/path/ - why does it change directory permissions?

here is my setup: on my source machine i created user rsyncuser with reading and writing permissions in /source/path on my destination machine i created user rsyncuser with reading and writing ...
1
vote
0answers
248 views

Running a program as another user without typing a password

I'm trying to mark my browser internet traffic with a DSCP by selecting the packages with a certain owner. In order to do that I have to start my browser with a dummy user. I start my browser by ...
1
vote
0answers
458 views

Red Triangle with exclamation mark, next to wifi symbol, in ubuntu 13.04

I have a red triangle at top on screen, that says "The update information is outdated. This may be caused by network problems or by a repository that is no longer available. Please update manually ...
1
vote
0answers
75 views

Sudo and Launcher icons not working, hard-disks not mounting

I am running a server on Ubuntu 12.04 (desktop) LTS. This has been working fine until today when a few minutes ago it decided to change some stuff alone. Launcher icons not working Launcher icons ...
1
vote
0answers
138 views

how to recover file and folder permission?

I made this mistake at the /usr directory sudo chmod -R 777 bin The next time i used sudo, it gives me this prompt: sudo must be setuid root What I did is copy and replaced this sudo thinking it ...
1
vote
0answers
486 views

Upgrading from 12.10 to 13.04 -> dpkg: error processing sudo (--configure)

Here's the deal and reason I'm asking for your help. Last night I went on upgrading my Xubuntu 12.10 installation to 13.04, so at tty1 I run the command sudo do-release-upgrade and everything ...
1
vote
0answers
134 views

stty doesn't reset with sudo after Ctrl + C

Let's say I have following simple PHP script: misan@thrope:~/tests$ cat stty.php <?php shell_exec('stty -icanon -echo'); // exit; $fh = fopen('php://stdin', 'r'); while (!feof($fh)) { $c = ...
1
vote
0answers
333 views

“Unable to locate package” error in Ubuntu 12.10

I'm new to Ubuntu and trying to install softwares. But in every case I get this error: `E: Unable to locate package sun-java6-plugin` while using sudo apt-get install command. I've installed a ...
1
vote
0answers
248 views

How to download sources for sudo?

I would like to get the sources for sudo and I found out that I am suppose to use sudo apt-get source sudo, but then it says it does not find any sources (even though i have told the Software Manager ...
1
vote
0answers
41 views

Give permissions for packages downloaded from the internet and lock them in Ubuntu 12.04 sidebar

I downloaded NetBeans IDE and Eclipse IDE from the internet and installed then. Well, the Eclipse IDE works fine, but when I execute NetBeans IDE directly from the shortcut, without sudo permission, ...
0
votes
0answers
7 views

Is sudo 775 - R /var/www/ proper permission for Lamp

i am trying to give below permission sudo 775 - R /var/www/ all folders and all files permission for www folder of lamp for sudo user.Is it good for system.
0
votes
0answers
34 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
0
votes
0answers
45 views

passwd : Authentication Token Manipulation Error

I couldn't use the command mount -rw -o remount / . This command asks for sudo password and then when i typed my password, it shows Your password has expired. It is almost a deadlock now. Somebody ...
0
votes
0answers
13 views

/etc/sudoers.d: Too many open files during npm install

When I ran npm install the first time, it suddenly slowed down my system to a crawl. Moving the cursor would take about 30 seconds to register on screen. Evenually NPM finished with a failure and ...
0
votes
0answers
12 views

faillog command doesn't work for all users

I set faillog to lock my users after 3 login attempt failures, but it works only for users belong to "sudo group" I searched the faillog(8) man page for ubuntu 13.04 in http://manpages.ubuntu.com , ...
0
votes
0answers
24 views

Problem installing GAZEBO on ubuntu 12.10 (broken package)

i was trying to install gazebo in my ubuntu 12.0, following the steps in "gazebosim.org/wiki/1.2/install" . However, after i input sudo apt-get install gazebo in terminal as step 4 suggested, it ...
0
votes
0answers
10 views

Trying to install Kdenlive--source directory?

I am a total linux illiterate, but I'm trying to get my head down and make things work. I have downloaded Kdenlive from web, want to install in root but get error message after typing sudo make ...
0
votes
0answers
13 views

how to repository?

I have been trying to setup a PXE server from terminal of another PXE server, at the very beginning I am trying to create repository, I keep on getting this error. sudo: /etc/sudoers is mode 0755, ...
0
votes
0answers
512 views

sudo: unable to change to sudoers gid: Operation not permitted

I installed Ubuntu server 12.04, then I installed ubuntu-desktop. After I installed the desktop interface. I was not able to login with to the administrator account. When I use su and put user/pwd it ...
0
votes
0answers
22 views

sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operation not permitted

I am not able to login as super user. Here's the output of setresuid(): sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operation not permitted
0
votes
0answers
37 views

Changed user password, can log into computer, but can no longer issue sudo command

I am currently running Ubuntu 12.04 and I recently changed my account password. Before the password change, I was able to run commands via sudo when necessary while using my old password with no ...
0
votes
0answers
11 views

Wrong Scrollbars - sudo and SSH

I prefer the overlay scrollbars to the default Gnome scrollbars. These work fine except in two cases: Using sudo, like sudo synaptic. Using SSH to open an X application on a remote server. Or in ...
0
votes
0answers
58 views

sudo not working due to incorrect permissions

I broke my ubuntu server by typing the command chmod -R 777. Im trying to get it back to normal. Problems: When I try to use sudo, I get the error: sudo: unable to open /etc/sudoers.d/README: ...
0
votes
0answers
26 views

sudo part of tutorial for bootable usb

I've been trying to create a boo-table usb stick with Ubuntu on my macbook pro. I got to the part of the tutorial where it said to use the following command: sudo dd if=./target.dmg of=/STORE\ N\ ...
0
votes
0answers
38 views

Using xcfe4 to run apps requiring sudo user

Total newb. I installed Ubuntu 13.10 desktop to use as a server to play with on my home network. Intended to use RDP from Windows and found Unity 3D made this impossible (blank screen) so I've ...
0
votes
0answers
88 views

Error installing rails 3.2.14

I get the following error while installing Rails 3.2.14: With sudo apt-get install rails apt 0.8.16~exp12ubuntu10.16 for amd64 compiled on Nov 15 2013 15:33:57 Supported modules: *Ver: Standard .deb ...
0
votes
0answers
34 views

I attempeted to format ubuntu

I was trying to format ubuntu so i selected Restore to Factory Settings but nothing happened so i deleted all the partitions including the admin so now i am trying to make the partitions using guest ...
0
votes
0answers
20 views

recover data from autoclean

I have used sudo apt-get autoclean command and sudo apt-get clean command but didn't knew that I'll loose all my data. Is there any way to recover that data?
0
votes
0answers
65 views

Fix permissions for /usr

While trying to install adobe-flashplayer as a normal user (via a setuid binary, don't ask!), I suddenly noticed that the owner for /usr had been changed to myusername.myusername! Apparently, this is ...
0
votes
0answers
22 views

Lubuntu - unexplained message when hibernating - several users logged in but I'm the only one using it

Since quite recently, my laptop doesn't hibernate properly. Whenever I want to select an option, I get a message saying You need to authenticate as a super user to hibernate while several users are ...
0
votes
0answers
91 views

Run a specific program as root without asking for password everytime

I am using ubuntu 12.04 LTS and Many times, i need to connect modem using SAKIS-3G script and because modem-manager sucks many times. I need to supply admin/root password, everytime i need to run ...
0
votes
0answers
66 views

why sudo -s doesn't work in my script

I wrote a script and it didn't work!!! can any one tell me what is wrong! #!/bin/bash sudo -s mkdir -p /opt/Sim/Test/
0
votes
0answers
66 views

I m not being able to install LEX and Yacc in ubuntu.

I m not being able to install lex and yacc in ubuntu. I m not being able to download the analyzer as well. I have tried the command sudo apt-get install byacc flex. Its urgent please
0
votes
0answers
36 views

How to set the superuser bit?

I have a backup script that contains several "sudo" commands. I don't want to have to type my username and password each time I run this script. So, I tried to add the "SUID" bit like this: sudo ...
0
votes
0answers
142 views

Never wrote password when setting up crouton on Chromebook, how do I set it up?

Since it never showed anything as much as I typed, I thought it was a bug so I just pressed enter 3 times until it let me set up my account without a password. But now I want to run Unity from sudo ...