LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help sudoers file
#2
My stock /etc/sudoers file below.

Code:
harry@misohorny1:~$ sudo -i
[sudo] password for harry:
root@misohorny1:~# cat /etc/sudoers
#
# 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    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# 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

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

You can make a new one and fix yours by replacing it with mine. Just more info below

Code:
root@misohorny1:~# cd /etc/sudoers.d
root@misohorny1:/etc/sudoers.d# ls
README
root@misohorny1:/etc/sudoers.d# cat README
#
# As of Debian version 1.7.2p1-1, the default /etc/sudoers file created on
# installation of the package now includes the directive:
#
#     #includedir /etc/sudoers.d
#
# This will cause sudo to read and parse any files in the /etc/sudoers.d
# directory that do not end in '~' or contain a '.' character.
#
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode 0440.
#
# Note also, that because sudoers contents can vary widely, no attempt is
# made to add this directive to existing sudoers files on upgrade.  Feel free
# to add the above directive to the end of your /etc/sudoers file to enable
# this functionality for existing installations if you wish!
#
# Finally, please note that using the visudo command is the recommended way
# to update sudoers content, since it protects against many failure modes.
# See the man page for visudo for more information.
#
root@misohorny1:/etc/sudoers.d#
LL 3.6,2.8
Dell XT2 > Touchscreen Laptop
Dell 755 > Desktop
Acer 150 > Desktop
I am who I am. Your approval is not needed.
Reply


Messages In This Thread
Need help sudoers file - by chicknfangz - 02-16-2016, 10:04 PM
Re: Need help sudoers file - by rokytnji - 02-17-2016, 01:09 AM
Re: Need help sudoers file - by chicknfangz - 02-17-2016, 04:44 AM
Re: Need help sudoers file - by chicknfangz - 02-17-2016, 07:42 PM
Re: Need help sudoers file - by Wirezfree - 02-17-2016, 07:53 PM
Re: Need help sudoers file - by chicknfangz - 02-17-2016, 08:16 PM
Re: Need help sudoers file - by shaggytwodope - 02-17-2016, 08:45 PM
Re: Need help sudoers file - by chicknfangz - 02-17-2016, 10:30 PM
Re: Need help sudoers file - by shaggytwodope - 02-17-2016, 11:06 PM
Re: Need help sudoers file - by Valtam - 02-17-2016, 11:13 PM
Re: Need help sudoers file - by chicknfangz - 02-17-2016, 11:30 PM
Re: Need help sudoers file - by chicknfangz - 02-17-2016, 11:46 PM
Re: Need help sudoers file - by shaggytwodope - 02-17-2016, 11:54 PM
Re: Need help sudoers file - by chicknfangz - 02-18-2016, 12:13 AM
Re: Need help sudoers file - by chicknfangz - 02-18-2016, 12:17 AM
Re: Need help sudoers file - by chicknfangz - 02-18-2016, 12:20 AM
Re: Need help sudoers file - by rokytnji - 02-18-2016, 01:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)