Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33136 - cannot su or login with different users than root
Summary: cannot su or login with different users than root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 04:32 UTC by luca.tiburzio
Modified: 2011-10-30 22:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luca.tiburzio 2003-11-10 04:32:42 UTC
kernel 2.4.21 - mdk patch 13
reiserfs 
pam enabled
gentoo

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2003-11-10 06:38:46 UTC
uhh could you provide some more information here ?
Comment 2 luca.tiburzio 2003-11-12 06:08:51 UTC
Additional information is:
1 when logged into system as root, i try to "su aaa" where aaa is a user created with "adduser aaa" + "passwd aaa".
2 error is: cannot execute /bin/bash : permission denied
3 i tried to see permissions to su (is suid)
4 all related libs are correct (listed with ldd su) in permission mask
5 with "strace su aaa" the breaking point is into execve ...
6 it seems that the kernel is ok 'cause i used gentoo live cd and then chrooted into my filesystem and nothing better happened su aaa -> permission denied
7 it seems that when i copied filesystem structure from gentoo i used permissions related to the original file....
8 now i'm going to xfs to avoid the problem!!! ;-) 
Luca 
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-16 11:29:39 UTC
What does

  # ls -l /bin/bash

give you?
Comment 4 luca.tiburzio 2003-11-18 06:22:43 UTC
Problem was in permission mask of /dev filesystem!!
After a long trial with:
-> Change of user shell (bash,sh,/dev/null.......)
Solution:
1)I created a new reiserfs partition
2)I copied "on the fly" all directoried from old partition to new one except of
  ->Dev 
  ->Mnt (For obvious reasons)
3)I rebooted with live cd Gentoo
4)I copied old /dev Filesystem into new Filesystem Without using the permission copy i.e. cp -R /mnt/old/dev /mnt/new/dev
5)I corrected permission entries on pty entries.

I think that problem were caused when i extracted the portage level one 
when i was logged as root in live cd.......