problem in logging into root


 
Thread Tools Search this Thread
Operating Systems HP-UX problem in logging into root
# 1  
Old 02-04-2009
problem in logging into root

when i am trying to login through root i am getting following error

Last successful login for root: Tue Feb 3 16:44:40 IST-5:30 2009 on pts/tc
Last unsuccessful login for root: Tue Feb 3 16:41:01 IST-5:30 2009 on pts/tc
Please wait...checking for disk quotas
crt0: ERROR couldn't open dld.sl errno:000000002

i am able to login through normal user but not able to login through root

please provide me solution for this problem.
# 2  
Old 02-04-2009
Is /lib linked to /usr/lib?
# 3  
Old 02-04-2009
The number that appears in the XXXXXXXXX portion of the error message
is quite important in diagnosing the problem. This number
(without the leading zeros) corresponds to an error type defined
in /usr/include/sys/errno.h. The most common are 2, 13, and 23.

errno 2
-------
An errno of 2 corresponds to:

ENOENT 2 /* No such file or directory */

This can happen if the file dld.sl does not exist in /lib (at HP-UX 9.x)
or /usr/lib (at HP-UX 10.x). Typically, you will start getting these
errors if someone moves the directory that contains dld.sl, or moves
dld.sl itself. To resolve the problem, move it back!

Another case when you can get an errno 2 is at HP-UX 10.x when
the file is expected in its HP-UX 9.x location. This can be
worked around in the short term by symbolically linking /lib
to /usr/lib:

ln -s /usr/lib /lib

The long term solution is to make sure that the application expects
to find dld.sl in /usr/lib.
# 4  
Old 02-05-2009
Hi trek7300,

I am facing the same problem of not being able to login through root.
We have HP-UX 11.x series server.

Can you provide some details for moving dld.sl into /usr/lib/ or restoring the link between lib and /usr/lib.

How can i execute command ln -s /usr/lib /lib as i don't have access to root and i get "ln: no permission for /lib" message when i try to run that command through other user.

What to do if the console is not working in the same server.

Thanks in advance,

Aditya.

Last edited by aditya.gaur; 02-05-2009 at 04:23 AM..
# 5  
Old 02-05-2009
aditya.gaur, what makes you think you have the same issue?
Many things can stop root from logging in.. First being configuring root access only allowed from console...( so you have to connect yourself first then su...)

My 2 cents:
What is in root's profile normal users dont have? (and/or the other way round )

When I see:
Code:
crt0: ERROR couldn't open dld.sl errno:000000002

I rarely believe dld.sl missing but more complaining (about crt0...)
in /usr/lib:
Code:
lrwxr-xr-t   1 root       sys             19 Jun 23  2003 crt0.o -> /usr/ccs/lib/crt0.o

and in /
Code:
lrwxr-xr-t   1 root       sys              8 Jun 23  2003 lib -> /usr/lib

Have you noticed that t at the end of the permissons? Yes this is no simple symbolic link but what HP calls a transition link, and for that you have marvellous commands like:
tlinstall, tlremove, tllist

So all at your man pages now!
# 6  
Old 02-05-2009
Can you?
su root

This does not execute the profile.
# 7  
Old 02-05-2009
Hi Aditya,

I missed the last part about not being able to log in as root in your previous post as I focused on the error.

As vbe said, check the permissions. If dld.sl were really missing you'd be seeing a whole lot of weirdness and loss of functionality across the system for all users.

If you don't find man page for transition link commands, then they may not be installed. You would have to get them off the coreOS CD/DVD or from a depot.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Syslog not logging successful logging while unlocking server's console

When unlocking a Linux server's console there's no event indicating successful logging Is there a way I can fix this ? I have the following in my rsyslog.conf auth.info /var/log/secure authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies

2. SCO

sco remote logging problem

Hello, I am trying to write log from sco box to a remote host. We already have that setting working for linux server using syslog. With this setting(on LINUX) *.* @remote-host for sco I have this *.debug /usr/adm/syslog *.* ... (3 Replies)
Discussion started by: polestar
3 Replies

3. UNIX for Dummies Questions & Answers

problem in logging webmin

hi , i have a problem in logging webmin in ubuntu, i forgot my webmin password, and in internet i searched for result , at last i got one common answer that /usr/lib/webmin/changepasswd.pl /etc/webmin username passwd . i changed the passwd and when i logged into webmin it shows new ... (0 Replies)
Discussion started by: ramuk
0 Replies

4. UNIX for Dummies Questions & Answers

How to avoid logging with root user?

I have created a linux machine and installed some softwares on it with root user privileges . I used to login with root user credentials for doing the various task. Later i have realise that this is not the best practice to follow and there should be a new user with less privileges to be created... (1 Reply)
Discussion started by: pinga123
1 Replies

5. Linux

Terminal logging character problem -Newbie-

Im a complete newbie tryin to work with linux centos; in terminal wanted to log with script command; but output file has some strange characters when I try to open with gedit or bluefish terminal , gedit, bluefish encoding is utf-8 ; Script started on Mon 08 Mar 2010 03:32:39 PM EET... (2 Replies)
Discussion started by: anacondauser
2 Replies

6. Solaris

Prevent users logging in as root

I would like to know how to prevent users connecting to a server using SSH as root. I would still like them to be able to login with their username and then change to su. But I would like to prevent them logging in directly as root. I have searched the forum and read that I should set... (3 Replies)
Discussion started by: Sepia
3 Replies

7. Shell Programming and Scripting

Problem with logging into remote host

Hi All, I am using a script for remotely logging into a rhost using telnet and shutdown a server. The script is as follows. IP = 10.24.12.23; export IP UNAME = username ; export UNAME PWD = password; export PWD CRDIR = /etc/rc.d/init.d ; export CRDIR echo "logging into remote... (4 Replies)
Discussion started by: patil_reddy
4 Replies

8. UNIX for Advanced & Expert Users

What change in freeBSD OS to allow root logging using ssh?

Hi everybody, ] I would like to ask just simpe and short question. I am using freeBSD 6.0 and Debian Sarge. From Debian console I can log as root using ssh to bsd mashine but not vice versa. When I say in bsd console su I got sorry output, it does not allow me to su to root when I am logged... (5 Replies)
Discussion started by: 100days
5 Replies

9. SuSE

Logging in as root on SuSE 9.1

When I try to log on as root now all it does is load YaST. When I used to log on as root it would have a desktop and all...what has happened? Thanks in advance. (10 Replies)
Discussion started by: CTroxtell21
10 Replies

10. UNIX for Advanced & Expert Users

Logging in and then su to root

We have several people that log in using root. What I need to do is have everyone to log in using there own account then su to root. How would I do this. We have aix 4.2 (5 Replies)
Discussion started by: eyounes
5 Replies
Login or Register to Ask a Question