Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema com KDM
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
IRuediger
n00b
n00b


Joined: 26 Jun 2005
Posts: 15

PostPosted: Sun Jul 10, 2005 6:41 pm    Post subject: Problema com KDM Reply with quote

Não estou conseguindo logar no KDE utilizando o KDM. Segui o guia do site oficial, mas ainda sim não funcionou.

Quando o computador inicia o KDM já é carregado (até ai ok), quando eu digito meu nome de usuário e senha parece que ele vai carregar o KDE, mas ele simplesmente volta pra tela de login. A única maneira que eu encontrei de logar no KDE é retirar o XDM do runlevel default, logar no console e depois executar o startx.

Estou usando os split ebuilds do KDE 3.4.1.

Alguém tem idéia como arrumar isso?
Back to top
View user's profile Send private message
gesiel
Apprentice
Apprentice


Joined: 13 Feb 2005
Posts: 197
Location: Brasil - Rio de Janeiro

PostPosted: Sun Jul 10, 2005 7:05 pm    Post subject: Reply with quote

Algumas coisas mudaram no KDE:
por default no kde-3.4 o usuário root "não" tem direito a fazer login.
Para solucionar isto é preciso editar o arquivo /usr/kde/3.4/share/config/kdm/kdmrc e alterar a linha que diz:
Code:
AllowRootLogin=false
para
Code:
AllowRootLogin=true
Esta operação pode ser feita na linha de comando mesmo, usando o nano para editar o arquivo.

Já os usuários comuns "devem" ser criados com ID superior a 1000. O default do useradd é 500 para o primeiro usuário comum, então não conseguirá fazer login.
Para solucionar, após logar como root, entre no KUser, crie um novo usuário, lembrando de alterar seu ID de 500 para 1000.

Importante:Se vc já criou o usuário com ID abaixo de 1000, vc "tem" que excluir as pastas do usuário no /home antes de recriá-lo, já que o permissionamento dos arquivos e pastas "lembram" do ID antigo e o ao recriá-lo com novo ID o usuário não conseguirá acessá-las. Então os passos são:
1) excluir o usuário comum já criado (nunca o root, ok?)
2) excluir as pastas do usuário no /home
3) recriar o usuário
Back to top
View user's profile Send private message
Matheus Villela
Apprentice
Apprentice


Joined: 25 Oct 2003
Posts: 263

PostPosted: Sun Jul 10, 2005 7:26 pm    Post subject: Reply with quote

Se for o caso da ID < 1000 pra não precisar deletar as pastas é só mudar as permissões depois ué :P
(como root)
deleta usuário
cria de novo
cd /home
chown -R user user

