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
0answers
104 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 ...
2
votes
0answers
140 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
143 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
105 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
323 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
127 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
487 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
257 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
40 views

ubuntu 14.04 sudo issue

I have just installed 14.04 on my computer, there's nothing in that PC then OS and default packages and I'm the only user on machine. When I try to use sudo (to install some programs) I can't login ...
1
vote
0answers
56 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
1
vote
0answers
20 views

Why does sudo sometimes asks for a different sudo user?

i have all my boxes setup to authenticate against openldap. when i logon with the local user (localmin) and run a command like; sudo service smbd restart it sometimes asks for the password of ...
1
vote
0answers
42 views

Strange issue using sudo

When I try to use sudo this is what happens chris@vaio:~$ sudo sudo: 424273033461091241000: invalid value except that doesn't do it justice: I have been having issues with the latest ...
1
vote
0answers
25 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
42 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
182 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
123 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
50 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
32 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
249 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
566 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
79 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
158 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
148 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
360 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
341 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
43 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
31 views

How can I get a new account password using superx

okay I am using SuperX which is an Os based on KDE I am not sure if i can get much help here but lets give it a try. I am trying to install a new Os onto my computer, but it wont allow me to install ...
0
votes
0answers
8 views

Get Access Problem as admin user

I want to access "sudoers" file and also access "su -" but I fail and get following error please check terminal output that I have tried. I am m-usman(admin) but not allow to edit or access ? :( ...
0
votes
0answers
39 views

Networks not working after 14.04 install

Installed 14.04 on a Dell Inspiron 1721 that is running Windows Vista Home parallel. The wired and wireless network works fine in Vista but in Ubuntu it doesn't detect any network connections. I am ...
0
votes
0answers
31 views

Generally-accepted way of giving a user rwx permissions to /etc

I need a non-root user (say, myuser) to be able to have unbridled, recursive rwx access to /etc and anything underneath it. Hence if I execute, say: mkdir /etc/fizz I shouldn't receive any ...
0
votes
0answers
56 views

How to check if fstab file is correct without sudo?

I updated from saucy to trusy. After that, using sudo segfaulted: fkalter@London ~> sudo whoami [sudo] password for fkalter: YubiKey for `fkalter': [1] 16961 segmentation fault ...
0
votes
0answers
15 views

Password restriction is not working

I have two administrator accounts "magesh" and "test". I don't want "test" user to change my password in the UI. I have restricted it in terminal by giving the following commands in /etc/sudoers ...
0
votes
0answers
24 views

Graphical pkexec require username and password

I am wondering if there is a way to have the graphical authentication part of pkexec ask for a username as well as a password instead of just a password. The computer I am trying to get set up is on ...
0
votes
0answers
14 views

Install glogg package with dpkg command and no root privileges

I'm trying to install a package called glogg without root privileges. I have successfully downloaded the .deb file (to $HOME/packages/glogg). But when I run dpkg -i --force-not-root ...
0
votes
0answers
22 views

GUI applications doesn't ask for sudo password

I have bought a VPS and installed Ubuntu 12.04 on it. However I needed a GUI, so I installed xubuntu-desktop packages and a vnc server. That part just works fine, I also created a user, and added it ...
0
votes
0answers
26 views

option `env_reset' does not take a value

This is a problem has bothered me for a long time. When I tried to set proxy for apt-get command, I found a manual in the net. It said that use visudo to edit sudoers file could set proxy for ...
0
votes
0answers
10 views

How to gain root access to UEC image?

When openstack creates an instance from a UEC image (using precise amd64), the SSH public key is successfully injected via cloud-init and I'm able to ssh into the instance via the ubuntu account, but ...
0
votes
0answers
46 views

Home folder gone, unable to launch GUI, unable to use root from command line

I have upgraded to 14.04 but on reboot I was unable to login to my account, it flashed some code for a second then returned to the login prompt. I can now login but it takes me to a completely blank ...
0
votes
0answers
32 views

User has Sudo access locally but not remotly

I've got a ubuntu desktop installed as a vm on win 2012 server. I've installed Likewise Active Directory to allow domain users to log into the machine with windows credentials. In my sudoers file I've ...
0
votes
0answers
35 views

Errors were encountered while processing

When trying to do sudo apt-get install I'm getting this at the end: Processing triggers for python-central ... Errors were encountered while processing: logmein-client:i386 E: Sub-process ...
0
votes
0answers
101 views

sudo not working after rsync - unable to open /etc/sudoers: Permission denied

Bought a new drive. Formatted to ext4, mounted the partition and ran sudo rsync -aAX --delete /* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} This moved all my ...
0
votes
0answers
24 views

How to avoide log out and log in while editing the sudoers file

I have edited the sudoers file by following the link. So far so good. It say "Log out, and then back in", for sure to see the effects. Is there a way to see the effects with out doing this: "Log ...
0
votes
0answers
267 views

sudoers entry does not work

I recently updated my ubuntu to 14.04. I have an script which calls just sudo hidd --search, that I start to connect my bluetooth mouse. Now I made an entry to /etc/sudoers like this: markus ...
0
votes
0answers
21 views

USB needs superuser

So I recently plugged in an USB and I don't know why it needs superuser now. When I go to nemo in sudo, It listed my old USB as usb1 and my new USB as Ducky Momo (It's name is Ducky Momo and it's a ...
0
votes
0answers
166 views

Upgraded Server from 12.04 LTS to 14.04 LTS - lost sudoers

I am no longer able to control my server from the one user I have access to. When performing sudo commands, I am presented with the following error: USERNAMEHERE is not in the sudoers file. This ...
0
votes
0answers
111 views

Cannot change “Sudo Front Header” in Peer Guardian

I have been told this is not an issue with Peer Guardian. When setting up peer guardian I cannot change my "Sudo Front Header." I recieve no error messages but when trying to edit settings after ...
0
votes
0answers
29 views

directory locked

I have been trying to install virtualbox using this command: sudo apt-get install virtualbox.qt But I am getting this error: E: Unable to lock directory /var/cache/apt/archives/ I have been ...
0
votes
0answers
106 views

Allow user to run programs as root without password. Would it be the correct solution to my problem?

I have a server which I need to be running certain programs permanently; I'm having problems with two of them and I'm not sure if the solution I've found would be the correct one, so I ask for opinion ...
0
votes
0answers
467 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
45 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 ...