Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-21-2010, 02:28 PM   #1
Registered: Dec 2006
Posts: 109

Rep: Reputation: 17
changing shell???

hi guys

I have a user that has been used for long time now that runs o C Shell...

now there is a need to change it to Bash Shell?

Can I cause a problem changing his shell from C to bash?
I mean apps or variables?

thanks a lot

Last edited by karlochacon; 06-21-2010 at 02:30 PM.
Old 06-21-2010, 02:52 PM   #2
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62

there should be no problems in changing the login shell for a user. This only changes the interface of the workstation/pc to the user, noting else. No well-written program/script depends on the shell it is called from, because the shell is just the same as any other program (you can even set vi as the login-shell). Eventually some user specific startup scripts need rewriting ...

I hope this helps.
Old 06-21-2010, 02:58 PM   #3
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Bourne shells and C-shells use different configuration files when invoked, so that the user have to write again its preferences/customizations in the proper place ($HOME/.bashrc and $HOME/.bash_profile in this case) using a different syntax. Shell scripts should not be a problem as long as he/she's used to put the proper sha-bang in the first line. Binary executables should work as expected (eventually they might depend on some user-defined environment variables, that have to be assigned in the aforementioned configuration files ). HTH

Edit: he he.. beaten by irmin. Too slow typing at this almost night time!

Last edited by colucix; 06-21-2010 at 03:00 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I run a command on another shell without changing the current shell? quanba Other *NIX 3 04-05-2010 12:19 PM
Changing Bash Shell JinSeung Linux - General 3 09-10-2004 08:54 PM
changing computer name in shell hamster001 Linux - Newbie 8 10-29-2003 05:12 PM
changing SHELL ? dahmad Linux - Newbie 3 02-27-2003 12:59 PM
Changing a users shell bij368 Linux - General 2 07-02-2001 09:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration