问题1:批量创建10个系统账号ucode01-ucode10并设置密码(密码不能相同)#!/bin/bashfornin$(seq-w10)douseradducode-$necho"$n"|passwd--stdinucode-$ndone[root@localhostscripts]#shadduser01.shChangingpasswordforuserucode-01.passwd:allauthenticationtokensupdatedsucc..
分类:
其他好文 时间:
2016-04-06 11:36:30
阅读次数:
265
composer官网:https://getcomposer.org/ laravel官网:https://laravel.com/docs/5.2/installation Hi All, In this article we are going to setup Laravel on CentO ...
分类:
Web程序 时间:
2016-04-05 15:37:40
阅读次数:
268
1、故障描述:配置好fdfs后,测试上传一个/etc/passwd的文件,发现有报错信息(之前已经重启过FastDFS相关的服务过了)[root@Docker-01fdfs]#fdfs_upload_file/etc/fdfs/client.conf/etc/passwd
[2016-04-0322:40:56]ERROR-file:tracker_proto.c,line:48,server:192.168.1.136:2..
分类:
其他好文 时间:
2016-04-05 14:18:57
阅读次数:
11327
原文链接:http://www.orlion.ga/1147/ mysqli有面向对象风格和面向过程风格,个人感觉还是用面向对象风格比较好(毕竟是面向对象) 1、mysqli::_construct() $host、$username、$passwd、$dbname、$port不用多说了,规则与my ...
分类:
数据库 时间:
2016-04-03 23:50:48
阅读次数:
308
打开命令窗口 输入命令:sudo passwd root 然后按照上图中的操作进行即可。 su和su -的命令的不同: su命令和su -命令最大的本质区别就是:前者只是切换了root身份,但Shell环境仍然是普通用户的Shell;而后者连用户和Shell环境一起切换成root身份了。只有切换了S ...
分类:
系统相关 时间:
2016-04-02 16:10:01
阅读次数:
307
1、用户管理常用到的配置文件就3个/etc/passwd、/etc/shadow、/etc/group;下面就来看看这里面都是什么东西。(1)用户的基本信息存放在/etc/passwd中。上面每一行由6个“:”和7个字段组成。从左向右依次的意思为:用户的用户名;用户的密码;用户id为唯一标识,uid;用户组的..
分类:
其他好文 时间:
2016-04-02 07:11:07
阅读次数:
144
#!/bin/shsrc=/backupdes=zqrsync_passwd=/etc/web.passwdip=192.168.1.127user=zqcd${src}/usr/local/inotify-tools/bin/inotifywait-mrq--format‘%w%f‘-emodify,create,delete,attrib,close_write,move./|whilereadlinedo rsync-avzR--timeout100--password-file=${rsync_pas..
分类:
其他好文 时间:
2016-04-01 16:16:18
阅读次数:
159
useradd-g-u-c-s-d-G-M-D改变默认属性userdel-rusermodgroupaddgroupdelpasswd--stdinchage修改密码过期属性的-l-Esu--c执行完退回来sudo普通用户可以拥有root的权限visudonewgrpidwwholastlastlogwhoamifinger服务器用户权限管理改造方案与实施项目最小化:安装软件权限(目录..
分类:
系统相关 时间:
2016-04-01 16:11:59
阅读次数:
281
0root1-499虚拟用户500-65535普通用户root:x:0:0:root:/root:/bin/bash/etc/passwd/etc/shadowuseradduserdelpasswdchageusermodidsusudovisudopwckfingerrm-f.*#ll/etc/skel/-al拷到用户的家目录cp-a.bash*/home/xx/#chownxx:xx-R/home/xx#cat/etc/login.defs密码属性相关的内..
分类:
系统相关 时间:
2016-04-01 06:39:59
阅读次数:
266
#!/usr/bin/envexpect
setusername[lindex$argv0]
setpasswd[lindex$argv1]
setclientip[lindex$argv2]
setdir/root/
setfile317.sql
spawn/bin/bash-c"scp-r$dir$file$username@$clientip:$dir"
expect"password:"
send"$passwd\r"
interact
expect"#"说明: $argv0表示第1个..
分类:
其他好文 时间:
2016-03-31 11:12:47
阅读次数:
196