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)

0
votes
2answers
64 views

What is sudo -i [duplicate]

What does this command? sudo -i? I'm not sure if I should have made a post with just this question, but since I'm a Linux newbie and I have a lot more questions and doubts, I decided to go ahead and ...
0
votes
1answer
48 views

Perl hangs for regular users, works with sudo

I recently installed Ubuntu 14.04 LTS and for some reason the perl command just hangs when a regular user calls it. However, if I use sudo with it, it will work perfectly. I'm thinking the perl ...
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
1answer
39 views

Tomcat6 manager installation error

I am new to linux .I am trying to install Tomcat6 .I installed it successfully but for manager webapp html GUI I have changes my tomcat-users.xml file as /etc/tomcat6/tomcat-users.xml ...
0
votes
0answers
108 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 ...
5
votes
3answers
485 views

My password can log me in, but nothing else (“user is not in the sudoers file” error when I try)

I recently got a new user account for Ubuntu 12.04 on Linux after becoming unable to log in to one of my earlier accounts. I can log in to this account easily enough, but when I try to use the ...
1
vote
1answer
26 views

kdesudo - can it return before spawned process closes?

kdesudo doesn't return until the process started with it exits. So, if I want to start three processes all at the same time, I have to use three terminal tabs. I'd rather use one tab that returns to ...
2
votes
1answer
4k views

“error: XDG_RUNTIME_DIR not set in the environment.” when attempting to run nautilus as root

I am attempting to run nautilus as root but when I run "sudo nautilus" from the terminal, I get the following error: error: XDG_RUNTIME_DIR not set in the environment. (nautilus:9341): ...
1
vote
1answer
67 views

How to add Active Directory users as sudoers

I'm following this article. What I've done: I can connect to Active Directory I can login to the Active Directory Now what I'm looking for is a way to make any active directory user a sudoer. I'm ...
0
votes
3answers
337 views

How to add Domain Admins to sudoers

There is a similar question that has been answered; so, I'm not sure if I should tag on; not believing that I should, I'm proceeding. I'm running Ubuntu 14.04 and have joined our Windows domain using ...
0
votes
1answer
60 views

Run “sudo service udev reload” without root priviledges

I have a script that occasionally needs to run the command "service udev reload" but cannot as it needs root access. I don't want to stay logged in as root all the time, so I'm wondering if there is a ...
2
votes
2answers
137 views

How can I make sudoedit use vim instead of nano?

I'm trying to use sudoedit, but it keeps running the nano editor. My preferred editor is vim. How can I make it the default? Looking at the man page, man sudoedit, I've noticed the following: ...
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
94 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
1answer
103 views

sudo: editor: command not found

I am trying to install gitlab on my server but when I run this command: sudo -u git -H editor config/gitlab.yml then I get: sudo: editor: command not found cn you guys tell me what is the wrong ...
1
vote
4answers
2k views

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?
1
vote
2answers
34 views

Program launches only as root but not normally

I installed MATLAB in the home directory. Now when I try to launch it normally from the bin folder, it starts up and then gives an error that says: Internal error: No write permission on directory ...
0
votes
1answer
537 views

The command could not be located because '/usr/bin' is not included in the PATH environment variable [duplicate]

Can someone tell me why I get this error when I try to add a repository and what if anything I can do about it? When I try to add a repository using: sudo add-apt-repository ppa:upubuntu-com/tor I ...
1
vote
1answer
113 views

How to automate sudo password [duplicate]

How do you input sudo password automaticly when prompted? I can do this in a script by typing: echo PASSWORD | sudo -S Command, but how do I do that always when prompted?
3
votes
1answer
69 views

How we can copy one file from one server to other in cron

Can anybody let me know how we can copy a file from one server to another in a cron. I know about scp but how we use it in a cron, since we need to pass the password. Edited I found this link Expect ...
6
votes
2answers
311 views

Sudo commands are run without entering the root password, how to stop this?

I haven't edited my sudoers, but I don't have to enter the password when running a sudo command line in the terminal. I can run any sudo command without entering the password, how can I stop this ?
1
vote
1answer
385 views

Authenticating error with ubuntu 14.04 LTS

< Problem: Just as I upgraded my ubuntu 13.10 to 14.04 LTS. I couldn't pass keyring and bash authentication. I can login in recovery mood for both root and my account, but that's not the case in ...
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 ...
0
votes
1answer
79 views

Correct permissions for sudo LAMP /var/www directory

I am trying to set permissions with sudo 775 - R /var/www/ on all folders and all files in the www folder of lamp for sudo user. Is this the correct way to set up the system?
1
vote
1answer
42 views

What does the symbol % in '%sudo ALL=(ALL:ALL) ALL' mean?

What does the symbol % in the following statement mean: # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL Is it the same to write as: sudo ALL=(ALL:ALL) ALL
0
votes
1answer
365 views

sudo: ruby: command not found after ssh

I'm working with ec2 instances and was trying to execute a ruby script on another instance after ssh to that instance. I have a ruby script which updates configuration files, so i need to run that ...
-3
votes
1answer
68 views

Cannot use sudo [closed]

