sudoers.d의 README 파일은 어떤 유형의 파일입니까?

sudoers.d의 README 파일은 어떤 유형의 파일입니까?

그냥 궁금해서... 내 모든 관리 권한으로 읽을 수 있는 좋은 파일이 될 거라고 생각했는데... ㅋㅋㅋ. 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

이 파일은 시스템 기능에 그다지 중요하지 않으므로 편집해도 큰 문제는 아닙니다.

관련 정보