Unix Technical Forum

Changing of a user's shell, Segmentation fault

This is a discussion on Changing of a user's shell, Segmentation fault within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hello, when I try to: [root@~] passwd -e kilim Old shell: /usr/bin/sh New shell: /usr/pkg/bin/bash Segmentation Fault [root@~] cat ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 09:00 AM
kilim
 
Posts: n/a
Default Changing of a user's shell, Segmentation fault

Hello,

when I try to:
[root@~] passwd -e kilim
Old shell: /usr/bin/sh
New shell: /usr/pkg/bin/bash
Segmentation Fault
[root@~] cat /etc/shells
/bin/sh
/usr/bin/sh
/usr/bin/ksh
/usr/pkg/bin/bash

Why does that happen ? Thank you for your time.

Frustrated user

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 09:00 AM
Rich Teer
 
Posts: n/a
Default Re: Changing of a user's shell, Segmentation fault

On Mon, 28 Nov 2005, kilim wrote:

> when I try to:
> [root@~] passwd -e kilim
> Old shell: /usr/bin/sh
> New shell: /usr/pkg/bin/bash


/usr/pkg is not a standard directory on Solaris. Is it something
that you installed? If so, installing it under /usr is not a good
idea.

--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 09:00 AM
Doug McIntyre
 
Posts: n/a
Default Re: Changing of a user's shell, Segmentation fault

kilim <kilim@phenix.rootshell.be> writes:
>when I try to:
>[root@~] passwd -e kilim
>Old shell: /usr/bin/sh
>New shell: /usr/pkg/bin/bash
>Segmentation Fault
>[root@~] cat /etc/shells
>/bin/sh
>/usr/bin/sh
>/usr/bin/ksh
>/usr/pkg/bin/bash


>Why does that happen ? Thank you for your time.
>Frustrated user



I'd run the passwd command you are running through the fingerprint
database at sunsolve.sun.com to make sure its a binary that Sun sent out.

Otherwise, try applying the latest recomended patches. It shouldn't do that.
I'd suspect some corruption or other nefarious problem with the binary.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 09:00 AM
kilim
 
Posts: n/a
Default Re: Changing of a user's shell, Segmentation fault

In article <Pine.SOL.4.64.0511281410130.2112@marrakesh>, Rich Teer wrote:
> On Mon, 28 Nov 2005, kilim wrote:
>
>> when I try to:
>> [root@~] passwd -e kilim
>> Old shell: /usr/bin/sh
>> New shell: /usr/pkg/bin/bash

>
> /usr/pkg is not a standard directory on Solaris. Is it something
> that you installed? If so, installing it under /usr is not a good
> idea.


Basically, you don't know the answer. So why post ?

Thanks anyways
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 09:01 AM
Rich Teer
 
Posts: n/a
Default Re: Changing of a user's shell, Segmentation fault

On Mon, 29 Nov 2005, kilim wrote:

> Basically, you don't know the answer. So why post ?


To try to impart some useful information (that admitedly doesn't
answer your question). Sorry for trying to be helpful.

--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 09:02 AM
Boomhauer
 
Posts: n/a
Default Re: Changing of a user's shell, Segmentation fault

On 28 Nov 2005 21:10:08 GMT, kilim <kilim@phenix.rootshell.be> wrote:

>Hello,
>
>when I try to:
>[root@~] passwd -e kilim
>Old shell: /usr/bin/sh
>New shell: /usr/pkg/bin/bash
>Segmentation Fault
>[root@~] cat /etc/shells
>/bin/sh
>/usr/bin/sh
>/usr/bin/ksh
>/usr/pkg/bin/bash
>
>Why does that happen ? Thank you for your time.
>
>Frustrated user


use the usermod command instead of passwd -e
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com