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
0answers
34 views

User has Sudo access locally but not remotly

I've got a ubuntu desktop installed as a vm on win 2012 server. I've installed Likewise Active Directory to allow domain users to log into the machine with windows credentials. In my sudoers file I've ...
23
votes
8answers
6k views

Why it is sudo?

Why we use sudo to perform a terminal command as an administrative, why it isn't admin or something else, is there a reason for sudo?
0
votes
2answers
358 views

Cannot move a file using sudo mv

I want to move a downloaded folder (called 'Viva' to the themes folder under /usr/share/themes/. When I type: sudo mv /desktop/Viva /usr/share/themes it tells me it can't find the /desktop/Viva ...
0
votes
1answer
58 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!
6
votes
4answers
6k 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
75 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
87 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
95 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
44 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
118 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
357 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
110 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
108 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 ...
14
votes
2answers
6k 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
218 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
694 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
136 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
48 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
123 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
60 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
412 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
29 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
148 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
183 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
83 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
77 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
171 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
48 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
152 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
533 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
31 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 ...
5
votes
1answer
9k 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
91 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
1k 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
106 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 ...
4
votes
2answers
405 views

How can I change the default editor of the sudoedit command to be vim?

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
33 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 ...
1
vote
0answers
183 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
286 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 ...
3
votes
4answers
7k 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
92 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
2k 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
209 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
129 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
447 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
598 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
37 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 ...