1825768 Members
2032 Online
109687 Solutions
New Discussion

Re: Changing user shell

 
Mathieu P.
Advisor

Changing user shell

Hello,

I have a quick question for you.

When I try to change the default shell for user X via SMH, I get "Login X is currently in use". (I figure user is logged in)

I guess I could directly change the shell via the passwd file. But, why is this ? should I really have the user logout first ?

Thank you,

MP
Programmers are tools to convert cafeine into code.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Changing user shell

I would guess that this is just a precautionary edit in SMH. It's basically telling you that this change isn't going to take effect until the user logs out and back in. If SMH provides no override for this message, then, yes, I would go ahead and make the change in /etc/passwd. Then it's your choice whether you want the user to logout/in now or later.


Pete

Pete
Dennis Handly
Acclaimed Contributor

Re: Changing user shell

The user can use chsh(1) to change his own shell.
Suraj K Sankari
Honored Contributor

Re: Changing user shell

Hi,

If you changing your shell then it will effect when you logout and login again.

Suraj

Mathieu P.
Advisor

Re: Changing user shell

Thanks !

Programmers are tools to convert cafeine into code.
Mathieu P.
Advisor

Re: Changing user shell

.
Programmers are tools to convert cafeine into code.