Change default terminal compiler - Centos


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Change default terminal compiler - Centos
# 1  
Old 10-17-2014
Change default terminal compiler - Centos

I'm working on a centos 5.10 64bit desktop machine. I want to change the default terminal compiler to bash instead of csh/sh without root permissions.

Thanks in advance
# 2  
Old 10-17-2014
Hi,

I think you mean shell, but you will need "root" to change it in the /etc/passwd file using the "usermod" command. You can always just run
Code:
/bin/bash

from your command prompt and the set your environment by sourcing a file.

Regards

Dave

Last edited by rbatte1; 10-17-2014 at 10:20 AM..
This User Gave Thanks to gull04 For This Post:
# 3  
Old 10-17-2014
On linux there is a command:
Code:
chsh -s /bin/bash

It should ask to enter your passwd then it should have changed your default shell to bash...
To learn more about the command look at the man pages...

Last edited by rbatte1; 10-17-2014 at 10:20 AM..
# 4  
Old 10-19-2014
Quote:
Originally Posted by vbe
On linux there is a command:
Code:
chsh -s /bin/bash

It should ask to enter your passwd then it should have changed your default shell to bash...
To learn more about the command look at the man pages...
I receive this output when I run the command
Code:
chsh: can only change local entries; use ypchsh instead.


Last edited by vbe; 10-19-2014 at 04:30 PM..
# 5  
Old 10-19-2014
That also means it an only change in /etc/passwd but you seem to log on using NIS, NIS+ or some LDAP...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

How do I change my IP via terminal?

Hi, guys, I was using an online utility to check wheather or not an email existed, and they gave me three tries. I thought clearing temp and cookies would work, but it looks like they grabbed a hold of my IP. :mad: Now, I'd like to make a shell script that changes my IP. Not bad...yet. I'm using... (7 Replies)
Discussion started by: Ihatewindows
7 Replies

2. UNIX for Advanced & Expert Users

Change Log Path for Squid on Centos 6

I searched and did not find a useful answer. Can someone please tell me the best practice to change the log directory from /var/log to /opt/squid? (4 Replies)
Discussion started by: glev2005
4 Replies

3. Red Hat

Not able to see the terminal icon in the applications menu to launch the command prompt in Centos

After installing centos iam not able to see the terminal icon in the applications menu to launch the command prompt in Centos. However iam able to see the Open Terminal menu, when i right click and it is not working. let me know what are the things i need to check.:b: (1 Reply)
Discussion started by: Kesavan
1 Replies

4. Red Hat

selfservice password change standalone Centos 5.7

Hello, can someone suggest, how to configure server, when a new user that is created on the server centos 5.7, should be prompted to reset their password on his start login. Thanks, (1 Reply)
Discussion started by: bobby320
1 Replies

5. Red Hat

550 Failed to change directory from FireFTP to CentOS 5.7 VSFTPD

When trying to connect from Mozilla's FireFTP using anonymous or a FTP user on the CentOS 5.7, using VSFTPD I get the following error: 550 Failed to change directory.(View Attachment) This is what I have in my vsftpd.conf file: # Example config file /etc/vsftpd/vsftpd.conf # # The default... (1 Reply)
Discussion started by: jastanle84
1 Replies

6. Shell Programming and Scripting

Change color on another terminal

i already have a running and working script for remote connection. is there a way to change the terminal color everytime I ssh remotely to another server? this is to avoid confusion since I will be using only one server to remotely access around 50 servers (solaris, linux,. etc) (2 Replies)
Discussion started by: lhareigh890
2 Replies

7. Solaris

How to change folder color in terminal ?

Hi all, I am really new to UNIX ..and can any1 help me on change the yellow color to blur color (folder) ? Please refer to the attached pictures .. Your help is really appreciated .. :) Have a nice day ! (5 Replies)
Discussion started by: sauronlord
5 Replies

8. Solaris

How to change the system prompt and BG of terminal?

Hi all, I was wondering how to change the PS1 to my liking? I tried changing it using PS1='my choice' it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it? also i am running as super user, and i need to exec bash, to get the bash environment...... (4 Replies)
Discussion started by: wrapster
4 Replies

9. UNIX for Dummies Questions & Answers

How can I change the behavior of the mouse in Terminal?

Hi, I hope I'm posting in the correct forum, so here goes. I would like for the mouse right/left click to work in Terminal (OSX) as it does in Putty. For instance, when I double click 'log' in file.log.gz, only the log part is highlighted (in Terminal), while in Putty the entire file name is... (0 Replies)
Discussion started by: TheChemist
0 Replies

10. Solaris

Change Terminal Title

Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window. I was looking for similar functionality for terminal windows. Thanks. (8 Replies)
Discussion started by: here2learn
8 Replies
Login or Register to Ask a Question