Got into state where I get "su: no shell" when suing to any user

I have a Solaris10/X86 VM that I've been given that I can use to run a WebLogic 10.3.3 app that I'm writing. I went through a series of steps configuring it and got into a bolloxed state that I don't understand. I've had a handful of experienced Solaris admins look at this and they've all given up.
After I got my login, I installed JDK 1.6 and WebLogic 10.3.3 as myself and installed and tested my app. No problems.
I then created a "service account" with "groupadd", "useradd", and "passwd -N" (prevents login). I was able to su to it.
I then installed JDK 1.6 and WebLogic 10.3.3 in /opt and changed my env and path references in both my login and the service account to point there.
I then started setting up two SMF services so I can start the nodemanager and admin server at startup, owned by the service account. I validated them up to a point, but I didn't fully test them.
It was about this point when I discovered that I could no longer log into the box as myself. When I used PUTTY to log in, the window just disappeared after I entered my password. When I tried to "su" to myself from the root login, it just said "su: no shell". I still had a window that was logged in as myself, and I noticed that it would fail to execute any command but shell builtins. I don't remember exactly what error it gave, but it was something like "not found". I don't have that window anymore, and I can't get to that state anymore. It did give me the impression that the "next level" cause for "su: no shell" was simply that it couldn't execute the shell.
We also tried "su"ing to every account in /etc/passwd, and they all failed with the same error. The only user we can "su" to is root.
I'm sure you will first ask about the permissions on /bin/bash. That's the first thing everyone has asked.
% ls -lt /bin/bash
lrwxrwxrwx 1 root root 19 Nov 30 2010 /bin/bash -> /usr/local/bin/bash*
% ls -lt /usr/local/bin/bash
-rwxr-xr-x 1 bin bin 2099560 Feb 23 2009 /usr/local/bin/bash*
The experienced admins that have looked at this tried numerous other ideas, but they've all found no clue why this is happening.
Fortunately, this is just a VM, so they can reimage it, and I'm sure it will be easier the second time to execute all the steps I did before, but I'd sure like to figure out what is wrong without having to do it again. I'm also not certain that this won't just happen again. If we don't figure this out, we'll probably take a couple of image snapshots along the way, just in case.

I'm using PUTTY to get to the box, which is just a terminal emulator (not GUI).
Following this is the end of the truss output. Again, "/bin/bash" is a symlink to "/usr/local/bin/bash". Curiously, I just looked at another VM that was created for my use, and "/bin/bash" is NOT a symlink to "/usr/local/bin/bash". For one, that doesn't make sense, as I certainly didn't change that, but even so, should that cause anything to fail?
1520: setuid(5001) = 0
1520: chdir("/home/myuid") = 0
1520: munmap(0xFECB0000, 4135) = 0
1520: munmap(0xFECC2000, 288) = 0
1520: munmap(0xFEC70000, 10821) = 0
1520: munmap(0xFEC83000, 420) = 0
1520: munmap(0xFEC50000, 9830) = 0
1520: munmap(0xFEC63000, 569) = 0
1520: munmap(0xFEC30000, 14510) = 0
1520: munmap(0xFEC44000, 710) = 0
1520: munmap(0xFEC00000, 130742) = 0
1520: munmap(0xFEC20000, 3864) = 0
1520: munmap(0xFEBE0000, 14754) = 0
1520: munmap(0xFEBF4000, 1416) = 0
1520: munmap(0xFEBB0000, 103697) = 0
1520: munmap(0xFEBDA000, 3856) = 0
1520: munmap(0xFEB90000, 37231) = 0
1520: munmap(0xFEBAA000, 1052) = 0
1520: munmap(0xFEB70000, 4930) = 0
1520: munmap(0xFEB82000, 647) = 0
1520: munmap(0xFED30000, 4096) = 0
1520: munmap(0xFEC90000, 54581) = 0
1520: munmap(0xFECAE000, 3564) = 0
1520: sigaction(SIGXCPU, 0x08047C30, 0x08047CB0) = 0
1520: sigaction(SIGXFSZ, 0x08047C30, 0x08047CB0) = 0
1520: execve("/bin/bash", 0x08047CC0, 0x080668C0) Err#13 EACCES [file_dac_search]
1520: fstat64(2, 0x08046F90) = 0
1520: write(2, " s u : ", 4) = 4
1520: write(2, " N o s h e l l", 8) = 8
1520: write(2, "\n", 1) = 1
--------------------------