acho que isso dá, se não der talvez com mais isso:
chown -R user user/*
Back to top
View user's profile Send private message
IRuediger
n00b
n00b


Joined: 26 Jun 2005
Posts: 15

PostPosted: Sun Jul 10, 2005 7:34 pm    Post subject: Reply with quote

Obrigado pelas respostas.

No meu kdmrc o AllowRootLogin já estava setado pra true.

Eu não tinha feito o emerge do KUser, fiz somente agora e verifiquei que o id do meu usuário é exatamente 1000.

O que eu faço?
Back to top
View user's profile Send private message
gesiel
Apprentice
Apprentice


Joined: 13 Feb 2005
Posts: 197
Location: Brasil - Rio de Janeiro

PostPosted: Sun Jul 10, 2005 7:37 pm    Post subject: Reply with quote

Ele aparece no menu do KDM?
Ele está incluído no grupo video?
Back to top
View user's profile Send private message
IRuediger
n00b
n00b


Joined: 26 Jun 2005
Posts: 15

PostPosted: Mon Jul 11, 2005 1:07 am    Post subject: Reply with quote

gesiel wrote:
Ele aparece no menu do KDM?
Ele está incluído no grupo video?


Apareceu no menu do KDM sim, mas não está no grupo video.

Vou testar colocando o usuário no grupo video.
Back to top
View user's profile Send private message
IRuediger
n00b
n00b


Joined: 26 Jun 2005
Posts: 15

PostPosted: Mon Jul 11, 2005 3:43 pm    Post subject: Reply with quote

Adicionei o usuário ao grupo video, mas não adiantou, ainda estou tendo o mesmo problema :(
Back to top
View user's profile Send private message
IRuediger
n00b
n00b


Joined: 26 Jun 2005
Posts: 15

PostPosted: Wed Jul 13, 2005 9:22 pm    Post subject: Reply with quote

Mais alguma sugestão? Abaixo segue o meu kdmrc
Code:

[General]
ConfigVersion=2.3
ConsoleTTYs=tty1,tty2,tty3,tty4,tty5,tty6
PidFile=/var/run/kdm.pid
ReserveServers=:1,:2,:3
ServerVTs=-7
StaticServers=:0

[Shutdown]
HaltCmd=/sbin/halt
RebootCmd=/sbin/reboot
UseLilo=false

[X-*-Core]
AllowNullPasswd=false
AllowRootLogin=true
AllowShutdown=Root
AutoReLogin=false
ClientLogFile=.xsession-errors-%s
Reset=/usr/kde/3.4/share/config/kdm/Xreset
Session=/usr/kde/3.4/share/config/kdm/Xsession
SessionsDirs=/usr/share/xsessions
Setup=/usr/kde/3.4/share/config/kdm/Xsetup
Startup=/usr/kde/3.4/share/config/kdm/Xstartup

[X-*-Greeter]
AntiAliasing=true
ColorScheme=lipstikwhite
EchoMode=OneStar
FaceSource=AdminOnly
FailFont=Times New Roman,12,-1,5,75,0,0,0,0,0
ForgingSeed=1119748741
GUIStyle=Lipstik
GreetFont=Verdana,18,-1,5,50,0,0,0,0,0
GreetString=Welcome to %s at %n
GreeterPos=50,50
HiddenUsers=
Language=en_US
LogoArea=Logo
LogoPixmap=/usr/kde/3.4/share/apps/kdm/pics/kdelogo.png
MaxShowUID=65000
MinShowUID=1000
<<<<<<< /etc/config-archive/usr/kde/3.4/share/config/kdm/kdmrc
# Complement to MinShowUID: users with a UID greater than this number will
# not be shown as well.
# Default is 65535
MaxShowUID=65000
# If false, the users are listed in the order they appear in /etc/passwd.
# If true, they are sorted alphabetically.
# Default is true
#SortUsers=false
# Specify, where the users' pictures should be taken from.
# "AdminOnly" - from <FaceDir>/$USER.face[.icon]
# "PreferAdmin" - prefer <FaceDir>, fallback on $HOME
# "PreferUser" - ... and the other way round
# "UserOnly" - from the user's $HOME/.face[.icon]
# Default is AdminOnly
#FaceSource=PreferUser
# The directory containing the user images if FaceSource is not UserOnly.
# Default is "/usr/kde/3.4/share/apps/kdm/faces"
#FaceDir=/usr/share/faces
# Specify, if/which user should be preselected for log in.
# "None" - do not preselect any user
# "Previous" - the user which successfully logged in last time
# "Default" - the user specified in the DefaultUser option
# Default is None
#PreselectUser=Previous
# If this is true, the password input line is focused automatically if
# a user is preselected.
# Default is false
#FocusPasswd=true
# The password input fields cloak the typed in text. Specify, how to do it:
# "OneStar" - <literal>*</literal> is shown for every typed letter
# "ThreeStars" - <literal>***</literal> is shown for every typed letter
# "NoEcho" - nothing is shown at all, the cursor does not move
# Default is OneStar
#EchoMode=NoEcho
# If true, krootimage will be automatically started by KDM; otherwise, the
# Setup script should be used to setup the background.
# Default is true
#UseBackground=false
# The configuration file to be used by krootimage.
# Default is "/usr/kde/3.4/share/config/kdm/backgroundrc"
#BackgroundCfg=
# Hold the X-server grabbed the whole time the greeter is visible. This
# may be more secure, but it will disable any background and other
# X-clients started from the Setup script.
# Default is false
#GrabServer=true
# How many seconds to wait for grab to succeed.
# Default is 3
#GrabTimeout=3
# Warn, if display has no X-authorization (local auth cannot be created,
# XDMCP display wants no auth, or display is foreign from StaticServers).
# Default is true
#AuthComplain=false
# Random seed for forging saved session types, etc. of unknown users.
# This value should be random but constant across the login domain.
# Default is 0
ForgingSeed=1120664505
# Specify conversation plugins for the login dialog. Each plugin can be
# specified as a base name (which expands to $kde_modulesdir/kgreet_$base)
# or as a full pathname.
# Default is "classic"
#PluginsLogin=sign
# Same as PluginsLogin, but for the shutdown dialog.
# Default is "classic"
#PluginsShutdown=modern
# A list of options of the form Key=Value. The conversation plugins can query
# these settings; it is up to them what possible keys are.
# Default is ""
#PluginOptions=SomeKey=randomvalue,Foo=bar
# Show the "Console Login" action in the greeter (if ServerTTY/ConsoleTTYs
# is configured).
# Default is true
#AllowConsole=false
# A program to run while the greeter is visible. It is supposed to preload
# as much as possible of the session that is going to be started (most
# probably).
# Default is ""
=======
>>>>>>> 1.2
Preloader=/usr/kde/3.4/bin/preloadkde
SelectedUsers=
ShowUsers=NotHidden
SortUsers=true
StdFont=Verdana,10,-1,5,50,0,0,0,0,0
Theme=/usr/kde/3.4/share/apps/kdm/themes/circles
UseBackground=true
UserCompletion=false
UserList=true

[X-:*-Core]
AllowNullPasswd=true
AllowShutdown=Root
NoPassEnable=false
NoPassUsers=
ServerArgsLocal=-nolisten tcp
ServerCmd=/usr/bin/X

[X-:*-Greeter]
AllowClose=false
DefaultUser=igor
FocusPasswd=true
LoginMode=DefaultLocal
PreselectUser=Previous

[X-:0-Core]
AutoLoginEnable=false
AutoLoginUser=igor
ClientLogFile=.xsession-errors

[Xdmcp]
Enable=false
Willing=/usr/kde/3.4/share/config/kdm/Xwilling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum