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
Forums
Discussions
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
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
01-30-2001 12:13 PM
01-30-2001 12:13 PM
shell
in fact in the /etc/passwd root has /sbin/ksh as shell
but /sbin/ksh does not exist
how to force a shell with "su"
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 12:25 PM
01-30-2001 12:25 PM
Re: shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 12:32 PM
01-30-2001 12:32 PM
Re: shell
Root's shell should always be /sbin/sh, which is the POSIX shell. The su command will always read /etc/passwd for the shell to launch so that will not help you.
To fix /etc/passwd, you will have to boot to single user mode, which won't ask you for a root password, and then edit /etc/passwd with vi. If your's is a trusted system, you will need to get a fresh /etc/passwd from either a recovery tape or from the installation cd.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 12:39 PM
01-30-2001 12:39 PM
Re: shell
Root's shell should ALWAYS be /sbin/sh in /etc/passwd. This is the POSIX shell -- a superset of the ksh (Korn). Notice that the path is /sbin and not /usr. /usr isn't mounted during initial startup sequences.
The ksh shell is found in /usr/bin/.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 11:02 PM
01-30-2001 11:02 PM
Re: shell
Root shell should always be /sbin/sh, it has been said before.
The reasons for this are the following:
- all other shell reside in /usr/bin and that directory isn't mounted when you boot single user and ...
- /sbin/sh is an statically linked executable while other shells rely on dynamic libraries (located in /usr/lib)
The second point prevents you from copying another shell to /sbin at the libraries are only available when /usr is mounted.
You may change the entry in /etc/passwd if you log-in as a user and do a 'su' (not 'su -').
This will allow you to use 'vipw' to edit the password file.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 06:58 AM
01-31-2001 06:58 AM
Re: shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 07:33 AM
01-31-2001 07:33 AM
Re: shell
The login shell for the root user (uid 0) must be /sbin/sh. Other
shells such as sh, ksh, and csh are all located under the /usr
directory which may not be mounted during earlier stages of the bootup
Hewlett-Packard Company - 3 - HP-UX Release 10.20: July 1996
passwd(4) passwd(4)
process. Changing the login shell of the root user to a value other
than /sbin/sh may result in a non-functional system.