[Newbies] 如何禁止单用户模式
Tofloor
poster avatar
zhichiguochanadd1
deepin
2021-06-26 01:58
Author

想请教一下deepin如何禁止单用户模式,在网上查了一下,教程好像都不适用,比如像splashimage这个后面加密码,但是又查找不到这行,求助,谢谢大家了

Reply Favorite View the author
All Replies
deepinuser17
deepin
2021-06-27 07:31
#1

1. 首先给grub加口令. 每次开机时, 必须输入这个口令才启动

https://computingforgeeks.com/how-to-protect-grub-with-password-on-debian-ubuntu-and-kali-linux/

https://www.golinuxcloud.com/steps-set-grub2-password-rhel-centos-7/

 

2. 取消用户的sudo权限

 

3. 不给用户root口令

Reply View the author
zhichiguochanadd1
deepin
2021-07-01 07:36
#2
deepinuser17

1. 首先给grub加口令. 每次开机时, 必须输入这个口令才启动

https://computingforgeeks.com/how-to-protect-grub-with-password-on-debian-ubuntu-and-kali-linux/

https://www.golinuxcloud.com/steps-set-grub2-password-rhel-centos-7/

 

2. 取消用户的sudo权限

 

3. 不给用户root口令

谢谢,按照你的方法解决了

Reply View the author
zhichiguochanadd1
deepin
2021-07-01 21:50
#3
deepinuser17

1. 首先给grub加口令. 每次开机时, 必须输入这个口令才启动

https://computingforgeeks.com/how-to-protect-grub-with-password-on-debian-ubuntu-and-kali-linux/

https://www.golinuxcloud.com/steps-set-grub2-password-rhel-centos-7/

 

2. 取消用户的sudo权限

 

3. 不给用户root口令

不好意思,我忽略了一个问题,这样每次开机都会输入密码,可是我只想要进入编辑模式的时候才要密码,直接开机不用密码,这怎么处理呢

Reply View the author
deepinuser17
deepin
2021-07-02 09:58
#4

如果不在启动时限制, 用户就可以看见grub的设置, 这是安全隐患. 

 

Reply View the author