Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Erro com o comando su
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
fabricio.moeller
n00b
n00b


Joined: 27 Apr 2006
Posts: 4
Location: Brasil

PostPosted: Thu Apr 27, 2006 2:19 am    Post subject: Erro com o comando su Reply with quote

Não consigo acessar com o comando su, tanto no terminal texto como no X. Já coloquei o usuário no grupo wheel mas não adiantou. Acho que ele até tenta logar pois se digito uma senha errada ele a recusa mas quando está correta ele emite a seguinte menssagem.

su: Critical error - immediate abort

Será que é algum módulo que falta.

Estou usando o gentoo-2006,


Last edited by fabricio.moeller on Thu Apr 27, 2006 4:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
hackwiz
n00b
n00b


Joined: 23 Feb 2006
Posts: 17

PostPosted: Thu Apr 27, 2006 10:22 am    Post subject: Reply with quote

O grupo é o wheel 8)

Quanto ao erro, nunca vi isso
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Thu Apr 27, 2006 1:33 pm    Post subject: Reply with quote

Pois capaz de ser wheel se não der mete o sudo :P
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
fabricio.moeller
n00b
n00b


Joined: 27 Apr 2006
Posts: 4
Location: Brasil

PostPosted: Thu Apr 27, 2006 4:43 pm    Post subject: Reply with quote

Beleza hackwiz, arrumado.

O sudo eu já habilitei e está OK Mythos.

O problema é que quando preciso usar ferramentas que pedem a senha do root ele não consegue autenticar. Por exemplo, o KControl, quando quero fazer alguma coisa como administrador não vai.
Back to top
View user's profile Send private message
fabricio.moeller
n00b
n00b


Joined: 27 Apr 2006
Posts: 4
Location: Brasil

PostPosted: Fri Apr 28, 2006 3:15 am    Post subject: Reply with quote

Consegui arrumar, mas o log acusa que algumas coisa não estão funcionando perfeitamente como pode ser visto abaixo.


