View previous topic :: View next topic |
Author |
Message |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 7:12 am Post subject: Can't su as user |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
peka l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/142436805846d48054f3c69.gif)
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Fri Oct 13, 2006 7:32 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 13, 2006 7:39 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 7:41 am Post subject: |
|
|
"sudoers" does not exist, because I have not installed sudo.
But sudo != su, or?
Greetings
Frank |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 13, 2006 7:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 7:46 am Post subject: |
|
|
Okay, if I try to do a "su -" I see this log-entry:
unix_chkpwd[9786] check pass; user unknown
Frank |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 7:48 am Post subject: |
|
|
Hello yabbadabbadont,
I tried this (gpasswd, it) etc. But still no effect (same error log).
Greetings,
Frank |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 13, 2006 7:56 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 7:59 am Post subject: |
|
|
Hi.
No problem:
id haupt_f
uid=1000(haupt_f) gid=1000(haupt_f) groups=1000(haupt_f),10(wheel)
Frank |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Fri Oct 13, 2006 8:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 8:10 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hauptlorenz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 13 Oct 2006 Posts: 12
|
Posted: Fri Oct 13, 2006 8:20 am Post subject: |
|
|
Okay, I have the solution!
emerge shadow
Maybe some permissions were destroyed. Reemerge the package fixed this.
Thanks a lot.
Frank |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|