As you know root account is not allowed by default, so it should do some settings. Here I just write this for record, this will make me not to search the configuration every time from internet.
1. set root password:
sudo passwd root2. Change to root account:
su root3. Backup lightdm.conf in /etc/lightdm folder, or just modify this file.
cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak4. Edit lightdm.conf add : greeter-show-manual-login=true
sudo gedit /etc/lightdm/lightdm.confadd the the below line to the end:
<span style="color:#ff0000;">greeter-show-manual-login=true</span>
5. reboot, you will find the root user can login now.
But it seems that there is sound or you can't set the volume, that is because
pulseaudio is not started, so we should do the following:
6. Add root to pulse-access group and modify /etc/default/pulseaudio, find PULSEAUDIO_SYSTEM_START,
you will find it is 0, just changed to 1. Also change DISALLOW_MODULE_LOADING=0.
sudo usermod -a -G pulse-access rootgpasswd -a root pulsegpasswd -a root pulse-accesscd /etc/default/sudo gedit pulseaudio
change PULSEAUDIO_SYSTEM_START=1
DISALLOW_MODULE_LOADING=0
then save.
It seems that you need to restart to make it take effect. So far it can resolve the sound problem.
The below method has some defect.
I
test it this method, it must run the command every time after login.
After I get some update, when reboot,there is no voice again, it can be resolved by the following:
pulseaudio --start --log-target=syslogIt will get the sound back again.
本文介绍如何在Linux系统中配置根用户登录,包括设置密码、修改配置文件等步骤,并解决了登录后可能出现的声音问题。
2万+

被折叠的 条评论
为什么被折叠?



