Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't su as user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 7:12 am    Post subject: Can't su as user Reply with quote

Hello out there,

I can't su as normal user. Put myself in the wheel-group but still no effect.
Where is the switch to make this happen?

Thank you.
Frank
Back to top
View user's profile Send private message
peka
l33t
l33t


Joined: 16 Mar 2005
Posts: 773
Location: Płońsk, Poland

PostPosted: Fri Oct 13, 2006 7:32 am    Post subject: Reply with quote

You need to edit sudoers file
_________________
p3k4

Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Fri Oct 13, 2006 7:39 am    Post subject: Reply with quote

You have to log out and back in before group membership changes will take effect. Also, use the gpasswd command to easily add or remove your user from groups.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 7:41 am    Post subject: Reply with quote

"sudoers" does not exist, because I have not installed sudo.
But sudo != su, or?

Greetings
Frank
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Fri Oct 13, 2006 7:44 am    Post subject: Reply with quote

You won't have that file unless you have installed sudo. You just need to add your normal user to the wheel group, then logout and back in for the change to take effect.

e.g. gpassed -a username wheel

Use "id username" to verify the groups to which that user belongs.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 7:46 am    Post subject: Reply with quote

Okay, if I try to do a "su -" I see this log-entry:

unix_chkpwd[9786] check pass; user unknown

Frank
Back to top
View user's profile Send private message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 7:48 am    Post subject: Reply with quote

Hello yabbadabbadont,

I tried this (gpasswd, it) etc. But still no effect (same error log).

Greetings,
Frank
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Fri Oct 13, 2006 7:56 am    Post subject: Reply with quote

Did you logout and back in again? If you did, and it still doesn't work, please post the output of the following commands:

id username (substitute your real user's name for 'username')

emerge --info
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 7:59 am    Post subject: Reply with quote

Hi.

No problem:
id haupt_f
uid=1000(haupt_f) gid=1000(haupt_f) groups=1000(haupt_f),10(wheel)

Frank
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Fri Oct 13, 2006 8:06 am    Post subject: Reply with quote

That doesn't look right for a normal Gentoo system. Usually there isn't a group that is the same as your user. I know that Debian/Ubuntu and the like do that, but I didn't think that Gentoo did. (Unless they changed it in the new release...)

Try adding yourself to the 'users' group. (which should be gid=100) Also, try searching for unix_chkpwd in the forums. There were a lot of results and different things to try in the few I looked at. It's 3:00AM here and I'm heading to bed, so hopefully you will find the solution in one of those threads or someone else will be able to help you.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 8:10 am    Post subject: Reply with quote

Hello.

Okay go to bed now (it's 10.09 am here in Germany) :-)
Thanks for your help. I tested already with the users group,
but also without an effect.

Thanks a lot,
Frank
Back to top
View user's profile Send private message
Hauptlorenz
n00b
n00b


Joined: 13 Oct 2006
Posts: 12

PostPosted: Fri Oct 13, 2006 8:20 am    Post subject: Reply with quote

Okay, I have the solution!

emerge shadow

Maybe some permissions were destroyed. Reemerge the package fixed this.

Thanks a lot.
Frank
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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