⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node89.html

📁 linux管理操作指南!大家看看就知道!很不错的!无解压密码!
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Disabling a user temporarily</TITLE>
<META NAME="description" CONTENT="Disabling a user temporarily">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/sag.css">
</HEAD>
<BODY LANG="EN" >
 <A NAME="tex2html1413" HREF="node90.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node90.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/next_motif.gif"></A> <A NAME="tex2html1411" HREF="node80.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node80.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/up_motif.gif"></A> <A NAME="tex2html1407" HREF="node88.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node88.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/previous_motif.gif"></A> <A NAME="tex2html1415" HREF="node1.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/contents_motif.gif"></A> <A NAME="tex2html1416" HREF="node108.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html1414" HREF="node90.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node90.html">Backups</A>
<B>Up:</B> <A NAME="tex2html1412" HREF="node80.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node80.html">Managing user accounts</A>
<B> Previous:</B> <A NAME="tex2html1408" HREF="node88.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node88.html">Removing a user</A>
<BR> <P>
<H1><A NAME="SECTION00950000000000000000">临时禁止一个用户</A></H1>
<P>
有时需要临时禁止一个用户,而不删除它。例如用户没有付费,或系统管理员怀疑黑客得到了某个帐户的口令。
<P>
禁止一个用户的最好方法是将它的shell变到一个特定的只打印出一条信息的程序,
用这种方法,任何想登录此帐户的人将无法登录,并得知原因。
该信息可以告诉用户与系统管理员联系,以处理任何问题。
<P>
也可以改变用户名或口令,但这样用户不知道怎么回事。
Confused users mean more work.
<A NAME="tex2html37" HREF="footnode.html#2470" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/footnode.html#2470"><IMG  ALIGN=BOTTOM ALT="gif" SRC="foot_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/foot_motif.gif"></A>
<P>
产生上述特定程序的一个简单方法是写"tail scripts":
<BLOCKQUOTE> <PRE>#!/usr/bin/tail +2
This account has been closed due to a security breach.
Please call 555-1234 and wait for the men in black to arrive.</PRE></BLOCKQUOTE>
前2个字符("<code>#!</code>")告诉核心本行的其他部分是解释本文件要运行的命令。
这样<tt>tail</tt><A NAME="2552">&#160;</A>命令将输出处理第一行外的所有东西到标准输出。
<P>
如果怀疑<tt>billg</tt>是个安全缺口,系统管理员可以这样做:
<BLOCKQUOTE> <TT>
<code>#</code> <i>chsh -s /usr/local/lib/no-login/security billg</i> <BR> 
<code>#</code> <i>su - tester</i> <BR> 
<code>This account has been closed due to a security breach.</code> <BR> 
<code>Please call 555-1234 and wait for the men in black to arrive.</code> <BR> 
<code>#</code>
</TT></BLOCKQUOTE>
<tt>su</tt><A NAME="2554">&#160;</A>的目的是此时改变是否工作。
<P>
Tail scripts应该放在一个分离的目录中,这样它们的名字不会干扰普通用户的命令。
<P>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sun Jun 29 13:31:22 EEST 1997</I>
</ADDRESS>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -