Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jan 2000 16:09:27 -0000
From:      "Peter McGarvey" <Networks.Manager@rncm.ac.uk>
To:        "Mark Shirley" <mark@entropynet.com>, <freebsd-newbies@freebsd.org>
Subject:   RE: shell problem
Message-ID:  <NDBBJLAJELEHNLGABIJNOEMEDIAA.Networks.Manager@rncm.ac.uk>
In-Reply-To: <20000117104745.G394@cyberfrg.access.one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>  <<snippage>>  after 
> this is done i suggest using the vipw command.  this command will 
> allow you to edit the /etc/master.passwd and will make sure the 
> syntax for the file is correct (this avoids nasty situations with 
> passwd file) . find the user you want to use bash with and change 
> their shellt . here is an example
> 
> (this user has the normal sh )
> cyberfrg:encrypted password 
> removed:1000:0:wheel:0:0:cyberfrg:/home/cyberfrg:/bin/sh
> 
> you would change "/bin/sh" to "/usr/local/bin/bash" like this
> 
> cyberfrg:encrypted password 
> removed:1000:0:wheel:0:0:cyberfrg:/home/cyberfrg:/usr/local/bin/bash
> 
> now for this to take effect you need to rebuild the database but 
> vipw does it for you automatically when you exit. 
> so now just hit escape then type :wq


Or you could just type

	chsh -s /usr/local/bin/bash {usename}


TTFN, FNORD

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Peter McGarvey, Networks Manager  |  email: Networks.Manager@rncm.ac.uk
 Royal Northern College of Music   |    tel: +44 (0)161 907 5218
 124 Oxford Road, Manchester,      |    fax: +44 (0)161 273 7611
     England M13 9RD               | mobile: +44 (0)7887 990564
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
>  <<snippage>>  after 
> this is done i suggest using the vipw command.  this command will 
> allow you to edit the /etc/master.passwd and will make sure the 
> syntax for the file is correct (this avoids nasty situations with 
> passwd file) . find the user you want to use bash with and change 
> their shellt . here is an example
> 
> (this user has the normal sh )
> cyberfrg:encrypted password 
> removed:1000:0:wheel:0:0:cyberfrg:/home/cyberfrg:/bin/sh
> 
> you would change "/bin/sh" to "/usr/local/bin/bash" like this
> 
> cyberfrg:encrypted password 
> removed:1000:0:wheel:0:0:cyberfrg:/home/cyberfrg:/usr/local/bin/bash
> 
> now for this to take effect you need to rebuild the database but 
> vipw does it for you automatically when you exit. 
> so now just hit escape then type :wq


Or you could just type

	chsh -s /usr/local/bin/bash {usename}


TTFN, FNORD

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Peter McGarvey, Networks Manager  |  email: Networks.Manager@rncm.ac.uk
 Royal Northern College of Music   |    tel: +44 (0)161 907 5218
 124 Oxford Road, Manchester,      |    fax: +44 (0)161 273 7611
     England M13 9RD               | mobile: +44 (0)7887 990564
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJLAJELEHNLGABIJNOEMEDIAA.Networks.Manager>