Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failed running login shell

Status
Not open for further replies.
Jun 14, 1999
606
US
Hello.
I have a critical problem: A cleanly installed 43P-140 with AIX 5.1L doesn't let non-root users to login.
I've installed fix 2 and problem continues:
[tt]
oslevel -r
5100-02
bos.rte
5.1.0.25
[/tt]
Can't [tt]login[/tt] locally, can't [tt]telnet[/tt], gives "[tt]Failed running login shell[/tt]"; can't [tt]su[/tt], gives "[tt]Cannot set process environment.[/tt]".

I don't know what to do.

I hope it works...
Unix was made by and for smart people.
 
You checked the number of licenses that are set up on your machine...
Default is usually two?

smitty chlicense


Are you talking only on the console? AS in maybe a graphics card is not available?
Is there an exact error message with a number? That might help us help you?


Also perhaps someone changed permissions? THat can cause a problem? Like a
database was added after the fact?

Or when users were added they did not have the correct shell....or did not mark the screen as login yes?

Just thoughts... the exact error message when they log in will be very very helpful.
(with the error number)
 

One last thought


Only root can login; normal users receive the error:

3004-009 failed running login shell

These symptoms are caused by the user not being able to execute the login shell
(ksh, csh, or bsh, depending upon which is being used) or by a permissions
problem in the home directory path.

or bin and /usr/bin are not linked
ln -s /usr/bin /bin

and check if there is a file /etc/nologin to see if the file exists...if it does rm it?

Any way...additional information would be helpful.
 

give output of "chsh" from root

try fsck on /usr filesystem


see /etc/security/environ
/etc/security/limits
/etc/security/user

or give output of the above files
 
Sorry for the partial information. How I wrote, the machine was cleanly installed, from an AIX 5.1L installation CD. A new SCSI disk was chosen for that installation. Myself, an AIX instructor contracting for AIX Colombia, have made some installation attempts on that machine, on 2.1 and 9GB internal UltraSCSI disks. I've taken appart that machine and retried the installation and result is the same. I'll show you a screen cap:
[tt]
login: rbarrios
rbarrios's Password:
*******************************************************************************
* *
* *
* Welcome to AIX Version 5.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
1 unsuccessful login attempt since last login.
Last unsuccessful login: Wed Sep 4 11:35:01 2002 on /dev/pts/0 from 192.168.0.1
Last login: Tue Sep 3 15:21:48 2002 on /dev/lft0

Failed running login shell.

[/tt]
Like all you can see, there is no error code. It's a fresh installation, and I've not customized absolutely nothing.
Another try using root user:
[tt]
[0]/root> su rbarrios
Cannot set process environment.
[22]/root>
[/tt]
There is no error code in the message but may ba anyone can use the 22 return code from [tt]su[/tt] command. Problem is same when using [tt]su - [/tt] command.
Another -may be more explicit- command:
[tt]
[22]/root> ftp localhost
Connected to loopback.
220 rs6k-1.virtualiza.com FTP server (Version 4.1 Sat Feb 23 00:11:36 CST 2002) ready.
Name (localhost:root): rbarrios
331 Password required for rbarrios.
Password:
530 User rbarrios: can't change directory to /home/rbarrios.
Login failed.
ftp>
[/tt]
I'll show you then the HOME directory for user [tt]rbarrios[/tt]:
[tt]
[0]/root> ll /home
total 12
2 drwxr-xr-x- 5 bin bin 512 Sep 3 12:18 .
2 drwx------- 18 root system 512 Sep 4 11:41 ..
17 drwxr-xr-x- 2 guest usr 512 Apr 16 2001 guest
16 drwx------- 2 root system 512 Aug 30 14:33 lost+found
18 drwxr-xr-x- 2 rbarrios system 512 Sep 3 12:18 rbarrios
[0]/root>
[/tt]
I don't see any problem at all, all filesystems have enough space (under 90%). Another command:
[tt]
[0]/root> tail -5 /etc/security/login.cfg
usw:
shells = /bin/sh,/bin/bsh,/bin/csh,/bin/ksh,/bin/tsh,/bin/ksh93,/usr/bin/sh,/usr/bin/bsh,/usr/bin/csh,/usr/bin/ksh,/usr/bin/tsh,/usr/bin/ksh93,/usr/sbin/uucp/uucico,/usr/sbin/sliplogin,/usr/sbin/snappd
maxlogins = 200
logintimeout = 60

[0]/root>
[/tt]
Another one:
[tt]
[0]/root> lsuser -a home shell rbarrios
rbarrios home=/home/rbarrios shell=/bin/ksh93
[0]/root>
[/tt]
Problems are exactly identical with [tt]/bin/ksh[/tt], [tt]/bin/sh[/tt], [tt]/bin/bsh[/tt], [tt]/bin/psh[/tt], [tt]/usr/bin/ksh[/tt], [tt]/usr/bin/sh[/tt], [tt]/usr/bin/bsh[/tt], [tt]/usr/bin/psh[/tt].
I'm trying [tt]login[/tt] at the console (LFT), tru [tt]telnet[/tt], tru [tt]ftp[/tt] and using [tt]su[/tt] too.
I hope it works...
Unix was made by and for smart people.
 
Your root directory looks really restrictive?
2 drwx------- 18 root system 512 Sep 4 11:41 ..

lyons:/>#ls -ld /
drwxr-xr-x 26 root system 1024 Aug 12 12:29 /

lyons:/home>#ls -la
total 17
drwxr-xr-x 7 bin bin 512 Apr 26 09:28 .
drwxr-xr-x 26 root system 1024 Aug 12 12:29 ..
drwxr-xr-x 3 dee staff 512 May 23 16:14 dee
drwxr-xr-x 2 root system 512 Nov 8 2001 dustin
drwxr-xr-x 2 guest usr 512 Apr 16 2001 guest
drwx------ 2 root system 1536 Dec 5 2001 lost+found


Perhaps your problem?
 
AIXQueen you are really a queen!

My problem has gone away with a simple [tt]chmod a+rx /[/tt]

I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top