LikeWise Open: Change Default Shell

LikeWise by default will have users on /bin/sh since not all systems have bash–correct that and make your users happy:
sudo /opt/likewise/bin/lwregshell set_value ‘[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\ActiveDirectory]’ LoginShellTemplate /bin/bash
sudo /opt/likewise/bin/lwregshell set_value ‘[HKEY_THIS_MACHINE\Services\lsass\Parameters\Providers\Local]’ LoginShellTemplate /bin/bash
Then simply refresh Local Security Service:
sudo /opt/likewise/bin/lwsm refresh lsass
Now you also need to clear LikeWise’s Active Directory Cache if users have already logged in and you want it to take effect immediately:  (if this is done during setup you can skip this step)
sudo /opt/likewise/bin/lw-ad-cache –delete-all

Enjoy

5 Responses

  1. aaron Says:

    This is exactly what I needed. Thank you so much.

  2. jason Says:

    Change the end of both statements to /bin/rbash

    now the users cant screw with each others files. They can only stay in their directory.

  3. Michael Requeny Says:

    Good point Jason–restricted shell is better typically.

  4. Matt Says:

    Perfect! Just what I needed.

  5. Michael Requeny Says:

    Glad to hear! How are you using LikeWise Open? — Simple authentication or are you doing anything advanced with it?

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.