LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want to override loginShell value from LDAP server (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-override-loginshell-value-from-ldap-server-534775/)

bellman 03-05-2007 11:08 AM

I want to override loginShell value from LDAP server
 
Running FC6, LDAP authentication looks to a server/accounts out of my control, and someone on that end decided to set the loginShell for all new accounts for the last few years to tcsh, and they cannot logon to my build.

The error an account using tcsh gets is:
"/etc/x11/xinit/Xsession: line 89
/usr/local/bin/tcsh: no such file or directory"

Using that info, I went in and edited the Xsession file, changing the problem line by replacing the variable $SHELL with "/bin/bash", and that seems to work.

There has to be a more elegant/proper way to override the loginShell value, simply forcing all users to use bash, yes?

Any further details can be passed along, as needed.

Thanks!
-Ian

Agrouf 03-07-2007 04:36 AM

ln -s /usr/bin/bash /usr/local/bin/tcsh

bellman 03-07-2007 11:29 PM

Quote:

Originally Posted by Agrouf
ln -s /usr/bin/bash /usr/local/bin/tcsh

That seems to have done the trick. Undid my edits, made the link, rebooted for good measure (I come from a Windows environment), and had a newer/problem account holder log on successfully.

Your solution is so seemingly obvious and simple, Newbie really does seem to be the right place for me to have asked!

Thanks!
-I


All times are GMT -5. The time now is 11:12 AM.