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

Creating a normal user without sudo access but with ability to switch to another admin user

User A - can't be part of sudo or admin group, ssh keys based identity setup for ssh login, can't be a guest account User B - no home folder, must have a password, can't have independent ssh login, ...
2
votes
0answers
70 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 ...
2
votes
0answers
105 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
46 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
183 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
167 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
131 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
350 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
187 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
725 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
30 views

I deleted my password but sudo keeps asking me for it

I've deleted my password using sudo passwd -d alexwolf153. Now even though I have no password anymore sudo still keeps asking for one. What do I do? EDIT: thankfully, my terminal with provided sudo ...
1
vote
0answers
18 views

timestamp_timeout in Ubuntu doesn't work

I use ubuntu 14.04 and I tried to change sudo password timeout but change made to it doesn't work. Please help , My visudo file looks like this. GNU nano 2.2.6 File: ...
1
vote
0answers
71 views

Enable shutdown from another computer on LAN without entering sudo password

I'm trying to execute this script from my laptop to shutdown the server without having to enter the sudo password. (Both are running Ubuntu 14.04.2 LTS) ssh -t lachlan@192.168.0.xxx sudo shutdown -h ...
1
vote
0answers
54 views

Problem installing reader software for Estonian ID card for ubuntu 14.04

I updated my ubuntu 13.10 to 14.04 and now I have problems to install Estonian ID card reader software. When I trie to use the installation script, that I have downloaded from ...
1
vote
0answers
18 views

My sudoer can not login using GUI

I only have one sudoer and it can login into the terminal or through GUI terminal. But I can not use it to log into the GDM login screen. Any possible causes?
1
vote
0answers
45 views

How do I get Super User access in guest

I have recently installed Ubuntu via Wubi Installer. The dual-boot works fine but when I can't login as Admin, it only allows me to enter via "Guest". To do any administrative activities such setting ...
1
vote
0answers
24 views

Long wait times logging in as other user using sudo

Any clues to why it takes 20-30 seconds for me to log in using sudo+su? $ time sudo su ida -l exit ida@timbuktu:~$ exit logout real 0m18.076s $ time sudo su ida exit ...
1
vote
0answers
19 views

Caffeine and system settings and upper right hand corner

I was able to go to the terminal and type in the command for caffeine, but I don't find caffeine anywhere in the system settings and it doesn't show up anywhere on the upper right hand corner of the ...
1
vote
0answers
31 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
1
vote
0answers
112 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
59 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
2k 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
479 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
54 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
409 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
185 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
154 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
127 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
963 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
115 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
573 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
37 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
753 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
46 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
102 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
312 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
94 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
426 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
101 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
405 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
210 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
46 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
8 views

How do I use the Sudo command with ubuntu live?

I am trying out Ubuntu studio w a USB live disk and am having trouble running commands requiring sudo administrative access since the live disk doesn't seem to allow for me to log into my own account ...
0
votes
0answers
23 views

Ask root password instead of user (sudo) password

The privilege to use a Ubuntu machine was given to me. Previously there was another user in the system. I logged in with the "anotheruser" account and created the password for the root account (sudo ...
0
votes
0answers
25 views

Bitmask only starts with sudo

When launching bitmask through Unity it won't launch, it will only work if launched from terminal with sudo. How should I proceed?
0
votes
0answers
7 views

It it safe to keep a PamUSB enabled usb drive always connected?

I'm wondering if it's safe to the usb drive always connected, some program could sudo without my permission. It there a way to receive some notifications about pamusb's authentications? Thanks in ...
0
votes
0answers
18 views

accidentally moved home directory, cant login (so do not know where it is)

I do not have computing background so I thought I should stop typing usermod -d as root before i ruined the whole system. I have tried the answers on here already but I have had no success. I cannot ...
0
votes
0answers
21 views

sudo chmod 664 “/” -R

The problem: sudo chmod 664 "/" -R I've canceled it after a few seconds but here it is. What all should I do through Live CD? sudo chmod 755 "/" -R or just sudo chmod 755 "/" ? Thanks
0
votes
0answers
23 views

duplicate file in sudoers.d breaks sudo

Not sure if it's a bug in sudo, or some kind of a strange boobytrap feature, but here is what happened. Was working this problem, among others in an aticonfig snowball, via ssh remote: ...
0
votes
0answers
19 views

How do I enter password via keyboard without using pamUSB?

I installed pamUSB and I have used my USB flash drive to store and enter my password automatically in ubuntu 14.04. But my USB memory is formatted. Therefore, the system shows the following message ...