Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Change the shell for user in FreeBSD

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2007-Nov-05
Networking, Programming and Graphics - Tutorials
Visited: 4543 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Stephen Think

This tutorial will help you change the default shell for your user.
Generally you can edit that in /et/passwd but sometimes this doesn't work.

In UNIX you have a handy console tool called chsh. You execute that from the command line and it will open your user profile in the default editor for the system.
You will see something like this:

#Changing user information for user.
Login: user
Password: xxxxxxxxxxxxxxxxxxxxxxxxx
Uid [#]: N
Gid [# or name]: NN
Change [month day year]:
Expire [month day year]:
Class:
Home directory: /home/user
Shell: /usr/local/bin/bash
Full Name: Charlie &
Office Location:
Office Phone:
Home Phone:
Other information:
You simply need to specify the path of the new shell on the Shell: line.
Save the changes, logout and log back in. You are done.
Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: