Какой тип файла имеет файл README в sudoers.d?

Какой тип файла имеет файл README в sudoers.d?

Просто любопытно...подумал, что было бы неплохо прочитать файл со всеми моими административными привилегиями, но не...ЛОЛ. Не открывается, так как Ubuntu не может определить тип файла.

Не волнуйся, я не собираюсь ничего менять, обещаю.

решение1

"Не открывается"? Как вы пытаетесь его открыть? Вот некоторые команды, которые я использовал в своей системе:

w3@aardvark:~(0)$ ls -l /etc/sudoers.d
total 8
-r--r----- 1 root root 1626 Dec 28  2013 IPCop
-r--r----- 1 root root  958 Feb 10  2014 README
w3@aardvark:~(0)$ sudo file /etc/sudoers.d/README
[sudo] password for w3: 
/etc/sudoers.d/README: ASCII text
w3@aardvark:~(0)$ sudo cat /etc/sudoers.d/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.
#
w3@aardvark:~(0)$ sudo mimetype /etc/sudoers.d/README
/etc/sudoers.d/README: text/x-readme

решение2

Это простой текстовый файл. Вы можете прочитать его, запустив

sudo less /etc/sudoers.d/README

Этот файл на самом деле не так уж важен для функционирования системы, поэтому если вы его отредактируете, это не будет большой проблемой.

Связанный контент