如何设置 Linux 是否要在用户输入 sudo 密码时,以星号字符显示已输入的密码长度?
「sudo」是 Linux 操作系统常用的指令,它可以暂时让非 root 的用户能够以 root 权限去运行某个指令。在使用「sudo」运行指令之后,程序通常会要求用户再次输入其登录时所用的密码,以确保目前临时使用 root 权限操作电脑的人真的是该用户本人。在预设情况下,用户输入给「sudo」的密码通常完全不会显示在终端机上,但是我们其实可以做一些设置,让用户输入的密码能以星号字符表示出来,如此...
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
MagicLen 的主要文章,分成「科学与科技」和「社会与生活」两大类。前者以编程、操作系统、网络与软硬件的教学和心得为主,后者包含语言学习、创作、旅游、开箱与各种生活主题,另外还有本站公告。
共 1660 篇文章
「sudo」是 Linux 操作系统常用的指令,它可以暂时让非 root 的用户能够以 root 权限去运行某个指令。在使用「sudo」运行指令之后,程序通常会要求用户再次输入其登录时所用的密码,以确保目前临时使用 root 权限操作电脑的人真的是该用户本人。在预设情况下,用户输入给「sudo」的密码通常完全不会显示在终端机上,但是我们其实可以做一些设置,让用户输入的密码能以星号字符表示出来,如此...
Which http_access directive for Squid allows users in the ACL named sales_net to only access the Internet at times specified in the time_acl named sales_time? A. http_access deny sales_time sales_n...
Which of the following DNS record types is used for reverse DNS queries? A. CNAME B. IN C. PTR D. REV E. RIN
Which of the following information has to be submitted to a certification authority in order to request a web server certificate? A. The web server's private key. B. The IP address of the web serv...
In order to protect a directory on an Apache HTTPD web server with a password, this configuration was added to an .htaccess file in the respective directory: AuthType Basic AuthName "Protected Dir...
A BIND server should be upgraded to use TSIG. Which configuration parameters should be added if the server should use the algorithm hmac-md5 and the key skrKc4DoTzi/takIlPi7JZA==? A. TSIG server...
Which of the following Samba configuration parameters is functionally identical to the parameter read only=yes? A. browseable=no B. read write=no C. writeable=no D. write only=no E. write acces...
A user requests a "hidden" Samba share, named confidential, similar to the Windows Administration Share. How can this be configured? A. [confidential] comment = hidden share path = /srv/smb/hi...
In order to join a file server to the Active Directory domain intra.example.com, the following smb.conf has been created: [global] workgroup = intra.example.com netbios name = Fileserver ...
How must Samba be configured such that it can check CIFS passwords against those found in /etc/passwd and /etc/shadow? A. Set the parameters "encrypt passwords = yes" and "password file = /etc/pass...