文章分类 -  服务器

摘要:1、visudo 在root ALL=(ALL) ALL 下面添加如下一行 [root@localhost ~]# visudo ...... ## The COMMANDS section may have other options added to it. ## ## Allow root t 阅读全文
posted @ 2022-04-01 15:17 岁月静好· 阅读(335) 评论(0) 推荐(0)
摘要:输入这两句话,然后关闭终端,重新登录一下就好了 1 cp /etc/skel/.bashrc /root/ 2 cp /etc/skel/.bash_profile /root/ 同样的方法,如果是非root而是某用户,就把目标路径换成相对应的用户路径即可。(例如www用户为/home/www) 这 阅读全文
posted @ 2022-02-21 19:33 岁月静好· 阅读(345) 评论(0) 推荐(0)