LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Changing home directory (https://www.linuxquestions.org/questions/programming-9/changing-home-directory-703653/)

neo_philiac 02-10-2009 11:25 AM

Changing home directory
 
Hello All:

I have an LDAP server that is used for authentication. Now the home directory id set to : /export/home/user1 . But I am logging in to different machines Solaris, Linux. The problem is I want the home directory to change depending on the os version (e.g. /export/home/user1/linux). Can I do it in the .cshrc or .login ? I have gotten this far - Please help ...

Code:

set osv = `uname -a | awk '{ print $1 substr($3,1,1) }'`

switch( $osv )
case 'Linux2':
case 'SunOS5':


acid_kewpie 02-10-2009 01:14 PM

well you couldn't do it in a dot file as that would be inside home. There's no nice way to do it really. You could have different attributes within ldap for each OS i guess, alternatively in your ldap.conf you can mangle variables to a certain extent, I can't remember off hand exactly how much though, possibly not enough to be off use to you.


All times are GMT -5. The time now is 06:38 AM.