General :: Correct Entries In Sudoers Files
Sep 24, 2010
After adding what I thought were the correct entries in /etc/sudoers so I'd be able to run commands without needing to sudo them, I keep having to. My sudoers file entries look like this:
Code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
user_me ALL=(ALL) ALL
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
user_me ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
user_me ALL=(ALL) NOPASSWD: ALL
I have also confirmed that I'm a member of the wheel group in /etc/group:
Code:
wheel:x:10:root,user_me
And yet, I still have to sudo to do pretty much anything.
View 7 Replies
ADVERTISEMENT
May 31, 2011
I have tried several things to attempt to fix my sudoers file however it is still coming up with errors. The error says
[code]...
the sudoers configuration file is set to the default as I have ran a dpkg on it, have also uninstalled and reinstalled it, and went over the configuration file ensuring it looked like the defaults I had seen online.
View 8 Replies
View Related
Feb 16, 2011
I have a fairly complicated request The short version is, I want to set up a system so that any user can change the ownership of a certain set of files at any time without root access. I think it's possible to set up sudoers to do that, but so far I have failed miserably.I have tried setting up a wrapper script around chown, then putting that script into sudoers, but it didn't work. Here's the script and sudoers (paths changed to genericize them):
Code:
#!/bin/bash
#this script moves a copy of the code
[code]....
View 4 Replies
View Related
Aug 2, 2010
In a recent discussion I had, I was led to believe I could use sudoers to restrict using vi (for example) for the editing of say specific config files. I know how to allow root use of vi and how to lock it down from getting to a bash prompt with NOEXEC tag,but I can't figure out how to restrict the use of vi to only edit certain files. Tutorials and howtos I have checked don't address this
View 7 Replies
View Related
Oct 13, 2010
I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.
View 4 Replies
View Related
May 2, 2011
I need to add a user to the sudoers in my vps host and edit a couple of files and I just cannot make sense of visudo, vi or nano. The tutorials I find on the net just take too long to study and they are never complete, can someone explain what I need to do? I am running Debian 506.
View 8 Replies
View Related
Jun 8, 2010
A while back I suddenly lost USB support on one of my computers. At first I thought it was a HW problem but I'm not completely sure. What configuration files have entries for the USB, especially at startup, so that I can check them against the ones on my working computer. I'm running Ubuntu 10.04.
View 2 Replies
View Related
Sep 20, 2010
I am using UBUNTU Karmic Koala 9 .10 . Recently I have noticed certain errors with my LOG Files. My Log files are just logging the events for that particular day.All the logs of the previous days are lost. It happens to almost all categories of log.Every log just shows one particular days log. I have not done any changes to any settings on this machine as Ubuntu on my laptop is very stable and totally hiccup free. Previously, the log file viewer used to show logged information from over a week or so.but..now every other days log files just vanishes. I am just concerned
1)Is it because of any rogue script that is deleting the previous log files.
2)Has my machine is getting compromised in anyway as I am using it extensively for Internet.[ I have the normal Firewall enabled already] With regard to this I have a few questions
1)Is it Ubuntu's default behavior?Does it back up the old log files everyday?
2)If it is not the way Ubuntu treats Log files.How can I correct this?
3)Does apt-get clean or apt-get autoclean delete log files?
I have searched Google for past 3 days for a possible solution to this problem without yielding much result.
View 6 Replies
View Related
Mar 17, 2010
I'm trying to create a DVD with K3b, I encoded a DIVx MP4 file to vob, but i need to create the iFO and BUP files if that is correct? is it possible in any way to create iFO & BUP files?
View 9 Replies
View Related
Jan 8, 2011
Do I need it in /etc/sudoers? It's there by default and I don't know why does root need sudo.
View 5 Replies
View Related
Oct 3, 2010
I logged in as root and was trying to add a user to sudoers, but then when I tried to save it said that the file was write protected and couldn't be saved. However, when I returned to look at the contents of the sudoers file, they were all done. The file is now empty.
1- How can I restore the contents of the default sudoers file. (I have FC12)
2- How can I add a user (no password) to the sudoers list without this happening again?
View 9 Replies
View Related
Sep 1, 2011
I'm looking for a script or a bittorrent client which is able to move a file after downloading and placing it in a specific folder depending on the file type. E.g. moving a newly downloaded movie to "Videos" and an ISO-file to "Files".
I feel as if i have used a client with this functionality before but can't remember the name.
Since I at the moment use Transmission as my bittorrent client a script would also work since Transmission can run it after finishing the download.
View 7 Replies
View Related
May 26, 2011
When I'm using various music players in debian, the audio always skips at random intervals, but still continues.
View 3 Replies
View Related
Jan 14, 2010
I've blown a couple of DVDs trying to burn them with correct file masks (directories and files are read-only). There doesn't seem to be any documentation for K3b (building the index doesn't do squat and the help says "The file or folder help:/k3b/index.html does not exist"). I can't seem to figure out a setting that simply copies everything the "way it is."
View 7 Replies
View Related
Sep 28, 2010
I changed the permissions of /etc/sudoers trying to make it writable using following command:
sudo chmod o+w /etc/sudoers
and now when i try to use the sudo command i am getting the following error:
/etc/sudoers is mode 0442 should be mode 0440
View 8 Replies
View Related
Mar 6, 2011
1.sudo command runs command as root,is that our name should be mentioned in the sudoers file of root?i got the error like this-"sandyain is not in the sudoers file.This incident will be reported."so what is that mean?
View 4 Replies
View Related
Oct 4, 2010
How do I add a user in a sudoers file.
View 6 Replies
View Related
Jun 28, 2011
i want to ask for a guide how to install frontpage extensions on apache2 , i searched a lot but i can't collect the pieces , in the most cases i can't find the correct files..
View 5 Replies
View Related
Aug 18, 2010
In my sudoers file, there are lines that begin with #, lines that begin with % and lines that begin with neither. The # is definitely being used to comment out lines, but what does the % do? Is it a comment marker too?
View 2 Replies
View Related
Dec 10, 2010
I added the following line in /etc/sudoers file
<username> ALL=(ALL) NOPASSWD:ALL
after adding this if I run any command it is not asking for the password. Now I need to shutdown the remote machine with sudoers user.
View 6 Replies
View Related
Aug 9, 2010
ok how do I include my username in the sudoers list?
View 4 Replies
View Related
Jul 11, 2010
Recently I edited sudoers file and did typing error. Now neither I can do sudo nor change it.
Code:
sudo visudo -c
>>> sudoers file: syntax error, line 8 <<<
How I can get correct the sudoers file?
View 5 Replies
View Related
Sep 27, 2009
I have downloaded both versions of Fedora 11 (Gnome and KDE) to iso files on my hard disk - in Windows XP. I then tried the verification procedure advised in [URL]... section 3.1. I have successfully installed and run hashcalc, with the SHA1 option, and got the following results:
- for the Gnome version : 795b52b3c7b16eba6f2cae055ec894d8648d8095
- for the KDE version : 38ef6c97e29803add28d40add05aa025b6f4c92b.
But I can't find any SHA1SUM files to give me the correct character sequences against which to compare the said results.
View 7 Replies
View Related
Apr 27, 2010
Can anyone tell me what is the best program on Ubuntu that will download picture files in Raw format from my Nikon D3000 and correct them, and do the usual stuff to make a colour-balanced, photo that can be saved in another format - say Tiff?
View 4 Replies
View Related
Mar 12, 2010
I need to install a package. For that I need root access. However the system says that I am not in sudoers file. When trying to edit one, it complains alike! How I am supposed to add myself to the sudoers file if I don't have the right to edit one? I have installed this system and only administrator. What can I do?
Edit: I have tried visudo already. It requires me to be in sudoers in the first place.
amarzaya@linux-debian-gnu:/$ sudo /usr/sbin/visudo
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for amarzaya:
amarzaya is not in the sudoers file. This incident will be reported.
amarzaya@linux-debian-gnu:/$
View 5 Replies
View Related
Jun 3, 2010
Relatively new to Linux, but I'm trying to grasp the proper way to modify the sudoers file. As an example, what would I have to modify in /etc/sudoers to allow a user (say 'user1' for the example) to be able to add/remove software through yum? I'm aware of the fact that I need to use visudo and how to use the vi editor. I've Googled this topic and while I've found a number of pages on the topic, I never see many examples.
View 5 Replies
View Related
Feb 11, 2011
This is the hard way to learn when you MUST use visudo. That's right. I did something stupid like:Quote:$ sudo vi /etc/sudoersand now have:Quote:
$ sudo
>>> /etc/sudoers: syntax error near line 79 <<<
sudo: parse error in /etc/sudoers near line 79
[code]....
View 3 Replies
View Related
Sep 7, 2010
Warning: Do not edit /etc/sudoers directly with an editor; Errors in syntax can cause annoyances (like rendering the root account unusable). You must use the visudo command to edit /etc/sudoers. In the previous section we added your user to the "wheel" group. To give users in the wheel group full root privileges when they precede a command with "sudo", uncomment the following line:
%wheelALL=(ALL) ALL
so i signed in as root and typed in visudo now i alreayd made the changes but how do i exit and save super+x doesnt seem to do it for me since im not using nano and not supposed to cause it causes errors
View 3 Replies
View Related
Nov 13, 2010
Recently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, so i wanted to edit sudoers file by typing visudo. But i keep getting this
error: Error opening terminal: vanilla How can i solve this.
View 1 Replies
View Related
Aug 16, 2010
since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.
View 4 Replies
View Related