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
308 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 ...
2
votes
0answers
77 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: ...
2
votes
0answers
43 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
167 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
165 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
127 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
346 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
164 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
670 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 ...
1
vote
0answers
9 views

How to use Sublime Text 2 to edit file in /var/ directory

Recently I've switched over to Ubuntu 12.04 because I really like the GUI and the way it operates apposed to Windows 8. I just set up a Apache server on here so that I am able to continue my hobby of ...
1
vote
0answers
22 views

Reset sudoers file

I want to add a new user to run all commands without a password, so I went to edit /etc/sudoers (using visudo of course) by adding the line myuser ALL=NOPASSWD: ALL. Everything is OK, but 15 minutes ...
1
vote
0answers
38 views

$password with ssh chpasswd

I've a problem with "ssh chpasswd" .. I need to implement the "$password" of register.. Eg.. I've this code.. echo $ssh->exec("sudo sh -c 'echo $user:test | chpasswd'"); When the script is ...
1
vote
0answers
30 views

Sudo is not owned by root on a fresh install of 14.04 on a VPS. Huh?

Sudo is not owned by root on a fresh install of 14.04 on a VPS. Not familiar with this stuff. So why, what does it all mean and what can I do about it? Steps are: From the VPS management web pages ...
1
vote
0answers
464 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
0answers
316 views

Sudo apt-get update not working probelm with mono-xamarin

When I run sudo apt-get update I get the error: E: Malformed line 4 in source list /etc/apt/sources.list.d/mono-xamarin.list (type) E: The list of sources could not be read Does anyone know how to ...
1
vote
0answers
40 views

Cannot go into Root

When I enter sudo su or sudo -i in terminal on Ubuntu 12.04, I cannot become superuser. When I enter the password nothing happens. Its like: user@host~: sudo -i enter passwd: ****** user@host~: ...
1
vote
0answers
147 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
171 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
73 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?
1
vote
0answers
96 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
742 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
93 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
408 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
32 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
510 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
45 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
96 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 ...
1
vote
0answers
247 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
74 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
387 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
79 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
358 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
195 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
45 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
18 views

Issue when running from terminal

I've tried running GParted from the terminal but after requesting for my password nothing happened. Now I'm trying to install Eclipse following the instructions here but I'm stuck on Step 4. When I ...
0
votes
0answers
19 views

how can i detect the sound card as i am not a sudo user?

i have to detect sound card in my laptop,but i am not a sudo user so i cannot execute any sudo commands. i am also unable to detect the soundcard,thus i don't know the way of solving this problem. ...
0
votes
0answers
19 views

Disable Root — what password will it ask for when I do Sudo

My web-host recommends disabling root. I've created a non-root-user with a non-root-user's-password in the sudo group. So far so good. Here's my question. Usually, when I do sudo, Ubuntu asks for ...
0
votes
0answers
56 views

Recurrent segmentation fault errors after upgrade to 15.04

After I upgraded from Ubuntu 14.10 to Ubuntu 15.04, on an amd64 system, many applications that I run force-close because of a segmentation fault. I have tracked down the errors with dmesg and I can ...
0
votes
0answers
10 views

gksudo equivalent for Ubuntu Touch

Is there a gksudo equivalent (or Cpp / Qml api call) that lets you ask for a password in a graphical way on Ubuntu Touch? Thanks
0
votes
0answers
34 views

Can't change password Ubuntu 14.04 LTS after try many ways

I'm suffering with a suck problem. When I installed Ubuntu 14.04, I created a password but seem I tick start without log in. After few day using normally, I show a pop-up ask me to authentication for ...
0
votes
0answers
36 views

sudo permission errors or “command not found” errors when working on a hybrid SSD/HDD setup? (specific example: MATLAB installer)

Since my SSD is small, I still relegate it to only holding the OS. So, during Ubuntu install, I created a 60 GB partition for / on my SSD, and a 500 GB partition for /home on my HDD. However, now I ...
0
votes
0answers
17 views

How to build libgee (“undefined reference to 'g_get_num_processors'”)?

I am not able to install libgee. When I tried running on the command line sudo apt-get install libgee it said libgee is already in its latest version, when it is actually is not in its latest ...
0
votes
0answers
32 views

Allow sudo in default guest account

I am trying to run Microsoft Office for some public workstations. I have added the following entry to my sudoers file: %win ALL=(windows) NOPASSWD: /usr/share/playonlinux/ /home/windows/.PlayOnLinux ...
0
votes
0answers
31 views

sudo apt-get update cannot fetch the server why?

I use Ubuntu 14.04.2 LTS (GNU/Linux 3.14.33-ti-r50 armv7l) in my device.When I try sudo apt-get update I see this error below: Err http://ports.ubuntu.com trusty InRelease W: Failed to fetch ...
0
votes
0answers
26 views

Ubuntu server wont let me change to root or add my default user to sudoers

So I'm trying to learn how to set up a headless server and I got everything installed I made a root password and that wont work with su and then I try to sudo with my default log in and it wont let me ...
0
votes
0answers
19 views

Error when attempting to update Ubuntu 14.04

I am using Ubuntu 14.04.When I attempt to update: sudo apt-get install -f I see this error: kg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . ...
0
votes
0answers
27 views

Can't install software through USC or open synaptic even though only user

I am running Xubuntu 12.04 LTS on my Toshiba Chromebook 2 and it seems I have been removed from the admin list, even though I am the only user on my device, ChromeOS and Ubutntu. I see proof of this ...
0
votes
0answers
18 views

How to change a read-only file System

My roommates 2011 Macbook Pro died today. I made a flashbootable version of ubuntu and booted from it on his mac. I can move around his drive's directories, and while trying to solve this problem I ...
0
votes
0answers
55 views

XDG_Runtime_dir Variable not set

Per this link: http://superuser.com/questions/269407/apt-get-behind-proxy-on-virtualbox-ubuntu/506066#506066 I update my ~/.bashrc file with export http_proxy="<my proxy>" export ...
0
votes
0answers
15 views

How does the system interprets sudoers file when there are two lines for the same user?

I have a system with a user already added to sudoers file with username ALL=(ALL:ALL) ALL Now I want to allow username to run a single script without asking for sudo password (cron job). This ...