# ubuntu-init **Repository Path**: adophp/ubuntu-init ## Basic Information - **Project Name**: ubuntu-init - **Description**: 新装ubuntu系统后启用root用户步骤. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-06-24 - **Last Updated**: 2021-08-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ubuntu-init #### 项目介绍 新装系统后启用root用户步骤. #### 软件架构 软件架构说明 #### 修改步骤 1. 设置root密码 ``` #sudo passwd root ``` 2. 启用root用户登录,修改文件 /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf 添加: ``` user-session=ubuntu greeter-show-manual-login=true all-guest=false ``` 3. 登录root用户修改/root/.profile, 找到mesg -n修改成 ~~~ tty -s && mesg -n || true ~~~ 保存后重启。