A suberb puzzle indeed ... and one that cannot be solved until we are
permitted to see all the pieces. Not quite sure what they *all* are, but
here are some questions to get you started:

1. First the basic one: what Linux are you running? Distribution, version,
and kernel version.

2. What is root's shell? Might it be something different from /bin/bash ?

3. What shells are listed in /etc/shells? Might bash have been removed from
it for some reason?

4. Is /home part of the main filesystem or its own partition? If the second,
what does df report about it? In any case, what are its ownership and
permissions?

5. Same questions for /bin -- it won't be its own partition (it can't be,
actually), but what are its ownership and permissions?

6. Show us root's entry in /etc/passwd and the entry for a user who cannot
login or be su'd to. (If your system doesn't use shadow passwords, feel free
to replace the encrypted passwords, but don't change anything else.)

7. Show us the ownership and permissions for /bin/login and /bin/su
themselves. For ordinary users, they need to be setuid (mode 4777, not 777)
to work properly.

8. Finally ... are you quoting the error messages EXACTLY as you see them?
The punctuation looks unusual in what you quote, which raises in my mind the
concern that you are quoting inexactly or incompletely.


At 11:11 AM 6/11/00 +0400, V.Vasant wrote:
>Hi,
>       Can you  help me out ... Something so puzzlings come up in one
>of the linux systems here that we can't seem to figure it out here . 
>
>       What has happened is that even as root we are unable to su to
>another user account . It says "Cannot run /bin/bash permission denied"!.
>which is the default shell. The root is only able to su to itself. We
>thought perhaps someone has changed the root account. But that is not the
>case either... We also gave "777" permissions to all files in /usr/bin
>and /bin directories. Still the message persists .
>
>       Moreover no user except the root is able to login . The system
>simply says "No directory /home/<user> found " and the system closes the
>login . Even the root is unable to use the login command to login as
>another user. This with all users and home directories existing as
>verified with linuxconf and userconf etc .. We also checked out the
>/etc/profile and the /etc/bashrc files. Nothing seems to be suspicious .As
>a last resort we gave all files from "777" permissions .The problem
>remains unshaken ! 
>
>       Now that I hope is a really good puzzle. Please help us!!

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to