安装sudo,添加用户 #?pacman?-S?sudo #?useradd?-m?-G?wheel?-s?/bin/bash?XXX #?passwd?XXX #?visudo #?%wheel ALL=(ALL) ALL 这行反注释掉 intel的CPU需要安装microcode,尤其是Haswell 和 Broadw...
分类:
系统相关 时间:
2015-09-29 00:00:11
阅读次数:
538
1.作用useradd命令用来建立用户帐号和创建用户的起始目录,使用权限是终极用户。2.格式useradd [-d home] [-s shell] [-c comment] [-m [-k template]] [-f inactive] [-e expire ] [-p passwd] [-r]...
分类:
其他好文 时间:
2015-09-27 21:24:24
阅读次数:
154
1、“$”是普通用户的系统提示符;“#”是超级用户的系统提示符。 2、sudo su 普通用户切换超级用户 ?? su 普通用户名? 超级用户切换普通用户 3、passwd 修改当前用户名密码 用 sudo passwd root 可以设置 ro...
分类:
系统相关 时间:
2015-09-27 12:37:40
阅读次数:
240
定义引用三个组件EditText name = (EditText)findViewById(R.id.name);EditText passwd = (EditText)findViewById(R.id.passwd);RadioButton male = (RadioButton) findV...
分类:
其他好文 时间:
2015-09-26 23:59:48
阅读次数:
389
生产环境配置:操作系统:CentOS6.61.产生的问题:在使用useradd命令添加帐号(的)时候出现“seradd:cannotopen/etc/passwd”[root@sky9896~]#useradd-d/home/wwwroot/ftupuser-gftp-s/sbin/nologinftpuseruseradd:cannotopen/etc/passwd2.产生的原因:a)添加“i”隐藏属性后,就..
分类:
系统相关 时间:
2015-09-26 18:45:32
阅读次数:
257
1.修改密码mysql默认是没有密码的,可以用如下方式修改:mysql> use mysql;mysql> update user set password=PASSWORD('new_passwd') where name='name';mysql> flush privileges;sudo /...
分类:
数据库 时间:
2015-09-25 13:17:07
阅读次数:
188
普通用户下启动nginx服务创建普通用户useraddlvnian010101tail-5/etc/passwdechoasdasd|passwd--stdinlvnian010101##############[root@LNMPhome]#useraddlvnian010101[root@LNMPhome]#tail-5/etc/passwddeng:x:500:500::/home/deng:/bin/bashnginx:x:501:501::/home/nginx:/sb..
分类:
其他好文 时间:
2015-09-24 19:40:25
阅读次数:
546
##创建普通用户,并切换到普通用户下useraddlvnian002tail-5/etc/passwdechoasdasd|passwd--stdinlvnian002sulvnian002##########[root@LAMPconf]#useraddlvnian002tail-5/etc/passwdechoasdasd|passwd--stdinlvnian002sulvnian002[root@LAMPconf]#tail-5/etc/passwdtcpdump:x:..
分类:
Web程序 时间:
2015-09-24 19:38:52
阅读次数:
333
yuminstallpython-setuptools1、useraddgit&&echo"123"|passwd--stdingit2、mkdir/home/git/repositorieschowngit:git/home/git/repositorieschmod755/home/git/repositories3、getandinstallgitosiscd/tmpgitclonehttps://github.com/res0nat0r/gitosis.gitcdgitosisp..
分类:
其他好文 时间:
2015-09-24 19:28:22
阅读次数:
132
linux压缩有文件,目录压缩和归档文件压缩种类:gzip,bzip2,xz目录压缩:zip归档:tar各种文件压缩的命令都是实现下面的几个功能,只是语法略有不同gzip:文件后缀:gz压缩:gzip文件,删除原文件[root@centostest]#ll
total192
-rw-------.1rootroot193746Sep2312:05test01
[root@cento..
分类:
系统相关 时间:
2015-09-23 17:21:45
阅读次数:
253