Operating System - HP-UX
1834169 Members
2535 Online
110064 Solutions
New Discussion

Re: Not able to login as root

 
logaraman
Regular Advisor

Not able to login as root

hi ,

We are unable to su - root from a mormal user. It gives the error saying sorry and also when i tried to check the diskspace, i get the following error
"df: Cannot open /etc/mnttab: Permission denied"

Anything serious on this
7 REPLIES 7
MarkSyder
Honored Contributor

Re: Not able to login as root

I would be worried about the message denying permission to /etc/mnttab.

Can you cd to /etc? If so, what do you see when you type ll mnttab?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Arunvijai_4
Honored Contributor

Re: Not able to login as root

Hello,

Check permission on /etc/mnttab. Are you able to cat /etc/mnttab ? It should be 644..

Also, check this thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=932590

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Not able to login as root

check the permission of /etc/mnttab. It has to be like,

-rw-r--r-- (644) root root

permission.

--
Muthu
Easy to suggest when don't know about the problem!
Senthil Kumar .A_1
Honored Contributor

Re: Not able to login as root

Hi Log,

The df error message has nothing to do with the issue that u are not able to su to root (su - root).

It simply means ,as a normal user u are not able to perform df.

As far as su - root is concerned, doest it atleast prompt for a password? or just the message sorry.

Regards,
Senthil.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Muthukumar_5
Honored Contributor

Re: Not able to login as root

what is the error you got when trying to login as su - root? IT is good to have to analyse that problem. Changing the permission will make to resolve Permission denied error.

--
Muthu
Easy to suggest when don't know about the problem!
Senthil Kumar .A_1
Honored Contributor

Re: Not able to login as root

Oops,

sorry ..I did not check the permission of /etc/lvmtab. well if it is 644, you should also be able to perform df as a normal user.

well do check the permissions on the file, also let us know, whether it just says sorry without prompting password, when issued su - root.

regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Arunvijai_4
Honored Contributor

Re: Not able to login as root

Hi,

Check permission on su, # ll `which su`

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=572349

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"