How to restrict sudoers file access for root
location: linuxquestions.com - date: March 20, 2012
How to hardcode a system's hostname or serialnumber as,
dmidecode -s system-serial-number
so that no one can change the system's hostname
Any solution will be appreciated
How to open sudoers file if operation not permitted
location: ubuntuforums.com - date: October 14, 2014
Hello, I'm a newbie Ubuntu user. I use Lubuntu desktop 14.04.1 64-bit as an guest OS on VMware Workstation.
I wrongly operate an tutorial to modify the usermod group. In the process, I execute this command:
sudo /usr/sbin/usermod -G svn andromeda
sudo /usr/sbin/usermod -G svn marc
andromeda is my default user and marc is my second user. Apparently, since then, I can't access or doing anything with sudo command. The terminal output is:
andromeda is not in the sudoers file. This incident will be reported.
I have Googling and search the absolute way to fix it but the main and crudest issue is: I still can't open the sudoers file using gksu or sudo (which highly impossible). This page seems can help me but I still don't understand how to do that correctly while I can't open sudoers file or Root Terminal.
Is there any way to open sudoers file while the operation wasn't permitted?
Anyone can help me here?
Sorry for my bad english, bad question or mistakes. Any help
How to config sudoers file?
location: linuxexchange.com - date: January 1, 1970
I'm using ubuntu server 12.04 LTS
I want to know how to configure my sudoers file (obviously, using visudo), to permit an user to run commands like root (doing something like "sudo service x restart") but without the permission to be root (doing "sudo su").
In the sudoers file, we have the follow lines:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
I've tried to put my user in both of the groups, but in both of they, the user can being root doing "sudo su".
Any tips on how to configure the sudoers file to make my webserver really secure when using the terminal with users that can run root commands?
[SOLVED] User not in sudoers: How to add user? Permtion Denied for sudoers file
location: linuxquestions.com - date: July 13, 2012
I installed VM debian to have many g++ but need to do sudo apt-get install g++
However i get this message.
Learned that i have to add me with ALL ALL etc but cant get permision to acess the file
An older topic doesn make lear which commands to enter. I'm a total beginner to linux
Damned it kubuntu was simple!!!
[SOLVED] How to add a new user in sudoers file?
location: linuxquestions.com - date: August 31, 2013
I created a new user which i want to add in sudoers file.
Please see the part of sudoers file below:
Debian user not in sudoers file...
location: linuxquestions.com - date: April 8, 2007
I have been having to log in as root to do anything, and this is what my terminal says:
[SOLVED] How do i add myself to "the sudoers file"
location: linuxquestions.com - date: May 15, 2010
everytime i try to do anything with sudo i cant and this time it was extremelly costly. From now on i don't want to risk anything like this again and i need to be able to sudo.
Fedora: How can I add myself back to sudoers file?
location: linuxquestions.com - date: November 19, 2014
I've accidentally removed myself from sudoers file by doing `usermod -G user group` without `-a`, and now I am not in the `sudoers` group. I've tried doing `su -` and entering root's password but it says `su: Authecation failure`. Is there a way to add myself back? Using Fedora 20.
how to add user to root user
location: ubuntuforums.com - date: May 10, 2013
please let me know how to add a user to root user so that every thing done by root should have to be done by this user.
thanks in advance
User not in the sudoers file
location: linuxquestions.com - date: May 15, 2009
I'm working with Ubuntu 8.10, and trying to type the command:
Page: 1 2 3 4 5 6 7 8 9 10