- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root Access is Denied - Wrong Shell Mentioned in /...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 04:20 AM
11-22-2006 04:20 AM
Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
By mistake the default shell access of root has been changed from /usr/bin/ksh to /usr/sh. Due to this i am not able to login thru root, I get error stating that no shell found. It is secure system with no other user has access privilege of root. How to solve this issue? In case i boot the server in single user mode, can I login and access the /etc/passwd file since the shell for root is wrong.
TIA
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 04:34 AM
11-22-2006 04:34 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
Can you try to ftp to that server, "get" passwd, modify it and then "put" it back.
Otherwise, can you find a backup tape which contain good /etc/passwd, so that you can restore passwd from that tape?
Don't reboot the server, you may have problem to start it unless you use Ignite backup to recovery your serv server
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 04:35 AM
11-22-2006 04:35 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
You mean that logging in as a regular user and su to root login doesn't work ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 04:56 AM
11-22-2006 04:56 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
I have copy of good passwd file but cannot copy it because the access is all r-r-r only and also I have enabled SFTP with root access denied; Due to this i cannot ftp the modified to /etc.
I can login thru other users but cannot su to root, it gives me error no shell and logs me out.
What will happen if i reboot in single user mode, will it come to # prompt OR the system will have problem to boot because of invalid shell mentioned in /etc/passwd file.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 05:04 AM
11-22-2006 05:04 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
# su root
NOT
#su - root
I though when you don't have the (-) then you avoid the shell....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 05:12 AM
11-22-2006 05:12 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
Both the ways #su root and #su - root i get error "
$ su root
Password:
Last successful login for root: Wed Nov 22 11:00:34 MST7MDT 2006 on console
Last unsuccessful login for root: Tue Nov 21 11:22:23 MST7MDT 2006 on pts/3
su: No shell
server:/home/user1 $ su - root
Password:
Last successful login for root: Wed Nov 22 11:12:36 MST7MDT 2006 on console
Last unsuccessful login for root: Tue Nov 21 11:22:23 MST7MDT 2006 on pts/3
su: No shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 05:21 AM
11-22-2006 05:21 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
ln -s /usr/bin/ksh /usr/sh
and try to su or login..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 06:18 AM
11-22-2006 06:18 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
I have tried doin ln -s but i dont privilage.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 08:19 AM
11-22-2006 08:19 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
Solved this issue by running SAM thru login has normal user and executing the following command
$/usr/dt/bin/dtaction Sam
this will start in sam by asking the root password , once u give the root password sam comes up.Then you can edit the user root and change the login shell.
If u dont have CDE then u need to export u r display variable to run SAM.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2006 08:26 AM
11-22-2006 08:26 AM
Re: Root Access is Denied - Wrong Shell Mentioned in /etc/passwd
Solved this issue by running SAM thru login has normal user and executing the following command
$/usr/dt/bin/dtaction Sam
this will start in sam by asking the root password , once u give the root password sam comes up.Then you can edit the user root and change the login shell.
If u dont have CDE then u need to export u r display variable to run SAM.
Thanks
Sri