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)

1
vote
0answers
156 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
558 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
186 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: https://help.ubuntu.com/community/...
1
vote
0answers
251 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 ...
1
vote
0answers
473 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
320 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
48 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
10 views

Cannot connect to internet or sudo apt-get in Ubuntu Server

I installed Ubuntu Server on an old windows laptop. I have my computer connected through an ethernet and I absolutely cannot get anything to work through sudo apt-get. Im very new to Linux, but I ...
0
votes
0answers
20 views

I cant open Netbeans without sudo

I am developing Java application using NetBeans 8.1 to have access to the Bluetooth with Java I had to start NetBeans with sudo. Since that I haven't been able to run NetBeans with simple user, how ...
0
votes
0answers
19 views

Unable to update program when not root. Can update as root but update still showing for normal user

I'm using DataGrip on Ubuntu 16.04 on a Dell Precision 5510. I've installed DataGrip and I'm using it successfully, but I have issues with an update. The program prompts me to update: But when I ...
0
votes
0answers
20 views

Host key verification failed while using scp

While using scp command to transfer files among two servers i would be asked for password of server1, upon typing the correct password i would be getting an error saying "host key verification failed ...
0
votes
0answers
32 views

Programs requiring SUDO authentication not launching from Unity search launcher and Synapse [Ubuntu, 16.04]

So, basically what's in the tittle. I can execute any installed program with both Synapse and Unity, but if it requires SUDO authentication (like Synaptic, Y-PPA manager) it doesn't launch. It's ...
0
votes
0answers
16 views

Jetson Tegra TX1 Ubuntu 14.04

I am trying to update using sudo apt-get update on my Jetson Tegra TX1 but I am getting the following error.. E: GPG error: http://ports.ubuntu.com trusty InRelease: Clearsigned file isn't valid, ...
0
votes
0answers
23 views

What privileges should I give to a user who can access my SFTP but only reads them

I have a current root user which is able to do, well ROOT privileges on my SFTP running on Ubuntu LTS 12.04. I'm planning on adding a new user that can only read a specific directory inside my sftp. ...
0
votes
0answers
25 views

sudo command terminal takes a lot of time to ask for password?

In Ubuntu Gnome 16.04 in the terminal it takes a lot of time to ask for the sudo password, for example when I use: sudo apt-get update or anything else.
0
votes
0answers
57 views

Systemd, start user level unit with sudo access

I have a Debian package which installs my software and it needs to start two applications in post install script. First one is daemon and the second one is a background process both are managed with ...
0
votes
0answers
59 views

sudoers, NOPASSWD, and a /home/user/bin/script not working explanation (with workaround)

Ubuntu 14.04.3 The Problem I have a directory with some custom scripts, one in particular called aptupdate. The permissions of the directory are: drwxrwxr-x 2 htpc htpc 4096 May 4 00:35 /home/...
0
votes
0answers
65 views

Unable to install git on 14.04

I'm trying to install git on Ubuntu 14.04, but it's giving me this error: guest-te1w6r-Lenovo-G50-80:~$ sudo apt-get install git sudo: unable to change to root gid: Operation not permitted ...
0
votes
0answers
18 views

Ubiquity not create user

I create my own distro for school computer and everything is good but ubiquity installer not create user :/ I try to edit casper.conf file and lightdm but it doesn't help me ;/ Maybe my live user is ...
0
votes
0answers
43 views

Sudo and Su give Segmentation faults

I'm running Ubuntu 14.4 LTS. When I try to use the sudo command with any other command, I get a segmentation fault. sudo ls su ls The result I get is always: Segmentation fault (core dumped) I ...
0
votes
0answers
36 views

sudo access problem

sudo su sudo: unable to stat /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I am not able to access the sudo command in 14.04 ...
0
votes
0answers
159 views

How to add permissions to use chmod 777 to an user from the sudoers file

I have been trying to modify the permissions of a Linux user on a cRIO. I installed sudo and modified the sudoers file with Vi and add this line: (I need at add permissions to access a file to a user ...
0
votes
0answers
21 views

Troubleshoot personal internet failure, vol. 2

This a follow-up from here: Troubleshoot personal internet failure, where: sudo service NetworkManager restart was proposed. However, Internet failure again today. I did the restart, but this didn'...
0
votes
0answers
32 views

sudo and su both not working

When I am running the command sudo apt-get update and after entering the password I am getting xxx is not in the sudoers file. This incident will be reported.. I have searched for this found ...
0
votes
0answers
123 views

`sudo hostname` checks hostname resolution - can I turn that off?

I am trying to get Vagrant working with Ubuntu 16.04 (xenial). Apparently there are recent changes to hostname when called with sudo and the output to stderr is interfering with the way Vagrant ...
0
votes
0answers
18 views

Ubuntu sudo broken/other probelem, Ubuntu Server

So i have given accses to / for everyone, which at the time i did not know this basically breaks the system. Tried a few things nothing worked. So i reinstalled ubuntu, did the install normal for ...
0
votes
0answers
54 views

Failed to fetch error: Hash Sum mismatch

I can't update. I want to install GNU Radio also but system is not getting update. sudo apt-get install gnuradio also doesn't work.
0
votes
0answers
24 views

I'm a new user who's pretty lost

My problem is this: I'm trying to permanently disable my touchscreen because it is cracked and occasionally moves the pointer on it's own. I have tried the xinput solution but as many other forums ...
0
votes
0answers
24 views

Can't run any programs because of less permissions and how to give a user full sudo privileges ?(Ubuntu 14 Server)

So, I created a Ubuntu VPS with AWS. I am very new to Ubuntu so I need a GUI, therefore I installed TightVNC to use it from my Win 10 PC. Now here are the problems: 1) The server has a default user ...
0
votes
0answers
31 views

