Jump to content
Welcome to our new Citrix community!
  • 0

failed to switch to csh / tcsh as default shell while login Linux VDA with gnome desktop


Roger Wu

Question

Hi, 

 

I've searched related posts as below and it's been said this bug should be fixed.

https://discussions.citrix.com/topic/405555-cshtsch-cannot-load-with-gnome-desktop-switch-to-bash-shell-aways/

 

Unfortunately, it's been almost two years passed and the bug still exist. 

Would anyone give me some advices?  It would be appreciated.

 

Linux VDA version: 21.09.0.14-1

OS version: CentOS 7.9

sssd version: 1.16.5019

samba version: 4.10.16-15

 

 

 

Snap317.jpg

Link to comment

2 answers to this question

Recommended Posts

  • 0

Hi

I traced this virable and found the value was changed as following process:

  1. SHELL was set as the default value first (configured in /etc/samba/smb.conf for domain users via winbind)
  2. Consumed the file  ~/.bash_profile
  3. ~/.bash_profile consumed  ~/.bashrc
  4.  ~/.bashrc consumed /etc/bashrc, and /etc/bashrc set the SHELL as bash by default.

So here are two suggestions:

  • For changing all users' default shell, set the SHELL in /etc/bashrc
  • For changing some specific user's default shell, set the SHELL after consuming ~/.bashrc  in ~/.bash_profile
  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...