setuid:跟文件所有者一样,得到相同权限。sudo为权限下放,su-user为切换用户-rwsr-xr-xrootroot/usr/bin/passwd:s小写说明有x权限(大写则没有x权限),其他所有的人用有跟root用户一样权限可操作/usr/bin/passwd文件chmod4755/xx可让文件获取该权限chmod755/xx取消文件该权限..
分类:
其他好文 时间:
2016-06-18 17:10:56
阅读次数:
196
使用命令【su - root】切换用户,提示【su:认证失败】 原因:Ubuntu安装之后,root用户默认是被锁定的,不允许登录,也不允许su到root。 解决:重新设置密码 在终端输入命令:sudo passwd ...
分类:
其他好文 时间:
2016-06-18 12:48:01
阅读次数:
137
需求:手动添加用户hive,基本组为hive,id为5000,vi/etc/group:hive:x:5000:vi/etc/passwd:hive:x:5000:5000:Hive:/home/hive:/bin/bashvi/etc/shadowhive:!!:(date+%s)/86400:0:99999:7:::cp-r/etc/skel//home/hivechown-Rhive.hive/home/hivechmod-Rgo=/home/hive生成密码:open..
分类:
其他好文 时间:
2016-06-17 19:46:25
阅读次数:
141
上午命令lessabc.txt查看abc文件可以上翻下翻ls--help|more(用More方式查看该文件)catabc.txt查看abc文件head-5abc.txt查看前五行tail-5abc.txt查看尾五行head-10/etc/passwd|tail-4查看六到十行文件tail-fabc.txt动态查看文件moreabc.txt查看abc.txt按Q退出按回车显示下一行..
分类:
系统相关 时间:
2016-06-17 17:36:17
阅读次数:
252
Modifying the Configuration Files To add user accounts, it suffices that one line is added to /etc/passwd and another line is added to /etc/shadow, in ...
分类:
其他好文 时间:
2016-06-17 12:47:22
阅读次数:
199
一。下载cactieziso文件搭建虚拟机安装cactize系统(这一块网上很多)二、设置CactiEZ监控主机默认安装好之后,系统登录用户root,密码CactiEZ(区分大小写)以下操作在登录系统之后进行1、修改root登录密码passwdroot→回车之后,提示输入2次新密码出现:passwd:allauthentic..
分类:
其他好文 时间:
2016-06-16 18:22:35
阅读次数:
196
linux-用户和用户组基础命令和操作添加用户和用户组添加用户:useraddadmin添加用户叫做admin添加组:groupaddadmin添加用户组删除用户:userdeladmin删除用户2.查看用户和用户组查看用户cat/etc/passwd查看组cat/etc/group3.修改用户和用户组属性修改用户:usermod-u修改用户..
分类:
系统相关 时间:
2016-06-16 08:06:39
阅读次数:
264
locate passwd :查找文件或文件夹,根据数据库文件(默认一天更新一次),可以通过updatedb命令进行更新数据库文件 whereis passwd :查找特定文件,也是根据数据库查找 [root@localhost ~]# find / -name passwd :直接从硬件查找文件/ ...
分类:
系统相关 时间:
2016-06-15 12:25:11
阅读次数:
185
需要三台纯净的虚拟机,server3作为server1:172.25.45.1server2:172.25.45.2server3:172.25.45.3【server1,server2】1.重新配置yum源vimdvd.repo内容rumrepolist图2.配置/etc/hosts文件图3.yuminstall-yricci4.echowestos|passwd--stdinricci5.chkconfigriccion/etc/init.d/ric..
分类:
其他好文 时间:
2016-06-15 08:05:59
阅读次数:
269
启动shell GNU bash shell提供对Linux系统交互式访问。他以常规程序运行,通常在用户登录终端时启动。登录时具体启动那种shell依据用户配置文件/etc/passwd 。 /etc/passwd 包含所有系统用户账户列表以及每个用户的基本信息。eg:其中一个条目 christin ...
分类:
系统相关 时间:
2016-06-14 23:43:50
阅读次数:
208