what is the diffrence b/w “remove write-protected directory” & “descend into write-protected directory”?

am new to linux world, am practising basic commands, i tried to use rm command to remove directory/folder from current directory which was /, without providing super user permission or sudo. it says ...
0
votes
0answers
22 views

How to restrict command using sudoer doesn't work

I created one user as filemanager. There are some users have to su as filemanager to run script which execute many commands. But SCP is not allowed for security reasons. I am trying to restricted '...
0
votes
0answers
22 views

How to resolve invalid sudoers file on ubuntu installed on AWS

I've set up a Ubuntu instance on AWS and foolishly modified the sudoers file and it is now returning a parse error when I try to run sudo commands, so I am unable re-edit the file. I found a command ...
0
votes
0answers
47 views

No Sudo Permissions (No Username?)

When I login with Ubuntu it shows that I have no username and when I attempt to execute any code with sudo, I receive the following error: I have no name!@ip-172-30-2-112:~$ id uid=1000 gid=1000 ...
0
votes
0answers
222 views

How to solve server certificate Verification failed!

Recently I installed a complete ubuntu package on virtualbox and use it via vagrant ssh in windows.from yesterday i have a annoying problem,I cant use sudo commands for install,update or everything ...
0
votes
0answers
35 views

error dpkg in terminal ubuntu

I'm downloading brackets in github https://github.com/adobe/brackets/releases/tag/release-1.6+eb4 please help me dpkg --install ~/Download/Brackets.1.6.Extract.64-bit.deb dpkg: error: parsing file '/...
0
votes
0answers
20 views

use a different password for the prompts

I installed Ubuntu for the first time since 2006, its awesome. So i installed and went for the encrypted home dir install, just for fun. Now every time i need to do something that requires sudo I am ...
0
votes
0answers
35 views

Multiple admin (sudo) accounts issue

I have a computer with two admin accounts my was the second one created, now when I try to make anything in terminal as sudo user like tar it automatically give permissions to the first user as the ...
0
votes
0answers
65 views

How to prevent sudoers from changing the root password unless they know the current root user password first

I want to give a developer sudo access, but giving him sudo access would potentially allow him to change the root password and lock me out of the server. I just created a demo account, added it to ...
0
votes
0answers
32 views

Broken sudo in Ubuntu 14.04 installed in a Windows 7 host Virtualbox

I messed up while changing the permission of /usr/bin/ folder and now I'm getting the error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set Is there any way I can revert to ...
0
votes
0answers
121 views

sudo apt-get install <package> is not working for me

I can't download and install packages by using sudo apt-get install <package> How can I fix this problem? The error: E: Failed to fetch (URL) Could not reresolve 'archive.ubuntu.com' E: ...
0
votes
0answers
66 views

hplip installation stuck at password checking on lubuntu 15.10

I was trying to install hplip 3.15.11 on Lubuntu 15.10 using xTerm or uxTerm as explained and shown in the official how-to (hplip installation how-to), but when I'm asked for the sudoer's password, I ...
0
votes
0answers
102 views

Sudo, nohup and spewing detached processes

I have a jar file that I need to routinely kick start from the terminal, and needs to be run as root. I'd also like to leave that terminal open for use, so I'm using this bash script: $ cat /usr/...
0
votes
0answers
23 views

aterm unresponsive unless run with sudo

I've just installed Ubuntu on my laptop. I installed aterm by typing sudo apt-get aterm Now if I start aterm by typing aterm The resulting console is unresponsive to typing (no letters show up ...
0
votes
0answers
37 views

Boot from USB/CD without using sudo

I screwed up big time. I did sudo chmod -R 777 /usr without pausing to think about consequences. Well, the consequences are: 1) I cannot sudo or pkexec. 2) Ubuntu is not detecting boot cd or usb. ...
0
votes
0answers
11 views

Help with installation after HDD SATA replacement in laptop (Toshiba AMD A6)

Will this fix my installation issue, if I just go to 15.10. I was trying OEM, sudo clean, update, install, kodi, --fix, fix-missing...nothings works...also I have checked BIOS and the new SATA HDD is ...
0
votes
0answers
16 views

download cuda library with dpgk on Ubuntu 14.04

i need to install cuda library on a server, where i dont hwve root access I use this command: dpkg -i --force-not-root -- root=$HOME cuda-repo-ubuntu1404_7.5-18_amd64.deb but i get the error : "...
0
votes
0answers
35 views

how to enter password for sudo while using ubuntu in virtual box?

I cant enter my password while using sudo in virtual box (Version 5.0.10 r104061) with Ubuntu OS (14.04). How to enter password?
0
votes
0answers
29 views

password not working, memery all used up. helpme

I'm completely clueless about ubuntu and computers really. I was directed towards ubuntu by a friend and now im in big trouble really. My laptop started acting funny on thursday. It used up all ...
0
votes
0answers
55 views

iniparser: cannot open /etc/security/pam_winbind.conf

Each time I type a sudo command I get this: iniparser: cannot open /etc/security/pam_winbind.conf What's this error and how can I get ride of it?
0
votes
0answers
70 views

Add domain user into sudouser file failed with Ubuntun 14.04 TLS

I ran into trouble with sssd and sudoers file. My domain name is rd.mydomain-rp.com and the domain netbios name is rp-rd After configuring sssd the domain users can login to the linux system but the ...