共 15 篇文章 |
|
阅58 转0 评0 公众公开 13-10-11 18:08 |
ntpdate ntp.ubuntu.com cn.pool.ntp.orgchmod 755 /etc/cron.daily/ntpdate #修改权限ntpdate -d cn.pool.ntp.org #立即同步时间方法二:ntpd 方式。apt-get install -y ntpvim /etc/ntp.conf #修改为下面几行server 0.debian.pool.ntp.org iburst dynamicserver 1.debian.pool.ntp.org iburst dynamicserver 2.debian.pool.ntp.org iburst dy... 阅2314 转7 评0 公众公开 12-10-02 20:45 |
passwd命令。因此使用useradd命令增加时,还需使用passwd命令为每一位新增加的用户设置口令;用户以后还可以随时用passwd命令改变自己的口令。该命令的一般格式为: passwd [用户名] 其中用户名为需要修改口令的用户名。只有超级用户可以使用“passwd 用户名”修改其他用户的口令,普通用户只能用不带参数的passwd命令修改自己的口令。普通用户... 阅653 转0 评0 公众公开 11-06-16 10:26 |
Understanding /etc/passwd File FormatUnderstanding /etc/passwd File Format./etc/passwd file stores essential information, which is required during login i.e. user account information. /etc/passwd is a text file, that contains a list of the system''s accounts, giving for each account some useful information lik... 阅188 转0 评0 公众公开 11-06-16 10:19 |
Linux 上的常用文件传输方式介绍与比较Linux 上的常用文件传输方式介绍与比较 ftpftp 命令使用文件传输协议(File Transfer Protocol, FTP)在本地主机和远程主机之间或者在两个远程主机之间进行文件传输。rsync [OPTION] SRC [USER@]HOST::DEST 或 rsync [OPTION] SRC rsync://[USER@]HOST[:PORT]/DEST 从本地机器拷贝文件... 阅416 转1 评0 公众公开 11-06-15 15:15 |
rsync 服务器架设和使用详细讲解rsync 服务器架设和使用详细讲解 1 什么是rsync;5.2 rsync服务器和防火墙;[beinan@beinnaIBM:~]$ rsync -avzP --delete --password-file=rsync.password bestlovesky@bestlovesky.com::bestloveskyhome bestloveskyhome这次我们加了一个选项 --password-file=rsync.password ,这是当我们以bestloves... 阅287 转1 评0 公众公开 11-06-15 15:09 |
ssky-keygen + ssh-copy-id 无密码登陆远程LINUX主机ssky-keygen + ssh-copy-id 无密码登陆远程LINUX主机使用下例中ssky-keygen和ssh-copy-id,仅需通过3个步骤的简单设置而无需输入密码就能登录远程Linux主机。 阅579 转2 评0 公众公开 11-04-24 23:43 |
用户登陆后,ssh loaclhost无需密码#生成rsa类型的密钥, 输入密码阶段设置为空ssh-keygen -t rsa -P ""#密钥拷贝为认证keyscat $HOME/.ssh/id_rsa.pub >>$HOME/.ssh/authorized_keys.#检查sshd配置vi /etc/ssh/sshd_configPubkeyAuthentication 设置为yesAuthorizedKeysFile %h/.ssh/authorized_keys.#第一次ssh登陆本地,... 阅448 转0 评0 公众公开 11-04-24 15:36 |
添加用户/用户组#创建一个组agroup$ sudo addgroup agroup#添加一个用户auser到组agroup$ sudo adduser --ingroup agroup auser. 阅93 转0 评0 公众公开 11-04-24 15:26 |
add the following lines to the end of the file:#disable ipv6net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1. 阅581 转0 评0 公众公开 11-04-24 15:17 |