Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Home Directory

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Windows - UNIX Interop] >> System & Network Admin Forum >> Home Directory Page: [1]
Login
Message << Older Topic   Newer Topic >>
Home Directory - Aug. 10, '06, 11:56:24 AM   
harvero

 

Posts: 14
Joined: Apr. 25, '06,
Status: offline
We would like to set up the oracle account on the Interix systems similar to how we have it set up on Unix (Solaris, Linux, HP-UX). We want to use the oracle account to administer our oracle databases. We would like /usr/apps/oracle to be the home directory of the oracle account. On some of our windows systems oracle is installed in c:\oracle\product and on other systems oracle is installed in e:\oracle\product. In either case we want to have X:\oracle to be /usr/apps/oracle. I have done this by making a directory in /usr called apps and then making symbolic link in /usr/apps that points to /dev/fs/X/oracle where is X is the drive letter oracle is installed on.

What I need to do is to have the value of the $HOME and ~ set to /usr/apps/oracle. In the FAQ section it says I need to do this by setting the value of the HOME directory in AD. My problem with this is that I want a local home directory that will not always be on the same drive.

I managed to work around this by setting the value $HOME in the /etc/profile.lcl file. But this does not set ~, which so scp does not have the correct home directory. And what it really breaks for us is dozens of shell scripts that use ~ in them and ~ need to be set to /usr/apps/oracle.

Is there any way I can make this work?
Post #: 1
RE: Home Directory - Aug. 14, '06, 5:11:21 PM   
harvero

 

Posts: 14
Joined: Apr. 25, '06,
Status: offline
Iím thinking that we can solve this with a logon script. We set the oracle account to use P:\ as itís home drive and directory in AD and then run the following in the logon.bat.


If Exist e:\oracle subst p: e:\oracle
If Exist c:\oracle subst p: c:\oracle
Set HOMEPATH=P:\
Set HOMEDIRECTORY=P:\

I have to run this past the one of the domain admins.

(in reply to harvero)
Post #: 2
RE: Home Directory - Aug. 14, '06, 5:44:14 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
That's not going to do what you want. The value of "~" is the value returned
from, for example, a getpwnam() API call. The value of environment variables
aren't going to matter for "~".
However, if you set the home directory as "P:\" in AD and then mount the
appropriate local drive back to the same machine as "P", you may get what
you want. You wouldn't need that Win32 script.

(in reply to harvero)
Post #: 3
RE: Home Directory - Aug. 15, '06, 3:35:08 PM   
harvero

 

Posts: 14
Joined: Apr. 25, '06,
Status: offline
How would I automate such a "loop back" mount, since P: needs to be either c:\oracle or e:\oracle? I can set the home folder in AD to be P:, but how do I get P: mapped?

(in reply to Rodney)
Post #: 4
RE: Home Directory - Aug. 15, '06, 4:01:34 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
One way would be to do it through File Explorer and check the box
"reconnect at logon". Another would be the using the logon script
and NET USE. Either way you would only need to have the machine
sharing to itself (for security minded folks).

By having the drive actually mounted it's actually there and
Interix will see it as such.

(in reply to harvero)
Post #: 5
Page:   [1]
All Forums >> [Windows - UNIX Interop] >> System & Network Admin Forum >> Home Directory Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047