Linux从root切换某个用户时可能出现:-bash-4.1$ 如下所示:[root@server ~]# su - postgres-bash-4.1$ id postgresuid=26(postgres) gid=26(postgres) 组=26(postgres)-bash-4.1$原因:被切换的这个用户/home目录下环境变量文件被删除了,通过对比可以发现缺少两个文件(.bash_profile和.bashrc).为什么需要这两个文件呢?因为Linux系统在通过useradd创建新
1.修改root密码(其他用户类似) 试过网上看的一些 在mysql数据库执行 update user set password='新密码' where user='root' 执行说找不到字段,猜想可能以前老版本跟新版本数据表结构不一样了,所以看了下表,应该是authentication_string字段 update user set authentication_string='新密码' where user='root'. 2.局域网或者远程用户无法访问 看了下有些描述的比较麻烦
在上一篇随笔里面详细讲解了Linux系统的启动过程 (Linux学习之CentOS(二十一)--Linux系统启动详解),我们知道Linux系统的启动级别一共有6种级别,通过 /etc/inittab 这个文件我们就能看到: [root@xiaoluo ~]# cat /etc/inittab # inittab is only used by upstart for the default runlevel. # # ADDING OTHER CONFIGURATION HERE WILL H