LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-25-2002, 04:37 AM   #1
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Red face easy question


OK I am not a fan of sh or csh.
So I installed bash and zsh.
Now I am tired of typing bash or zsh every time I login or su.
i don't see anywhere to change the default shell in .profile
at a loss
plz help

TIA
 
Old 04-25-2002, 04:54 AM   #2
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
Many solutions :
1- as root, vipw offers you to change the entry in the password file where the last field is the shell the user will use.
2- logged as the user, chpass will help you (see man chpass study: )
3- If you want to change the shell for a group of user, you must take a look at login.conf (man login.conf study: ) where you can specify a shell for a whole class. You can change the class of a user with chpass as root.
Hope it helps you.

Fred:
 
Old 04-25-2002, 05:07 AM   #3
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Original Poster
Rep: Reputation: 30
Talking so easy

Thanks for the reply BK

I just found chsh....
changge shell...duh?
so easy
 
Old 04-25-2002, 05:08 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,394
Blog Entries: 55

Rep: Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565
/bin/sh *is* a link to bash :-]
Default shell is defined in /etc/passwd, where shell should be one of those mentioned in /etc/shells.
 
Old 04-25-2002, 05:09 AM   #5
Blackknight
Member
 
Registered: Apr 2002
Location: Rouen, France
Distribution: Slackware, FreeBSD
Posts: 34

Rep: Reputation: 15
Forgot it !!!!!
It certainly was to easy and I certainly wanted to provide much more than needed. As we say in France : "A very big hammer to kill a very little fly"
 
  


Reply


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
Easy question for ya... speedo Linux - Newbie 2 10-23-2004 05:38 PM
easy question! =P h0bbit Linux - Newbie 2 07-07-2002 06:10 AM
less easy question 5amYan *BSD 4 04-25-2002 06:52 PM
Easy Question marlaina1 Linux - General 1 12-28-2001 08:02 AM
Very Easy Question linuxcam Linux - General 4 12-20-2001 01:58 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 08:43 AM.

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