当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: 好不容易放假了,重新写个批量添加用户的脚本。
 

 

 ·vsftpd服务器架设菜鸟手记    »显示摘要«
    摘要: :!: 简易vsftpd服务器的构建 1.确认是否安装vsftpd软件:#rpm –qa|grep vsftpd 2.启动ftp服务器:#service vsftpd start 3.默认的ftp目录为 /var/ftp/pub 4.ftp 127.0.0.1进行匿名测试,name:anonymous pass: :!: ftp服务器的进一步配置 创建欢迎语: 1.打开/etc/vsftpd/vsftpd.conf文件 2.把dirmessage......
 ·debian参考手册!    »显示摘要«
    摘要: 在下面,是个好东西! http://www.debian.org/doc/manuals/reference/reference.zh-cn.html 零二年的夏天 回复于:2005-01-11 21:48:39 不错,我们缺少debian的专述。 谢谢,衍水:d 衍水狂客 回复于:2005-01-11 22:13:02 感觉debian挺好的,但是我没用过。 最好有人把这个东西做成chm的文件。这样就好了! 哈~~~......


批量添加用户的脚本,大家提提意见

好不容易放假了,重新写个批量添加用户的脚本。 【相关文章:一个局域网 多个adsl接入 如何利用?

【扩展阅读:DHCP + DNS (bind) ==

思路有些混沌了,还望大家多多指教。;) 【扩展信息:说说3322动态域名在使用中遇到的一些问

这个脚本还有很多地方需要改进,比如算法,比如数据的处理。

希望大家不吝提出修改意见。

[code:1:22892b664a]

#!/bin/sh

# name: useraddmuti

# descripton: to add users to your system. users can be list in a file.

#             to exec this command your id must be 0.

# author: popzslam@linux.net

#-----------------------------------

chkuid(){

        getuid(){

                id|sed -e s/(.*$// -e s/^uid=//

                }

        if [ "`getuid`" -ne 0 ]

        then

                echo -e "\tyou are not root!"

                exit 0

        fi

        }

chkuid

usageprt(){

        echo ${usage:=usage: `basename $0` -f namelistfile}

        }

chkfile(){

        if [ ! -z "`awk nf!=2{print nf;exit;} $1`" ] && [ "`awk nf!=2{print nf;exit;} $1`" -ne 2 ] ; then

                echo -e "the files format is not right!"

                exit 0


...   下一页
 ·openssl自建证书ssl+apache    »显示摘要«
    摘要: 或者:客户端如何向服务端申请证书 我用如下命令自签署证书,也不知命令对不对! # openssl genrsa -des3 -out ca.key 1024 #openssl req -new -key ca.key -out ca.csr #openssl x509 -req -days 3650 -signkey ca.key -in ca.csr -out ca.crt 服务端证书 # openssl genrsa -des3 -out......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE