码迷,mamicode.com
首页 >  
搜索关键字:cento 7.1 userai userdel passwd    ( 5274个结果
ubuntu:activate root
You must activate the usr of root,when using a pc with a new os of ubuntu. This command: sudo passwd root And the 'sudo' is just to get the authority ...
分类:系统相关   时间:2016-09-16 10:11:03    阅读次数:193
redis cluster 集群搭建步骤和注意事项
1、安装Ubuntu ,修改root的密码。 sudo passwd (apt-get update 更新系统) 2、安装 Gcc 和G++ sudo apt-get install build-essential 3、下载 Redis wget http://download.redis.io/r ...
分类:其他好文   时间:2016-09-15 11:02:29    阅读次数:168
grep命令及正则
文本查找 grep,egrep,fgrep grep :Global Research 根据模式搜索文本,并将符合模式的文本行显示出来 模式:Pattern,文本字符和正则的元字符组合而成匹配条件 grep 'root' /etc/passwd -i :ignore case,忽略大小写 --col ...
分类:其他好文   时间:2016-09-15 00:49:37    阅读次数:163
linux —— 学习笔记(用户管理与权限控制)
目录:1、用户的创建和管理 2、组的创建和管理 3、文件执行权限的控制 4、不用密码执行sudo 1、用户的创建和管理 用户的创建和管理: useradd、usermod 、 userdel 、passwd 相关文件:/etc/passwd (用户的基本信息包括用户简单描述和目录等)/etc/sha ...
分类:系统相关   时间:2016-09-14 00:23:13    阅读次数:247
vsftp安装
yum install -y vsftpd lftpuseradd xxx_ftp -s /sbin/nologin echo "xxx_ftp@123" |passwd --stdin guocai_ftp vim /etc/vsftpd/vsftpd.conf#10行附近anonymous_en ...
分类:其他好文   时间:2016-09-14 00:14:06    阅读次数:120
python控制mysql的API手记
python控制mysql的API #import MySQLdb:引用对应的开发包#conn=MySQLdb.connect (host='localhost',user='root',passwd='root',db='test',port=3306):创建数据 库连接#cur=conn.cur ...
分类:数据库   时间:2016-09-13 23:53:42    阅读次数:172
关于 CentOS 5、6 破解root账户
当你自己的root账户密码忘记了怎么办,往下面看开机重启过程按任意键到这个界面。然后提示按a键然后空格按下数字1回车确认成功进到命令界面,passwd输入新的密码然后重启开机这个就是拿刚才修改过的密码登录进来的界面CentOS6跟上面差不多按下空格键输入数字1回车进入命令界面..
分类:其他好文   时间:2016-09-12 07:28:43    阅读次数:208
14个grep命令的例子。
在本文中,我们将会讨论到14个grep命令的例子。例1在文件中查找模式(单词)在/etc/passwd文件中查找单词“linuxtechi”root@Linux-world:~#greplinuxtechi/etc/passwdlinuxtechi:x:1000:1000:linuxtechi,,,:/home/linuxtechi:/bin/bashroot@Linux-world:~#例2在多个文件中查找..
分类:其他好文   时间:2016-09-11 15:47:16    阅读次数:221
第五周作业
第五周作业1、显示当前系统上root、fedora或user1用户的默认shell;grep"^root"/etc/passwd|awk-F‘:‘‘{print$7}‘2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep".*(\{1\}).*"/etc/rc.d/init.d/functions3、使用echo命令输出一个绝对..
分类:其他好文   时间:2016-09-10 22:31:16    阅读次数:207
linux的文件权限与目录配置
(1)一个用户可以加入多个群组。(2)/etc/passwd :账户信息文件 /etc/shadow :密码文件 /etc/group : 组名文件(3)如果文件被修改的时间距现在太久了,使用ls -l时,就会显示年份。(4)使用 ls -l --full-time 显示文件时间戳的完整信息。(5) ...
分类:系统相关   时间:2016-09-10 17:32:52    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!