Similar Messages

  • I can't get past white screen when starting up, any ideas?

    I Can't get past white screen when starting up, any ideas

    http://support.apple.com/kb/TS2570 Mac OS X: Gray screen appears during startup
    ===============
    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which Mac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    CLICKY CLICK---> https://discussions.apple.com/docs/DOC-3602
    CLICKY CLICK-----> Help us to help you on these forums

  • Have just install itunes on a new PC running windows 8 and I am getting very bad distortion when playing music, any ideas

    Have just install itunes on a new PC running windows 8 and I am getting very bad distortion when playing music, any ideas. Music on web (youtube) is working fine.

    Use a different browser.
    iTunes can only be installed and run in desktop mode.

  • I am getting error code 50 when updating cloud any ideas?

    I am installing updates from cloud but keep getting an error code 50 any ideas?

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • I"m getting a busy siganal when I make any call

    I'm getting a busy siganl any time I try to make a call

    try dialing *228 if you get through choose option 1.
    If you do not get through or it does not fix the issue, you will need to call tech support from another phone. 800-922-0204 and choose option 3 from the menu tree.

  • Why iphone get on and off when battery is good

    why iphone get on and off when battery is good

    iPhone User Guide
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step... Be sure to make an appointment first...

  • Somehow I got into the mode where I can't move any tunes; I get a blue outline.  How do I fix this?

    Somehow I got into the mode where I can't move any song in itunes; I get a blue outline.  How do I fix this?

    While looking through profile first aid, I came across this that might help explain my problem.
    Searching for profiles...
    Checking 20 profiles...
    /Library/Printers/EPSON/InkjetPrinter2/ICCProfiles/Standard.profiles/Contents/Re sources/Epson IJ Printer.icc
       Tag 'desc': Tag size is not correct.
       Tag 'dmdd': Tag size is not correct.
       Tag 'desc': Description tag has a bad Macintosh string.
       Tag 'dmdd': Description tag has a bad Macintosh string.
       The file is locked. Could not be fixed.
    Repair done - 0 out of 1 profiles fixed.

  • Where clause in SELECT INTO statement

    Hi,
    I am using multiple conditions in where clause for my SELECT INTO statement as follows.
    SELECT count(DTLA.LOCATION_ID)
    INTO LOCATION_ID_count
    FROM DOC2_MGR.DOC_TYPE_LOB_ASSOC DTLA
    WHERE (DTLA.DOC_TYPE_ID = 'XYZ' AND DTLA.lob_code = 'ABC');
    It considers only first condition and returns the result i.e. DTLA.DOC_TYPE_ID = 'XYZ' only.
    Does select into statement suppose to consider only one condition in where clause???
    Thanks in advance!
    --Sandeep                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I got it resolved. Here is list of things I noted
    1. I was using variable names same as column names. It was mixing up temp variable names with column name on the table, which doesn't make sense as I was referring column names in table.column format
    2. I had mixed few datatypes. Input param was suppose to be number where as I was passing it as Text
    Thanks anyway!
    --Sandeep                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I have a Mac pro. A mini disc has got into the disc drive. Eject won't work. How do I get it out without damage to the disc drive?

    I Have a MacBook pro laptop. A mini-disc has got into the disc drive. The eject won't work. How do I get it out without damage to the disc drive?

    Alternatively, you could try some of these suggestions (at your own risk of course):
    https://www.ifixit.com/Discuss/thread/4563

  • I want to back up my 4S but I don't get the correct screen when I plug it into my Mac - Just iPhotos and iTunes (songs) pop up. How do I get to the screen where I can back up and restore?

    I want to back up my 4S but I don't get the correct screen when I plug it into my Mac - Just iPhotos and iTunes (songs) pop up. How do I get to the screen where I can back up and restore?

    Hi Spookola,
    I don't know how that could have happened. Go through the folders for the rolls and separate the 2005 rolls from the 2006 rolls, then import the 2006 rolls.

  • I tried to restore from 4.2.1 to 4.3.3 through iTunes my iphone4 was on state after restore it gave error 3194 and my phone got black screen its not getting on what to do to turn on it

    I tried to restore from 4.2.1 to 4.3.3 through iTunes my iphone4 was on state after restore it gave error 3194 and my phone got black screen its not getting on what to do to turn on it

    http://support.apple.com/kb/TS3694#error3194

  • I am getting a black screen when I go into my credit card web pages under safari when I ask to see or view my statements. A black screen comes up.

    I am getting a black screen when under safar I go into my credit cards web pages and want to view or see my
    statements. This only happens in these web pages no others.

    ''Zenos [[#answer-671962|said]]''
    <blockquote>
    I think we need a screenshot.
    https://support.mozilla.org/en-US/kb/how-do-i-create-screenshot-my-problem
    How does typing in caps relate to being deaf? Or was that a joke?
    I'LL SAY IT AGAIN, LOUDER:
    I THINK WE NEED A SCREENSHOT.
    HTTPS://SUPPORT.MOZILLA.ORG/EN-US/KB/HOW-DO-I-CREATE-SCREENSHOT-MY-PROBLEM
    </blockquote>

  • Some kind of liquid choclate got into my speakers,so am nit knowing how to get serviced

    Some kind of liquid choclate got into my speakers,now am not lnowing how to get it serviced

    I think that taking it to an Apple store would be the best option.

  • Hi I have got a problem where when I'm on safari i get these virus pop ups asking me to down load this and that and i don't know how to make them stop.

    Hi I have got a problem where when I'm on safari i get these virus pop ups asking me to down load this and that and i don't know how to make them stop.

    Click here and run Adware Medic.
    (113236)

  • I'm trying to install the os x but I got the point where its's asking for "administrator password". How do I get that password?

    I'm trying to install the os x but I got the point where its's asking for "administrator password". How do I get that password?

    That password should be the one you used on the system *before* you do the upgrade.
    If you got the computer used from someone else, you need to get in touch with them and get the password.

Maybe you are looking for