LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1246|回复: 5

我debian的普通用户不能登陆x-window

[复制链接]
发表于 2005-12-29 22:22:22 | 显示全部楼层 |阅读模式
普通用户不能登陆x-window
$ uname -a  
Linux debian 2.6.8-2-6 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux


$ startx
x : user not authorized to run the x server.  aborting.
     giving up
/usr/bin/X11/startx :  line32 : cannot create temp file for here document : permission denied, aborting
xinit : no such file or directory (errno 2,unable to connect to x server
xinit : server error


先谢了!
 楼主| 发表于 2005-12-29 22:24:03 | 显示全部楼层
用gdm也登陆不了....
回复 支持 反对

使用道具 举报

发表于 2005-12-29 22:51:12 | 显示全部楼层
/etc/X11/XF86Config-4 或 /etc/X11/xorg.conf 配置了没?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-29 22:58:42 | 显示全部楼层
配了
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
#   md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
#   dpkg-reconfigure xserver-xfree86

Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "rotocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "Device"
        Identifier      "Generic Video Card"
        Driver          "nv"
EndSection

Section "Monitor"
        Identifier      "Generic Monitor"
        HorizSync       31-60
        VertRefresh     56-75
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Generic Video Card"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1024x768"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1024x768"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection
回复 支持 反对

使用道具 举报

发表于 2005-12-30 00:31:17 | 显示全部楼层
用root可以登录吗?
如果root可以而普通用户不可以的话,可以检查一下/tmp目录的权限设置,
我启动X时试tmp无权限而登录不了的!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-30 01:54:00 | 显示全部楼层
感谢两位的帮©!
真的是tmp的权限î˜!
改了权限就ok了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表