不知为何,帐户和密码是正确的,但登陆时出现提示
GDM could not write to your authorization file. This could
mean that you are out of disk space or that your home
directory could not be opened for writing. In any case, it is not
possible to log in. Please contact your system administrator.
先检查磁盘空间
按CTRL+ATL+F1进入文本界面,用df查看磁盘使用情况,发现磁盘占用的空间是75%,var,tmp也只用了%1的空间,也就是说磁盘空间是有剩余的。
再检查文件夹的读写权限
用ls -l 检查/home文件夹下文件夹的属性,发现是可读写的没有问题。
没办法创建一个帐户试试
#useradd ssh
#passwd ssh 123456
#usermod -g qxx ssh
最后一条命令是将用户ssh加入管理员组。
接着创建用户ssh登陆的目录
#mkdir /home/ssh
更改目录所有者
#chown ssh:qxx /home/ssh
按CTRL+ALT+F7回到图形界面,以用户ssh登陆,发现也是进不了图形界面。
按照提示查看 ~/.xsession-errors, 发现这一句
mkdtemp: private socket dir: Permission denied
google一下,发现只需
#chmod a+w /tmp
即可