Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] su does not work anymore!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
think-x
n00b
n00b


Joined: 30 Jun 2004
Posts: 52
Location: UCSB

PostPosted: Sun Nov 07, 2004 8:47 pm    Post subject: [solved] su does not work anymore! Reply with quote

ok, here's the story:
i often use the command "emerge sync && emerge -uD world ; shutdown -h -t1 now" before i go to bed so that i can update my system and keep my parents happy by having it shut itself off when its done. The other night i decided to start this before i went to bed, but in the middle i hit CTRL+Z to pause it. little did i know that this would cause the shutdown part to come into action and it shut off my computer before i could do anything about it. When i started it back up it seemed that nothing was messed up, until i went to su. It gave me this message: "You are not authorized to su root". I didn't know what to do, then i thought maybe my groups got messed up, so i checked to make sure i was in "wheel" and i am. I am still somewhat of a novice with Linux in general, and i hope that someone can help me since i can't live without su. Feel free to ask for any info you need and thanks in advance!
_________________
Screw you guys. I'm going home.


Last edited by think-x on Tue Nov 09, 2004 1:00 am; edited 1 time in total
Back to top
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Sun Nov 07, 2004 8:58 pm    Post subject: Reply with quote

Can you still log in normally as root?
Back to top
View user's profile Send private message
think-x
n00b
n00b


Joined: 30 Jun 2004
Posts: 52
Location: UCSB

PostPosted: Sun Nov 07, 2004 9:00 pm    Post subject: Reply with quote

yes, and right now that is what i am doing, since lots of stuff i do require root privs
_________________
Screw you guys. I'm going home.
Back to top
View user's profile Send private message
think-x
n00b
n00b


Joined: 30 Jun 2004
Posts: 52
Location: UCSB

PostPosted: Mon Nov 08, 2004 2:52 am    Post subject: Reply with quote

i think i may have narrowed it down to the /etc/pam.d/su file, but i don't have any experience with pam so hopefully someone who does will come and tell me what to do... soon!
_________________
Screw you guys. I'm going home.
Back to top
View user's profile Send private message
waif_boy
n00b
n00b


Joined: 19 Aug 2004
Posts: 10

PostPosted: Mon Nov 08, 2004 6:41 am    Post subject: Reply with quote

Use the program in Gnome call "Users and Groups" under the System tools session to add the "wheel" group in your current user. Because when you update your system, your config files has been replaced.

[but it's so strange that when you check that file "/etc/group" you will see everything is okay. ]
_________________
ÌìÀä Àä²»ÁËÎÒµÄÐÄ
ÐÄÍ´ Í´²»”àÎÒµÄÇé
ÇéÉî ÉîµÃÏñº£
º£ ÑöÍûÖøË{Ìì
Ä´Ë²»ÔِÛ
ÒòžéÄã.........
Back to top
View user's profile Send private message
think-x
n00b
n00b


Joined: 30 Jun 2004
Posts: 52
Location: UCSB

PostPosted: Tue Nov 09, 2004 1:00 am    Post subject: Reply with quote

turns out it was a pam config problem so i just replaced it with the one on my 2004.1 stage3 file (/etc/pam.d/su)
it was set to allow none but root to su before, and even though my user was in the wheel group it doesn't matter
_________________
Screw you guys. I'm going home.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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