ubuntu: root 自动登录

vi /etc/gdm/gdm.conf

注意看红色部分

[daemon] # Automatic login, if true the first attached screen will automatically logged # in as user as set with AutomaticLogin key. AutomaticLoginEnable=true AutomaticLogin=root # Timed login, useful for kiosks. Log in a certain user after a certain amount # of time. TimedLoginEnable=root TimedLogin=root TimedLoginDelay=10 [security] # Allow root to login. It makes sense to turn this off for kiosk use, when # you want to minimize the possibility of break in. AllowRoot=true # Allow login as root via XDMCP. This value will be overridden and set to # false if the /etc/default/login file exists and contains # "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists # and contains any other value or no value for CONSOLE. AllowRemoteRoot=false # This will allow remote timed login. AllowRemoteAutoLogin=true

 

修改登录提示

 

cp /var/run/motd /var/run/motd.bak vi /etc/motd

你可能感兴趣的:(ubuntu: root 自动登录)