- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: root shell
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
04-09-2003 02:58 AM
04-09-2003 02:58 AM
root shell
i want to change the root shell password from /sbin/sh to /bin/ksh
is it possible?
what impact does it have?
thanks
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 02:59 AM
04-09-2003 02:59 AM
Re: root shell
Of course it's possible, whether it's a good idea is another question.
It would probably be better to use /bin/sh and then start ksh from your .profile or manually.
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 03:11 AM
04-09-2003 03:11 AM
Re: root shell
No you should not do this! When you want to login in single user mode, your filesystems are not mounted, and you will not get a shell.
You can put ksh in your .profile, so you can use ksh.
Greetzz
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 03:36 AM
04-09-2003 03:36 AM
Re: root shell
i have my root shell /sbin/sh and created a .profile under my home dir (but this is also read by sh)
then i issue ksh but it doesn't read my configuration file (.profile)
why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 03:47 AM
04-09-2003 03:47 AM
Re: root shell
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 04:20 AM
04-09-2003 04:20 AM
Re: root shell
Normally the /sbin/sh binary is compiled with all the libraries statically linked. So, it will run even when the OS boots in single user mode.
ksh may have some dynamic linking so.s built in and so, you wouldn't want to use this.
login with kshell as a non-root user.
Thereafter to work as root,
run
$ su
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 04:36 AM
04-09-2003 04:36 AM
Re: root shell
let's say after i switch to root
i want to run a script that sets my env variables:
user> su
#> ksh
#> ./setup
this setup is the script i want to run and inside i have:
set -o vi
alias ll='ls -lart'
PS1=...
and so on..
how should i do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 04:51 AM
04-09-2003 04:51 AM
Re: root shell
ksh should read the file pointed at by ENV variable, i.e. ~/.kshrc or so.
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 03:09 PM
04-09-2003 03:09 PM
Re: root shell
Whilst 'ksh' isn't being launched from 'login' directly, and doesn't think it needs to read '~/.profile', you can tell ksh that it is a login shell by passing the argument '-l'.
If you read 'man ksh', it will outline what this does and doesn't do..
One other note, so you dont have to double 'exit' when you leave the shell, instead of just calling '/bin/ksh' as the last line of your login, use 'exec /bin/ksh'. This will switch the control of the tty to the ksh process. When it ends, it closes off everything, and logs you out.