- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Want to change login 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
Discussions
Discussions
Forums
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
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-14-2010 10:54 PM
тАО04-14-2010 10:54 PM
Want to change login shell
but some process of thaat user are running , so i am unable to change shell by using usermod command.
I dont have to kill user's process and i dont want to manually edit /etc/passwd file using vi or vipw command .
Plz let me know if there is any other way as soon as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 11:02 PM
тАО04-14-2010 11:02 PM
Re: Want to change login shell
>I dont have to kill user's process and i dont want to manually edit /etc/passwd file using vi or vipw command .
You are talking about login shell.
This means that the user must log off (the session must be closed) and only after log on again he would use the shell you specify as login shell.
Login shell is specified in /etc/passwd and it does not matter how you will edit/change the corresponding record from that file.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2010 12:33 AM
тАО04-15-2010 12:33 AM
Re: Want to change login shell
Exactly as said above. You will either have to edit the /etc/passwd or recreate the user to change the shell after exiting the current user session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2010 01:36 AM
тАО04-15-2010 01:36 AM
Re: Want to change login shell
The next time the user logs in, he will get the new shell.
(I assume you know you should never change the login shell for root.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2010 03:01 AM
тАО04-15-2010 03:01 AM
Re: Want to change login shell
My problem is resolved .
I can use usermod along with -F option .
Thanks guys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 12:12 AM
тАО04-16-2010 12:12 AM
Re: Want to change login shell
Looks like a new option on 11.31.