Autor Tópico: Login sem senha  (Lida 4293 vezes)

Offline ricardorrm

  • Usuário Ubuntu
  • *
  • Mensagens: 161
    • Ver perfil
Login sem senha
« Online: 28 de Junho de 2006, 15:59 »
Seguinte galera: tem três usuários em minha residência (esposa e filhos) que não curtem muito esse negócio de digitar senha. Para o meu usuário, está cadastrada a senha. Como faço para cadastrar usuário sem senha para login pelo GDM? No KDM, sei que existe a opção de configurar no kcontrol, mas no GDM não sei como fazer. Conheço o risco quanto ao uso do sudo, mas na minha máquina somente eu faço instalações e atualizações. Os demais não se preocupam com isso. Pode ser? Obrigado.
Nossa Senhora Rosa Mística
Rogai por nós

Offline biohazard

  • Usuário Ubuntu
  • *
  • Mensagens: 523
  • <thug life>
    • Ver perfil
Login sem senha
« Resposta #1 Online: 28 de Junho de 2006, 16:04 »
Sistema -> Adminsitração - > Janela de Inicio de Seção

-> Segurança ->

Selecione "Ativar inicio automatico de secao

e selecione o usuario !
Arch Linux Overlord
Kernel 2.6.25-ARCH

Offline ricardorrm

  • Usuário Ubuntu
  • *
  • Mensagens: 161
    • Ver perfil
Login sem senha
« Resposta #2 Online: 28 de Junho de 2006, 16:48 »
Citação de: "biohazard"
Sistema -> Adminsitração - > Janela de Inicio de Seção

-> Segurança ->

Selecione "Ativar inicio automatico de secao

e selecione o usuario !


Valeu. Mas tem um porém nisso aí: são três usuários. Caso o usuário que for utilizar o computador no momento não for o do login automático, então será necessário efetuar logoff para depois novo login, não? Talvez a opção seja login temporizado. Se não houver criar um usuário sem senha, assim pelo menos o sistema aguarda um determinado período antes de efetuar o login. Da mesma maneira que funciona o grub e o lilo, não?
Nossa Senhora Rosa Mística
Rogai por nós

Offline julianodorneles

  • Usuário Ubuntu
  • *
  • Mensagens: 133
    • Ver perfil
Login sem senha
« Resposta #3 Online: 28 de Junho de 2006, 17:34 »
Se tu entende bem inglês, tá na mão:
Citar
I'm generally a fan of gdm as a login manager (although maybe this is
just because I could never figure out where I should configure kdm, and
both xdm and wdm seem to lack some important fetures). So here are some
tips for using it:

1. creating a guest user (not gdm specific)
Often I want to have a guest account that should probably be limited,
but should allow me to log in a random guest without even the need for a
password. Think of children.

I'm not interested in an autologin (a feature provided by both kdm and
gdm, although was broken in earlier gdm versions), as most of the time I
would use the standard account.

So my approach was to tell gdm: "if you get this username, simply log it
in. Don't ask for a password".

This is done by adding the line of pam_listfile.so in the config file
below:

 
  #%PAM-1.0
  auth required pam_nologin.so
  auth required pam_env.so
  # the listfile line comes after the most basic tests ...
  auth sufficient pam_listfile.so item=user sense=allow file=/etc/X11/gdm/nopassusers onerr=fail
  # ... but before the standard password check. see the pam sysadmin
  # guide (pam.txt /pam.html in the pam docs) for more information
  auth required pam_unix_auth.so
  account required pam_unix_acct.so
  password required pam_unix_passwd.so shadow
  session required pam_unix_session.so

And in addition: create the file /etc/X11/gdm/nopassusers (an arbitrary
name) and put in it the name of that guest user . The guest account
should also not be allowed to login using a password (e.g: '!' in the
password field in /etc/shadow , see shadow(5)) so that account won't be
abused from any remote connection.

2. gdmflexiserver: start a separate X session in a new X server

This is a relatively simple but useful feature: This command will start
a separate login session. by default that session will be started in the
next free virtual console, e.g: ctrl-alt-f8. With the option --xnest: it
will be started in a nested X server .

So now when someone wants to play computer and I can spare it for a
while I can easily start a separate X session and log him in without
even using the console login.


Estou meio sem tempo de traduzir ... me desculpe  :oops:

[ ]'s
AMD Athlon64 3000+, Abit AX8, 1Gb RAM (2x512Mb Dual Channel), GF 6800XTreme Edition 256Mb, HD SATA 80Gb Samsung, LG 1752TX LCD.