Operating System - HP-UX
1827293 Members
3344 Online
109717 Solutions
New Discussion

Re: Error when execut su -

 

Error when execut su -

HI,

When I execute this command: su -
I receive this message:
limit: descriptor: can not set limit

Eliane
Eliane Lui
4 REPLIES 4
Dan Hetzel
Honored Contributor

Re: Error when execut su -

You most probably have a bad entry in
the file /.profile
To easily determine the offending line, edit your
/.profile adding the following as 1st line:

set -x

Next time you log in as root or do a 'su -'
you'll know which line causes the problem
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com

Re: Error when execut su -

hi

apart from the above, please try

1) su with another user
2) check the /var/adm/sulog
3) try renaming the .profile and other startup scripts for root - to find out if any ot them are generating this error.
Winners Never Give Up

Re: Error when execut su -

hi

apart from the above, please try

1) su with another user
2) check the /var/adm/sulog
3) try renaming the .profile and other startup scripts for root - to find out if any ot them are generating this error.
Winners Never Give Up
Bill McNAMARA_1
Honored Contributor

Re: Error when execut su -

a switch user ( su ) without the - will
switch your user id ( uid ) without sourcing
the ~/.profile
make sure that the su command is okay, although
there is morethan likely a shell script
problem with the users .profile

Try to login normally as the user rather than
su'ing

have fun,
Bill
It works for me (tm)