Cannot su to a user in AIX


 
Thread Tools Search this Thread
Operating Systems AIX Cannot su to a user in AIX
# 8  
Old 02-04-2013
Cannot SU to AIX user

Hi,

Below mentioned are the .csh files under the location /oracle/C38(home directory of user orac38)

.sapenv_dehensv215.csh
.dbenv_dehensv215.csh
.dbenv.csh
.sapenv.csh

But we have compared this files with other systems files, both seems to be the same, but still we are not able to login to this user.

There is another user orac88 in the same server which we are able to succesfully login, we compared the .csh files also, both are same.

Which is the appropriate file which is read when we try to do a SU in server?

Please suggest

Thanks
# 9  
Old 02-04-2013
Hi,
For debug, rename .cshrc -> .chsrc.sos and .profile -> .profile.sos and retry to log in.
Regards
# 10  
Old 02-04-2013
Quote:
Originally Posted by Citroen
Hi,
You have to find which sourced environment is not correct. You can source .csh files.
Regards
This could be everything and is hard to tell from here. For instance, one conceivable reason: The user in question is not in a group which is necessary to source one of the files you mentioned.

I suggest you do as citroen said and try to nail down the problem by testing good one part of the login process after the other: rename all the files involved as citroen said, then reenable one after the other until the error happens again. Then you have found the culprit. Now repeat the process inside this file to find the offending line, etc..

This is less a technical question than a question of how well your debugging skills are developed. As you need these daily as a systems administrator i suggest you start immediately developing them.

I hope this helps.

bakunin
# 11  
Old 02-05-2013
Cannot Su

Hi,

I have modified files .cshrc and .profile as you mentioned.
Code:
-rwxrwxr-x    1 orac38   dba            1660 Jun  9 2011  .profile.sos
-rwxrwxr-x    1 orac38   dba            1801 Jun  9 2011  .cshrc.sos


But still i get the same error after login,

Code:
0:root@dehensv215:/oracle/C38 # su - orac38
foreach: Words not ()'ed.
% exit


is there any place wer we can see the logs of this user?

Thanks,

Moderator's Comments:
Mod Comment edit by bakunin: Is there any reason you stubbornly refuse to use CODE-tags?

Last edited by bakunin; 02-05-2013 at 06:27 AM..
# 12  
Old 02-05-2013
Hi,
You may have a .login file. Rename it as .login.sos and try again.
Regards
# 13  
Old 02-05-2013
Not sure what`s going wrong, please try

sudo su - ora32

Put the password of present user

or

pbrun su - ora32

If it is a power broker server
# 14  
Old 02-11-2013
A process to debug what is going on...

Start with getting a listing of the current administration data. Also verify account has not become locked because the issues:
Code:
root@x107:[/]lsuser -a home shell pgrp account_locked unsuccessful_login_count idsldap,root
idsldap home=/home/idsldap shell=/usr/bin/ksh pgrp=idsldap account_locked=false
root home=/ shell=/usr/bin/ksh pgrp=system account_locked=false unsuccessful_login_count=0

With output from above - lets say I am interested in user idsldap
Code:
# mv /home/idsldap /home/idsldap.save
# mkdir /home/idsldap
# chown idsldap:idsldap /home/idsldap
# su - idsldap

I would expect su command to be fine, default prompt.
Now, move regualr files and directories from /home/idsldap.save back to /home/idsldap
Code:
$ exit
# mv /home/idsldap.save/* /home/idsldap
# su - idsldap
$ exit
# ls -lRa /home/idsldap.save

This will show a number of files beginning with a .. One by one move them back to the original home directory - after each file, try a su - idsldap. When that gives the original error message - you have found the file with the error.

Happy Hunting - Hope this helps!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

User restriction on C/C++ compiler on AIX

Hello, I am curious that is there a way I can restrict a user or a set of users to execute the C/C++ compiler, basically what I want is to lock it down to a particular user and none of the other users should be able to compile any code. Thanks in advance. (14 Replies)
Discussion started by: m6248m
14 Replies

2. UNIX for Dummies Questions & Answers

Read-only user in AIX

Hi, I want to create a new user,and I want to give read permission to a folder which owned by root. How can I do this? thanks for your helps (4 Replies)
Discussion started by: sersoy
4 Replies

3. AIX

Limit a user on AIX

Hello, Sorry for my poor English. I have to reduce rights for a user on AIX system so that: When he does , he find in output, only filesystems on which he has permissions .He can't do to change user. Very thanks for helping. (2 Replies)
Discussion started by: edosseh
2 Replies

4. AIX

cant su to user or root AIX 5.3

Hi all, I cannt use 'su' to login to root or any other users though everything seems ok. I read some articles that says if you do recursive chmod 777 on /usr it can create this problem. I did the same. can anybody tell me how to repair it. Any ideas will be appreciated. thnks (7 Replies)
Discussion started by: itesh.dash
7 Replies

5. AIX

user cannot login into AIX-6.1 server

Dear Friends , I got a problem In our AIX 6.1 server . When I start or restart the machine I cannot Login the server . It shows a dialog box and shows some comments , those are : >> The DT messaging system could not be started . To correct the problem : 1. Choose to return the login... (1 Reply)
Discussion started by: shipon_97
1 Replies

6. UNIX for Advanced & Expert Users

Switching user in AIX 5

I need to do a switch user in an automated mode and do a ftp using that switched id. Scenario: initial login xx. switch to user-yy without manually entering the password. ftp some files from user yy to another user zz - automated mode. Can any unix experts can help me for my above query? (1 Reply)
Discussion started by: mjdarm
1 Replies

7. UNIX for Dummies Questions & Answers

User stuck in AIX

Hello guys, new here so please take it easy on me :-). Here is my issue. We use an application called Medical Manager and it runs on AIX. There is a user that is showing stuck with in the application. However when I try to run any of "ps" commands I don't see it. I need to kill this user and I... (2 Replies)
Discussion started by: mali77
2 Replies

8. AIX

AIX Virtualization question for non-AIX user

Hello, My first post to the Unix forums, thanks for having me! The division of the company I work for uses a xseries/redhat/VMWareServer solution to make sure that we keep hardware overhead low and use our machines to as near capacity as we can. These boxes are Intel with usually dual or... (1 Reply)
Discussion started by: greenteabagger
1 Replies

9. UNIX for Dummies Questions & Answers

AIX.4 New User Help

I am sure someone will yell at me over this post, but honestly I have searched. It doesn't help that I am not sure what to search on. Little background. Working at new company, Company has a program on a Unix box AIX.4. I know virtually nothing about Unix and Neither does anyone else here ... (1 Reply)
Discussion started by: swoozie
1 Replies

10. AIX

User ID (UID) in AIX

what is the upper limit for UID is AIX 5.3 ? (1 Reply)
Discussion started by: learner
1 Replies
Login or Register to Ask a Question