LinuxSir.cn,穿越时空的Linuxsir!

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

Debian 4 获得Root 的问题 哪位高手帮一把

[复制链接]
发表于 2007-5-29 02:41:50 | 显示全部楼层 |阅读模式
在下从FC来不久,用Debian 太菜
是这样:
我想在GDM 时有Root登陆,就进了 /etc/gdm/  改 gdm.conf    把AllowRoot=true 加上
可没反映,(在GDM登陆界面下 ctrl+alt+F2,用VI改,,ALT+F2退出)如下

# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration.   If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration.  Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# Older versions of GDM used the "gdm.conf" file for configuration.  If your
# system has an old gdm.conf file on the system, it will be used instead of
# this file - so changes made to this file will not take effect.  Consider
# migrating your configuration to this file and removing the gdm.conf file.
#
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below.  Refer to the comments in the
# /usr/share/gdm/defaults.conf file for information about each option.  Also
# refer to the reference documentation.
#
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change.  Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# e.g, the "Enable" key in the "[debug]" section would be "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings.  You can also restart GDM by sending
# a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!

[daemon]

[security]
AllowRoot=true    ----加了这行
[xdmcp]

[gui]

[greeter]

[chooser]

[debug]

# Note that to disable servers defined in the defaults.conf file (such as
# 0=Standard, you must put a line in this file that says 0=inactive, as
# described in the Configuration section of the GDM documentation.
#
[servers]

# Also note, that if you redefine a [server-foo] section, then GDM will
# use the definition in this file, not the defaults.conf file.  It is
# currently not possible to disable a [server-foo] section defined
# in the defaults.conf file.

—————————————————————————————————————————

然后 又进 /usr/share/gdm/  改 defaults。conf    还没反映   


何解    如下

# This determines whether GDM will send notifications to the console.
#ConsoleNotify=true

# How long gdm should wait before it assumes a started Xserver is defunct and
# kills it.  10 seconds should be long enough for X, but Xgl may need 20 or 25.
GdmXserverTimeout=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=false
发表于 2007-5-29 04:54:56 | 显示全部楼层
sudo gdmsetup
把允许系统管理员登录选上
回复 支持 反对

使用道具 举报

发表于 2007-5-29 08:39:10 | 显示全部楼层
Post by 冰封尘
sudo gdmsetup
把允许系统管理员登录选上

这个正解,用这个很简单的
回复 支持 反对

使用道具 举报

发表于 2007-5-29 08:43:09 | 显示全部楼层
用root用户登录图形界面是个不好的习惯。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-30 01:19:39 | 显示全部楼层
Post by 冰封尘
sudo gdmsetup
把允许系统管理员登录选上


:thank 这样很好,

不过修改方法也可行,麻烦些,我因为语法错误没成功,现在改定OK了

同样是 VI 杂就差别那么大捏

哪位好心人给个Debian的VI使用方法链接。。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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