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

📄 linux 用户管理工具介绍 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 5 页
字号:
      -m -l fishlinux -U linuxfish<BR>注:把linuxfish 用户名改为fishlinux ,并且把其家目录转移到 
      /opt/linuxfish ;<BR>[root@localhost ~]# ls -la /opt/linuxfish/ 
      注:查看用户fishlinux的家目录下的文件及属主;<BR>总用量 48<BR>drwxr-xr-x 3 fishlinux linuxfish 
      4096 11月 5 16:46 .<BR>drwxrwxrwx 29 root root 4096 11月 5 16:48 
      ..<BR>-rw-r--r-- 1 fishlinux linuxfish 24 11月 5 16:46 
      .bash_logout<BR>-rw-r--r-- 1 fishlinux linuxfish 191 11月 5 16:46 
      .bash_profile<BR>-rw-r--r-- 1 fishlinux linuxfish 124 11月 5 16:46 
      .bashrc<BR>-rw-r--r-- 1 fishlinux linuxfish 5619 11月 5 16:46 
      .canna<BR>-rw-r--r-- 1 fishlinux linuxfish 438 11月 5 16:46 
      .emacs<BR>-rw-r--r-- 1 fishlinux linuxfish 120 11月 5 16:46 
      .gtkrc<BR>drwxr-xr-x 3 fishlinux linuxfish 4096 11月 5 16:46 
      .kde<BR>-rw-r--r-- 1 fishlinux linuxfish 0 11月 5 16:46 
      mydoc.txt<BR>-rw-r--r-- 1 fishlinux linuxfish 658 11月 5 16:46 
      .zshrc<BR>[root@localhost ~]# more /etc/passwd |grep fishlinux 
      注:查看有关fishlinux的记录;<BR>fishlinux:x:512:512::/opt/linuxfish:/bin/bash</CODE></DIV>
      <P></P>
      <P>通过上面的例子,我们发现文件的用户组还没有变,如果您想改变为fishlinux用户组,如果想用通过 
      usermod来修改,就要先添加fishlinux用户组;然后用usermod -g 来修改 ,也可以用chown -R 
      fishlinux:fishlinux /opt/finshlinux 来改;</P>
      <P><FONT color=red><B>警告:</B></FONT> usermod 
      最好不要用它来改用户的密码,因为他在/etc/shadow中显示的是明口令;修改用户的口令最好用passwd ;</P>
      <P>
      <DIV class=codeblock><CODE>[root@localhost ~]# usermod -p 123456 fishlinux 
      注:修改fishlinux的口令是123456 ;<BR>[root@localhost ~]# more /etc/shadow |grep 
      fishlinux 
      注:查询/etc/shadow文件中fishlinux的口令;我们看到明显是没有加密;<BR>fishlinux:123456:13092:0:99999:7:::</CODE></DIV>
      <P></P>
      <P><FONT id=5.4 size=3><B><BR>4、userinfo 图形介面的修改工具;<BR></B></FONT></P>
      <P>userinfo 系统普通用户都能调用,但都是修改当前操作用户的;还是点鼠标完成吧,多点几下就OK了。</P>
      <P>
      <DIV class=codeblock><CODE>[root@localhost ~]# userinfo</CODE></DIV>
      <P></P>
      <P><FONT id=6 size=4><B><BR>六、后记;<BR></B></FONT></P>
      <P>本文档勉强有了个形,修正是肯定的了;在修正的同时,我会计划与下一篇文档,可能会写文件与权限方面的。但愿我能坚持住;</P>
      <P>生活总是枯燥的,但这并不会影响我写文档的心情。每当写完一个文档,虽然仅有几个弟兄支持,但我还是很开心。我整天自以为是大侠了,大侠只是我的一个梦想吧。</P>
      <P>谁让我学的是文科呢?</P>
      <P><FONT id=7 size=4><B><BR>七、关于本文;<BR></B></FONT></P>
      <P>本文写起来比超级权限控制那篇文档要容易点,毕竟只是用户控制工具的介绍;从文字量来看好象很大,但文字量的大小并不能说明什么问题,只有初学者能读得懂才是好文档。</P>
      <P>由于篇幅较长,我会慢慢修正,当然弟兄们的修正,我是极为欢迎的,谢谢;</P>
      <P><FONT id=8 size=4><B><BR>八、致谢;<BR></B></FONT></P>
      <P><FONT id=9 size=4><B><BR>九、参考文档;<BR></B></FONT></P>
      <P>本文参考了相关命令的man 和help ,比如 useradd 和userinfo 
      的帮助文档是中文,我就照搬过来了,改一改翻译错误的地方。向中译本的作者致意 ;</P>
      <P><FONT id=10 size=4><B><BR>十、相关文档;<BR></B></FONT></P>
      <P><A href="http://www.linuxsir.org/main/?q=node/91">《Linux 
      用户(user)和用户组(group)管理概述》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/98">《用户(user)和用户组(group)配置文件详解》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/105">《Linux 
      用户(User)查询篇》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/106">《Linux 用户管理工具介绍》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/104">《Linux 
      系统中的超级权限的控制》</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/109">《在Linux系统中,批量添加用户的操作流程》</A></P></DIV>
      <DIV class=links>By 北南南北 at 2005/11/05 - 20:29 | <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/1">Linux</A> | <A 
      href="http://www.linuxsir.org/main/?q=taxonomy/term/25">基础知识</A> | <A 
      title=共享你有关本文的思想和意见。 
      href="http://www.linuxsir.org/main/?q=comment/reply/106#comment">参与评论</A> 
      | 5308 阅读</DIV></DIV><A id=comment></A>
      <FORM action=?q=comment method=post>
      <DIV><INPUT type=hidden value=106 name=edit[nid]> <A id=comment-231></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/106#comment-231">向beinan致意</A></H3>
      <DIV class=content>
      <P>其实,阅读数实际上也是一个最大的鼓舞啥!!</P>
      <P>很多没有发表评论的人其实心里都挺感激的,因为不少文章写的都很详细,文字叙述也没有那么晦涩。</P>
      <P>beinan的文章一向都比较容易让人看了就知道作者想表达的意思。支持ing。</P></DIV>
      <DIV class=links>By Anonymous at 周二, 2006/01/24 - 17:20 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/106/231">回复</A></DIV></DIV>
      <DIV style="MARGIN-LEFT: 25px"><A id=comment-619></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/106#comment-619">okok</A></H3>
      <DIV class=content>
      <P>okokok</P></DIV>
      <DIV class=links>By Anonymous at 周五, 2006/08/04 - 09:36 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/106/619">回复</A></DIV></DIV></DIV></DIV></FORM><!-- end content -->
      <DIV id=footer>
      <CENTER><A href="http://www.linuxsir.org/"><IMG 
      src="Linux 用户管理工具介绍  LinuxSir_Org.files/logo.jpg"></A> <BR><A 
      href="http://www.miibeian.gov.cn/"><FONT color=blue 
      size=3><B>闽ICP备06025536号</B></FONT></A><BR>
      <SCRIPT language=JavaScript 
      src="Linux 用户管理工具介绍  LinuxSir_Org.files/cyberpolice.htm"></SCRIPT>
      <BR><A href="http://www.linuxsir.org/main/?q=node/78"><FONT color=blue 
      size=3><B>© 2002-2006 LinuxSir.Org</B></FONT></A><BR></CENTER></DIV></TD>
    <TD id=sidebar-right>
      <DIV class="block block-block" id=block-block-2>
      <H2 class=title>基础知识</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/23">安装配置</A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/">基础入门</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/22/">硬件解决</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/21">软件管理</A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/">重要资源</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-4>
      <H2 class=title>软件应用</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/30">网络工具</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/32">图形图像</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/31">音乐视频</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/49">字体中文</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/33">软件其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-5>
      <H2 class=title>网络服务器</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/27">文件服务器<A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/28">Web服务器</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/29">邮件服务器</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/37">数据库应用</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/50">服务器其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-comment" id=block-comment-0>
      <H2 class=title>最新评论</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-624">错了</A><BR>8 
        min 6 sec 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-623">q</A><BR>27 
        min 43 sec 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-622">有些道理</A><BR>49 
        min 12 sec 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/219#comment-621">"内置的摄像头也能用这个吗?"</A><BR>13 
        hours 54 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/80#comment-620">终于知道了...</A><BR>23 
        hours 9 min 前
        <LI><A class=active 
        href="http://www.linuxsir.org/main/?q=node/106#comment-619">okok</A><BR>2 
        days 14 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/93#comment-618">那要除去阴影呢?</A><BR>3 
        days 19 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/227#comment-617">不错的机会</A><BR>4 
        days 6 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/221#comment-616">配置可执行程序的路径</A><BR>4 
        days 12 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/222#comment-615">修改hostname出现的问题</A><BR>5 
        days 2 hours 
前</LI></UL></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

⌨️ 快捷键说明

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