Linux / UNIX Tech Support Forum
This is a discussion on chsh command - change user shell from a script within the Shell scripting forums, part of the Development/Scripting category; heyy hii guys i have a menu driven script where i have run my script using chsh by changing shell ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
heyy hii guys i have a menu driven script where i have run my script using chsh by changing shell
wht i have done till now is ftp sol and put myscript which adds into my host. and when i do telnet sol under root i have created a user and did chsh user and it asks me for New shell with full path: Well how to write the full path name here so that i can run my script. Any ideas much appreciated?? |
| Sponsored Links | ||
|
|
|
||||
|
Use -s option:
Code:
chsh -s /path/to/shell chsh -s /bin/bash chsh -s /usr/local/bin/tcsh
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 04-30-2009 at 11:36 AM. |
![]() |
| Tags |
| bash , change shell , chsh , csh , ksh , shell scripting , tcsh |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perl or shell script to change the password | vivek rai | Shell scripting | 2 | 03-15-2009 11:51 PM |
| Linux Add User Shell Script | abovenewbi | Shell scripting | 13 | 03-06-2009 03:57 AM |
| Solaris Change User Password Using a Shell Script | vikas027 | Solaris/OpenSolaris | 1 | 06-14-2008 12:06 AM |
| How to change the login shell for Linux user | chimu | Getting started tutorials | 0 | 01-26-2007 08:20 PM |
| Shell script to change folder directory owner after restore | marinm | Shell scripting | 5 | 01-23-2007 01:53 PM |