MSIPO技术圈 首页 IT技术 查看内容

Ubuntu Desktop Server - user 用户与 root 用户切换

2024-03-25

Ubuntu Desktop Server - user 用户与 root 用户切换

1. user 用户与 root 用户切换

strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo su
[sudo] password for strong: 
root@foreverstrong:/home/strong# 
root@foreverstrong:/home/strong# 
root@foreverstrong:/home/strong# exit
exit
strong@foreverstrong:~$ 
strong@foreverstrong:~$

2. root 用户与 user 用户切换

其中 strong 是系统的一个帐户名。

strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo su
root@foreverstrong:/home/strong# 
root@foreverstrong:/home/strong# su - strong
strong@foreverstrong:~$ 

​​​

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

相关阅读

热门文章

    手机版|MSIPO技术圈 皖ICP备19022944号-2

    Copyright © 2024, msipo.com

    返回顶部