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
1answer
44 views

Accidently removed admin/sudo rights [duplicate]

I removed admin rights for the original admin account, in order to set up a new account with clear history. (Not 100% that was needed, I am still getting to grips with linux / Ubuntu 12.04 and I read ...
1
vote
0answers
21 views

I am In sudo group. Yet I can not do sudo commands [duplicate]

I have added myself to the sudo group. Yet when I try to perform A Sudo command, the error that says user not in sudoers group still pops up. Please help!
4
votes
4answers
1k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
2
votes
1answer
61 views

Why does it take a long time to open certain small text files in Vim?

Why does it take a long time to open certain config files accessible only to superuser in Vim? For example: $ sudo vim /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla It takes ...
0
votes
0answers
45 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
1answer
66 views

Changes to sudoers have no effect. Following basic Ubuntu tutorial

I'm following along the Ubuntu sudoers tutorial. Here's my exact /etc/sudoers file (screenshot instead of code block because the formatting was getting messed up). Notice the lines at the bottom ...
0
votes
3answers
43 views

Append an output of a command to a txt file and place it in non writable directory?

If i try for example : directory A i don't have write permission on it sudo ls -l > /home/A/a.txt bash: /home/A/a.txt: Permission denied Then how can i do this trick , any Suggestion is ...
2
votes
1answer
65 views

Set default language for sudo

If I enter a command, the output is translated in the language I am using on the system. But if I use sudo to run a command with root privileges, the output is always in English. How can I change ...
0
votes
0answers
132 views

sudo not working after rsync - unable to open /etc/sudoers: Permission denied

Bought a new drive. Formatted to ext4, mounted the partition and ran sudo rsync -aAX --delete /* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} This moved all my ...
0
votes
1answer
56 views

Wrong Permission to /etc folder [duplicate]

I given wrong permission to the /etc folder wrongly chmod -R 777 /etc While i want to login as root it gives me error and gives the following output. How can i give the correct permission and fix ...
1
vote
1answer
75 views

Why I got 'unable to resolve host' when I do 'sudo'?

Whenever I do 'sudo' I get an error saying 'sudo: unable to resolve host HP-Pavilion'. I recently change my hostname to "HP-Pavilion". I wonder if I screw up something. $ sudo mkdir SourceCodePro ...
10
votes
2answers
3k views

warning message at command line `sudo`

Everytime I try to sudo something at the terminal, I get a warning message: alexandre@XPS-15Z $ sudo mount file.iso /mnt/ -o loop [sudo] password for alexandre: no talloc stackframe at ...
1
vote
2answers
98 views

Adding apt-get to sudoers file

I've grown tired of always invoking apt-get update and apt-get upgrade under sudo and typing my password, so I have added the following line to my /etc/sudoers file using visudo: <myusername> ...
4
votes
1answer
393 views

Can't login to my account, I know the password

I use Xubuntu 14.04 64 bit. I was watching a movie, the desktop froze (as usual duh!), I logged out using a terminal, and couldn't log in to my account after that, I'm using a terminal. I type my ...
1
vote
0answers
25 views

user is not in the sudoers file [duplicate]

This is my very first post so please bear (or bare???) with me please. So the problem I have is that when I use the "sudo" command on a terminal I get the error "myuser is not in the sudoers file". ...
2
votes
1answer
89 views

Are you a root? [duplicate]

If I want to install a program by: sudo apt-get install package_name I always get the error: E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory) E: Unable to ...
0
votes
1answer
39 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
1
vote
1answer
106 views

I need help logging in to root [duplicate]

Can somebody help me? I’m new to Ubuntu, and I need help elevating my privileges to root. All I’m getting is: darion@darion-HP-2000-Notebook-PC:~$ sudo -i nautilus [sudo] password for darion: ...
0
votes
0answers
25 views

How to avoide log out and log in while editing the sudoers file

I have edited the sudoers file by following the link. So far so good. It say "Log out, and then back in", for sure to see the effects. Is there a way to see the effects with out doing this: "Log ...
-1
votes
1answer
57 views

Where can I find the sudo commands to work on the ubuntu grub file?

I am a newbie and need help with the sudo command. I am trying to edit the grub.cfg file via the etc\default\grub. The problem is that I don't know the sudo commands, particulary, the permission ...
0
votes
0answers
325 views

sudoers entry does not work

I recently updated my ubuntu to 14.04. I have an script which calls just sudo hidd --search, that I start to connect my bluetooth mouse. Now I made an entry to /etc/sudoers like this: markus ...
0
votes
0answers
21 views

USB needs superuser

So I recently plugged in an USB and I don't know why it needs superuser now. When I go to nemo in sudo, It listed my old USB as usb1 and my new USB as Ducky Momo (It's name is Ducky Momo and it's a ...
0
votes
1answer
101 views

corrupted sudoers file, Ubuntu 12.04

My /etc/sudoers file is somehow corrupted and all the users who have sudo privileges are unable to execute ANY command with sudo prefix to the command ! sudo: parse error in /etc/sudoers.d/README ...
0
votes
2answers
113 views

bypass sudo for a group of commands

I need to bypass sudo for a group of commands for a certain user so the command is just executed without using the sudo
0
votes
2answers
70 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
52 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
167 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
40 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
126 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
496 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
5k 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
74 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
471 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
66 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
176 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
32 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
122 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
146 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
3k 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
39 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
782 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
124 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
77 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
337 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
459 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
27 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
94 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
58 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
483 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 ...