LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2009, 11:25 AM   #1
neo_philiac
LQ Newbie
 
Registered: Nov 2008
Posts: 6

Rep: Reputation: 0
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':

Last edited by neo_philiac; 02-12-2009 at 07:58 AM.
 
Old 02-10-2009, 01:14 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing home directory manoj.linux Linux - Enterprise 3 08-21-2007 08:44 AM
changing home directory peaceslp Linux - General 1 12-09-2005 07:13 AM
Changing user's home directory? HOW barton Debian 10 04-04-2005 02:27 AM
Changing the home directory kyleinc Linux - General 2 02-26-2005 11:54 PM
changing home directory netboy_541 Linux - General 5 09-10-2003 04:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration