Hello,I'm a beginners on linux and this is my first post.I installed #!10a2 and did an upgrade. While processing it has been asked to me if I wanted to replace the existing sudoers file by the packet owner one. I said YES ...
I've checked the sudoers file, it passed the check, here's the setup:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin
Amazon EC2-instance:
I made a user 'admin' and copied ec2-user's keys with proper permission.
After successful login, i tried to do sudo su for root access, it says 'admin is not in the sudoers file. This incident will be reported.'
However i can do sudo su with ec2-user account and can gain root access.
What is sudoer file?
Everytime I want to be able to run something that requires me to be a sudoer too many times, I need to google for the formatting of /etc/sudoers to remind me again what exactly is the proper way to write it.
Now I see different writing styles in my sudoers file, which is the consequence of different google results over the months.
the sysadmins are present in the sudoers files of all environments, but other sudoers are not. Different environments all have slightly different sudoers.
My /etc/sudoers file has following entries:-
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
agupta ALL= /sbin/,/usr/sbin/,/bin/,/bin/cat /etc/sudoers
ADMINS ALL= !/usr/bin/su, !SHELLS
alice ALL =(%Children) /sbin/, /usr/sbin/, /bin/
alice is a member of the Children group; please find below are details for alice:-
[alice@localhost ~]$ id alice
uid=1005(alice) gid=1004(C
-r--r----- 1 root root 723 Jan 31 2012 sudoers
My dist-update frequently fails.
At boot my system frequently asks for file system check.
I was exploring the sudo file (fedora16) in visudo and accidently deleted a couple of lines.
I was exploring the sudo file (fedora16) in visudo and accidently deleted a couple of lines.