I am trying to install unity tweak, and i am having this problem that when I type in the terminal: sudo apt-get repository unity-lens-music unity-lens-photo unity-lens-video in the terminal it ask ...
2
votes
1answer
337 views

sudo: unknown uid xxxxx: who are you?

I was using ssh and trying to upgrade a system from Ubuntu 10.04 to 12.04. The connection had an issue so I had to login again to finish the upgrade. After running sudo dpkg --configure -a that was ...
0
votes
1answer
199 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
0
votes
0answers
429 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
2answers
82 views

Password-less Ubuntu install?

When you run Ubuntu as a live boot you are able to install programs etc. without a password, but when you have installed it you have to choose a password and you have to put it in everytime you want ...
1
vote
1answer
86 views

Why is 'sudo bash' a bad idea? [duplicate]

Anyone want to comment on sudo bash in comparison to sudo su and sudo -i? I know sudo -i is the preferred because "environment". I've gotten into the bad habit from years ago when I was a kid in a ...
0
votes
1answer
83 views

Getting permission denied error

I have written one bash script and it is run on the background, inside this script I have use the following command: sshpass -p prakash123 ssh -t -p $1 prakash@localhost './update_script.sh > ...
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 ...
1
vote
1answer
42 views

problem in netstat

I tried to check configured ports from hadoop user as, sudo netstat -p1ten | grep java But, I am getting result as, [sudo] password for hadoopz: hadoopz is not in the sudoers file. This incident ...
15
votes
2answers
4k views

Why don't I have a password for “su”? Problems with “sudo”

I have installed Ubuntu using the GUI, giving myself a password and everything. I do not intricately remember the process. However, what worries me is that I don't know the following password: $ su ...
0
votes
0answers
45 views

faillog command doesn't work for all users

I set faillog to lock my users after 3 login attempt failures, but it works only for users belong to "sudo group" I searched the faillog(8) man page for ubuntu 13.04 in http://manpages.ubuntu.com , ...
0
votes
1answer
121 views

`sudo` asks for password even when I have no password set?

I removed the password from my account using the "User Accounts" window and then on running sudo, it prompted me for a password, even when i didn't have one. I tried pressing enter without entering ...
1
vote
1answer
111 views

Error installing wine

When I install wine, I get this. I have ubuntu 13.10. I am connected to the internet, I am posting this with the same computer. I have no proxy. Fixed. I the source to the Main not US ...
-1
votes
2answers
705 views

Why is usermod -a -G sudo username not working?

During OS installation, I created only one account. Let's call it howdy. I thought it would have sudo privileges but I was wrong. I scoured the internet and this forum to find out how to add howdy to ...
0
votes
0answers
76 views

Problem installing GAZEBO on ubuntu 12.10 (broken package)

i was trying to install gazebo in my ubuntu 12.0, following the steps in "gazebosim.org/wiki/1.2/install" . However, after i input sudo apt-get install gazebo in terminal as step 4 suggested, it ...
1
vote
1answer
452 views

Changed root password on my server, now can't login anymore

I decided to change the root password that came preset on a fresh DigitalOcean server (ubuntu 12.04). I used the first answer to this post: How to change root password in ubuntu? which is: sudo -i ...
0
votes
0answers
19 views

Trying to install Kdenlive--source directory?

I am a total linux illiterate, but I'm trying to get my head down and make things work. I have downloaded Kdenlive from web, want to install in root but get error message after typing sudo make ...
0
votes
3answers
478 views

how to edit lightdm.conf file and save it

hello everyone i was searching for login screens like mac and i got this one MAC OSX LOGIN SCREEN but i did everything correct and suddenly it said to edit /etc/lightdm/lightdm.conf this file ...
0
votes
0answers
28 views

how to repository?

I have been trying to setup a PXE server from terminal of another PXE server, at the very beginning I am trying to create repository, I keep on getting this error. sudo: /etc/sudoers is mode 0755, ...
0
votes
1answer
50 views

Sudo command broken [duplicate]

I upgraded my dedicated server from ubuntu 11.1 to ubuntu 12.04. After the server upgrade says 'unable to initialize PAM: No such file or directory' when i am going to change the user to sudo. I got ...
1
vote
3answers
516 views

Accidentally deleted /etc/sudoers file

I get the following error while trying to update my repositories, avinash@avinash-VirtualBox:~$ sudo apt-get update sudo: unable to stat /etc/sudoers: No such file or directory sudo: no valid ...
-1
votes
1answer
1k views

ERROR: sudo: /etc/sudoers is mode 0777, should be 0440 [duplicate]

sudo: /etc/sudoers is mode 0777, should be 0440 sudo: no valid sudoers source found, quitting sudo: unable to initialize policy plugin I have Ubuntu Server 12.04.4 LTS and this sudo problem, i cant ...
2
votes
1answer
189 views

sudo asks for root password but expects user in sudoers?

I have the root account enabled. I have degraded the user (say kenneth) to a standard account and I have set the Defaults rootpw flag in sudoers. When I use sudo it correctly prompt for root ...
1
vote
1answer
133 views

'apt-get upgrade' getting stuck

When trying to install updates after checking with sudo apt-get update, sudo-apt get upgrade is not installing them. username@username:~$ sudo apt-get upgrade Reading package lists... Done Building ...