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

Why do some commands in rc.local still need sudo to run?

I have added a command that runs "hd-idle". It seems to need to run as root as otherwise it does not spin down the drives as instructed. Behavior seems to be the same when executed manually or via ...
2
votes
0answers
37 views

How do I remove sudo from my server without breaking everything?

I am creating a test server VM, and I would like to delete the sudo executable by deleting it via apt. I know the root password, so that is not a downside. Is there any problem about removing sudo ...
2
votes
0answers
1k 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
151 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
155 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
120 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
332 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
137 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
564 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
282 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
10 views

SFTP as a different user than you logged in with

I connect to my work machine over SSH. Sometimes I transfer files back and forth using using Nautilus' "Connect to Server" feature. Sometimes I change to the root user and run commands. But I cannot ...
1
vote
0answers
53 views

Ubuntu 14.10 asks permissions for everything

I just made a clean install of Ubuntu 14.10, since I had a 14.04 that I had upgraded a few times. After the install, the OS asks root permissions for a lot of stuff I was able to do without issues ...
1
vote
0answers
35 views

How to disable mpm-itk for a specific virtualhost?

I've a main site on a server that needs to run a sudo command which I white listed via visudo. That worked fine until I installed apache-mpm-itk and then I started getting the following error: sudo: ...
1
vote
0answers
26 views

GUI anthentication doesn't work. No privileges

This is on Xubuntu 14.04 64-bit After a forced restart (due to nvidia overheating) I noticed that no sound was playing, and in fact pulseaudio showed only dummy devices. While looking for a solution, ...
1
vote
0answers
239 views

Ubuntu 14.04 - Jenkins User NOPASSWD configuration

I'm trying to make my jenkins user able to execute a script with www-data user so I've tried adding jenkins ALL=NOPASSWD:ALL at the end of my sudoers file but it didn't work, password was asked ...
1
vote
0answers
53 views

Why does sudo prevent catching SIGTSTP (Ctrl+Z)?

This program is written to catch SIGTSTP (Ctrl+Z) and bypass its normal effect, printing a message and returning to its normal operation instead of allowing its process to be suspended: ...
1
vote
0answers
176 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
24 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
260 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 ...
1
vote
0answers
43 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
183 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 ...
1
vote
0answers
37 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
59 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
303 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
152 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 [email protected]: wanted: {"node":"0.8.x"} (current: ...
1
vote
0answers
62 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
34 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
278 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
602 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
81 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
175 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
162 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
381 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
406 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
25 views

Creating a sudo && code && prior installing all necessary software?

I'm testing out a code to install most common stuff, update the system and perform post-installation cleanup on fresh install. Allot of stuff can be done with just 1 click. EDIT: Were talking here ...
0
votes
0answers
8 views

IAM role in ubuntu

I am facing 'RepositoryException' when I tried to host snapshot data of elastic search data from windows to linux machine. I think its due to user permission issue. Browsing this link , its told that ...
0
votes
0answers
17 views

User was deleted after reboot

Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user and confirmed everything was okay using ...
0
votes
0answers
26 views

How to leave root without exit command or ctrl+D

I'm logged in as root to do some stuff, and i have Tmux open. The trouble is, when I type 'exit' to leave root, it instead closes Tmux, because they use the same command. Is there a way to switch back ...
0
votes
0answers
30 views

Can only commit changes to dconf as root

This is all over ssh. If I run gedit I get lots of dconf errors (gedit:35765): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused If I run sudo gedit I get ...
0
votes
0answers
21 views

Install boto without password

I am new to Ubuntu. I have a virtual box on a Windows 7 computer. I went to this page. https://github.com/boto/boto I need to install boto. The commands are $ git clone ...
0
votes
0answers
27 views

Whitelist a program as admin

Everytime I run WICD (Network Manager) it requires my password for permission. I'm not against Ubuntu asking for passwords in general but everytime I log in is a little excessive. Is there a way to ...
0
votes
0answers
47 views

When running a shell script using sudo I am getting no tty present and no askpass program specified

I am trying to build a project using jenkins. The project is based on node. I wrote a shell script that has only npm install command. I am running the shell script from jenkins as sh ...
0
votes
0answers
104 views

My ubuntu is broken, error with gksu!

I keep getting this when is use gksu nautilus: shonn@shonn-Satellite-A505:~$ gksu nautilus Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net ...
0
votes
0answers
43 views

sudo command not working

When I try to use the command sudo mountall, the following error message appears: sudo: unable to open /var/lib/sudo/username/1: No such file or directory So how do I solve this?
0
votes
0answers
26 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
0
votes
0answers
25 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
78 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
38 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
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 ...