What happened to 'chsh' (change shell) command?

What happened to 'chsh' (change shell) command?

Post by Dan Go » Mon, 07 Aug 1995 04:00:00



It was there in SunOS 4.1.3 and now appears to be gone in SunOS 5.X (e.g.
Solaris 2.4).  Is there an equivilant or can the the S.A. change a user's
default shell?

--
Dan Gold

TRW ASG Sunnyvale

 
 
 

What happened to 'chsh' (change shell) command?

Post by John S. Kotche » Tue, 08 Aug 1995 04:00:00


I usually do this by editing the users default shell in
/etc/passwd.

Caution:  You should always do the following when
manually editing passwd, shadow and group files.

0)  Copy passwd or shadow as appropriate b/4 changing.
1)  Always keep logged in as root.
2)  Telnet back to yourself.
3)  Login as a standard user.
4)  su -

If the su - fails replace defective with copy in
root shell.

 
 
 

What happened to 'chsh' (change shell) command?

Post by Marcin Klimows » Tue, 08 Aug 1995 04:00:00



: I usually do this by editing the users default shell in
: /etc/passwd.

wrong !!!
as long as you don't use NIS(+)
you should use usermod
man usermod for more details.

                Marcin;)
--
------------------------------------------------------------------------------

..it's de facto >>--| http://www.pk.edu.pl:8001/ |-->> 2 line only sig....
------------------------------------------------------------------------------

 
 
 

What happened to 'chsh' (change shell) command?

Post by R. Stewart Ell » Wed, 09 Aug 1995 04:00:00



 >I usually do this by editing the users default shell in
 >/etc/passwd.

 >Caution:  You should always do the following when
 >manually editing passwd, shadow and group files.

 >0)  Copy passwd or shadow as appropriate b/4 changing.
 >1)  Always keep logged in as root.
 >2)  Telnet back to yourself.
 >3)  Login as a standard user.
 >4)  su -

 >If the su - fails replace defective with copy in
 >root shell.

man usermod

Only executable by root.

--
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______

  Web admin:  chimera,nn,tin,jove,kermit - free's best!/________/ /  /  / /

 
 
 

What happened to 'chsh' (change shell) command?

Post by David Lehman » Thu, 10 Aug 1995 04:00:00



>It was there in SunOS 4.1.3 and now appears to be gone in SunOS 5.X (e.g.
>Solaris 2.4).  Is there an equivilant or can the the S.A. change a user's
>default shell?

No need for any fancy programs. Just have the SA give everybody /bin/sh.
Each person can then use whatever shell by setting the SHELL environment
variable in the .profile.

SHELL=/bin/ksh
export SHELL
exec $SHELL

All X apps (xterm, cmdtool, etc.) will check the SHELL variable for your
prefered shell.

-David

 
 
 

What happened to 'chsh' (change shell) command?

Post by Bob Dowli » Mon, 14 Aug 1995 04:00:00




|> Each person can then use whatever shell by setting the SHELL environment
|> variable in the .profile.
|>
|> SHELL=/bin/ksh
|> export SHELL
|> exec $SHELL

But what about access that doesn't pass through a login stage?  Access via
"rsh" is fairly common and .profile isn't read then if your shell in
/etc/passwd is /bin/sh.

 
 
 

1. How to change UNIX login shell (dosen't have "chsh")?

Hello to everybody!

        I have a problem: after my login system places my in "sh" shell. I
prefer "bash" (which is present on the system), so I've modyfied ".profile"
file by adding at the end "bash". And ok, it's working. But it's not very
good solution of the problem (ie.: to logout I have to type "exit" twice).
        Dose anybody know how to make system to run "bash" right after my
login (as a first shell)?
        I don't have "chsh" command.

Thanks for answers!
Grzegorz Marszalek
Graf0

2. Wearnes CDD-110 CDROM compatibility question

3. How can I get chsh command(change shell) which runs on solaris?

4. seyon config

5. De-escaping the ';' in an 'rc' shell command ??

6. initrd/mkinitrd still not working

7. C shell command to use 'file' command to automatically scale a file

8. Mimetype "x-" prefix Question

9. What happened to my 'find' command?

10. Piping results of a 'find' command to a 'mv' command...

11. ``M-x shell'' command under emacs doesn't quite work.

12. Where can I get a chsh (change shell) or chfn (change finger)

13. Bad chsh command--now can't log in.