Apr 27 23:01:43 gentoo su[10752]: PAM (su) illegal module type: @include
Apr 27 23:01:43 gentoo su[10752]: PAM pam_parse: expecting return value; [...common-auth]
Apr 27 23:01:43 gentoo su[10752]: PAM (su) no module name supplied
Apr 27 23:01:43 gentoo su[10752]: PAM unable to dlopen(<*unknown module path*>)
Apr 27 23:01:43 gentoo su[10752]: PAM [dlerror: <*unknown module path*>: cannot open shared object file: No such file or d$
Apr 27 23:01:43 gentoo su[10752]: PAM adding faulty module: <*unknown module path*>
Apr 27 23:01:43 gentoo su[10752]: PAM (su) illegal module type: @include
Apr 27 23:01:43 gentoo su[10752]: PAM pam_parse: expecting return value; [...common-account]
Apr 27 23:01:43 gentoo su[10752]: PAM (su) no module name supplied
Apr 27 23:01:43 gentoo su[10752]: PAM (su) illegal module type: @include
Apr 27 23:01:43 gentoo su[10752]: PAM pam_parse: expecting return value; [...common-session]
Apr 27 23:01:43 gentoo su[10752]: PAM (su) no module name supplied
Apr 27 23:01:46 gentoo su(pam_unix)[10752]: session opened for user root by (uid=1000)
Apr 27 23:01:48 gentoo su(pam_unix)[10752]: session closed for user root


ABAIXO SEGUE ARQUIVO DO /ETC/PAM.D/SU que alterei.


#%PAM-1.0

auth sufficient pam_rootok.so

# If you want to restrict users begin allowed to su even more,
# create /etc/security/suauth.allow (or to that matter) that is only
# writable by root, and add users that are allowed to su to that
# file, one per line.
#auth required pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.allow

# Uncomment this to allow users in the wheel group to su without
# entering a passwd.
#auth sufficient pam_wheel.so use_uid trust

# Alternatively to above, you can implement a list of users that do
# not need to supply a passwd with a list.
#auth sufficient pam_listfile.so item=ruser sense=allow onerr=fail file=/etc/security/suauth.nopass

# Comment this to allow any user, even those not in the 'wheel'
# group to su
auth required pam_wheel.so use_uid

auth include system-auth

account include system-auth

password include system-auth

session include system-auth

ESTA LINHA DESCOMENTEI
session required pam_env.so
session optional pam_xauth.so

ESTA LINHA EU COMENTEI, POIS ERA AQUI QUE DAVA ERRO
#session required pam_env.so readenv=1

# The standard Unix authentication modules, used with
# NIS (man nsswitch) as well as normal /etc/passwd and
# /etc/shadow entries.
ESTAS LINHAS ESTÃO ACUSANDO ERROS NO LOG
@include common-auth
@include common-account
@include common-session



# Defines the MAIL environment variable
# However, userdel also needs MAIL_DIR and MAIL_FILE variables
# in /etc/login.defs to make sure that removing a user
# also removes the user's mail spool file.
# See comments in /etc/login.defs
#
# "nopen" stands to avoid reporting new mail when su'ing to another user
session optional pam_mail.so nopen

Como disse acima foi só comentar a linha que tinha a variável readenv=1 que funcionou. Só não fiquei satisfeito pois tem aqueles erros.


aqui estão os módulos do PAM

ls -l /lib/security/pam_*
-rwxr-xr-x 1 root root 15476 Feb 14 04:41 /lib/security/pam_access.so
-rwxr-xr-x 1 root root 12660 Feb 14 04:41 /lib/security/pam_cracklib.so
-rwxr-xr-x 1 root root 5520 Feb 14 04:41 /lib/security/pam_debug.so
-rwxr-xr-x 1 root root 3308 Feb 14 04:41 /lib/security/pam_deny.so
-rwxr-xr-x 1 root root 11208 Feb 14 04:41 /lib/security/pam_env.so
-rwxr-xr-x 1 root root 11288 Feb 14 04:41 /lib/security/pam_filter.so
-rwxr-xr-x 1 root root 5868 Feb 14 04:41 /lib/security/pam_ftp.so
-rwxr-xr-x 1 root root 12220 Feb 14 04:41 /lib/security/pam_group.so
-rwxr-xr-x 1 root root 7372 Feb 14 04:41 /lib/security/pam_issue.so
-rwxr-xr-x 1 root root 10292 Feb 14 04:41 /lib/security/pam_lastlog.so
-rwxr-xr-x 1 root root 18832 Feb 14 04:41 /lib/security/pam_limits.so
-rwxr-xr-x 1 root root 16600 Feb 14 04:41 /lib/security/pam_listfile.so
-rwxr-xr-x 1 root root 9420 Feb 14 04:41 /lib/security/pam_localuser.so
-rwxr-xr-x 1 root root 10856 Feb 14 04:41 /lib/security/pam_mail.so
-rwxr-xr-x 1 root root 18696 Feb 14 04:41 /lib/security/pam_mkhomedir.so
-rwxr-xr-x 1 root root 4760 Feb 14 04:41 /lib/security/pam_motd.so
-rwxr-xr-x 1 root root 7348 Feb 14 04:41 /lib/security/pam_nologin.so
-rwxr-xr-x 1 root root 3644 Feb 14 04:41 /lib/security/pam_permit.so
-rwxr-xr-x 1 root root 13508 Feb 14 04:41 /lib/security/pam_rhosts_auth.so
-rwxr-xr-x 1 root root 3820 Feb 14 04:41 /lib/security/pam_rootok.so
-rwxr-xr-x 1 root root 8124 Feb 14 04:41 /lib/security/pam_securetty.so
-rwxr-xr-x 1 root root 6968 Feb 14 04:41 /lib/security/pam_shells.so
-rwxr-xr-x 1 root root 805172 Apr 26 19:25 /lib/security/pam_smbpass.so
-rwxr-xr-x 1 root root 11176 Feb 14 04:41 /lib/security/pam_stack.so
-rwxr-xr-x 1 root root 10252 Feb 14 04:41 /lib/security/pam_stress.so
-rwxr-xr-x 1 root root 18596 Feb 14 04:41 /lib/security/pam_succeed_if.so
-rwxr-xr-x 1 root root 15016 Feb 14 04:41 /lib/security/pam_tally.so
-rwxr-xr-x 1 root root 8880 Feb 14 04:41 /lib/security/pam_time.so
-rwxr-xr-x 1 root root 42472 Feb 14 04:41 /lib/security/pam_unix.so
lrwxrwxrwx 1 root root 11 Apr 16 22:11 /lib/security/pam_unix_acct.so -> pam_unix.so
lrwxrwxrwx 1 root root 11 Apr 16 22:11 /lib/security/pam_unix_auth.so -> pam_unix.so
lrwxrwxrwx 1 root root 11 Apr 16 22:11 /lib/security/pam_unix_passwd.so -> pam_unix.so
lrwxrwxrwx 1 root root 11 Apr 16 22:11 /lib/security/pam_unix_session.so -> pam_unix.so
-rwxr-xr-x 1 root root 850704 Feb 14 04:41 /lib/security/pam_userdb.so
-rwxr-xr-x 1 root root 4456 Feb 14 04:41 /lib/security/pam_warn.so
-rwxr-xr-x 1 root root 13212 Feb 14 04:41 /lib/security/pam_wheel.so
-rwxr-xr-x 1 root root 16492 Apr 26 19:25 /lib/security/pam_winbind.so
-rwxr-xr-x 1 root root 16472 Feb 14 04:41 /lib/security/pam_xauth.so

Atenciosamente

Fabricio Moeller
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Sat Apr 29, 2006 9:54 am    Post subject: Reply with quote

Epá não sei o que é que andas para ai a fazer, mas emerge bash readline pam etc

Ou melhor e se tiveres paciencia:
Code:

emerge -e system #já não me lembro se este existe
emerge -e world

_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
fabricio.moeller
n00b
n00b


Joined: 27 Apr 2006
Posts: 4
Location: Brasil

PostPosted: Sat Apr 29, 2006 3:38 pm    Post subject: Reply with quote

Beleza Mythos,

semana que vem vou atualisar !!
Back to top
View user's profile Send private message
thiagonunes
Apprentice
Apprentice


Joined: 16 Nov 2005
Posts: 171
Location: Brasil -> RS -> Rio Grande

PostPosted: Sun Apr 30, 2006 7:39 am    Post subject: Reply with quote

Um emerge shadow pode ajudar também.

Não esqueça do etc-update depois.
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