Home Directory for AD on remote machine

Hi,
Requirement is like this:-
As user is provisioned to AD a home directory for user is created on remote computer with name of user. I had wrriten a VB script to create a folder in users folder(folder already shared) on remote machine. I am able to sucessfully create the folder when i run script through command prompt. Now i write a java code to run the script with following command in java code.
Process process = Runtime.getRuntime().exec("cmd /c cscript d:/users "+userid + " " + action);
I am able to run the java code from eclispe and folder is created in users folder on remote machine.
Now i had added a process task in AD process form and attached the adapter in which this java code is executed to run the script and i called this on response code (sucessfully provisioned) of AD .now when i provisoned user to AD process is called but error is their as cmd is not a command on linux... how can i run the script on linux.
2) If folder users folder is not shared i have to give permissions on folder to particular user with userid and password to create its home directory in it how can i achieve this using vbscript??

I assume you are creating folders in a file server and its a windows machine , is it ?
You can install a remote manager on file server or on any other machine in network and execute your scripts remotely using remote manager
Also you can execute your script like wscript c:\CreateFolder.vbs
Thanks
Suren
Edited by: Suren.Singh on Aug 10, 2010 3:20 PM

Similar Messages

  • SAP NetWeaver04 installation error with home directory for sidadm

    Hi,
    I am installing NetWeaver04 on Windows 2003 and getting following error.
    Unable to determine property "home directory" for account sidadm.Access Denied
    Please help
    Thanks
    Santosh

    Hi Oliever,
    I did spent half day to sort out the issue. I have searched forums,google and notes but couldnt find the answer for Windows/SQL2005.
    This morning I have finally solved the issue
    I tried to do domain installation as local administrator but I didnt have access to sidadm profiles. When domain admin given me the access to sidadm profiles it worked.
    Thanks anyway mate
    regards,
    Santosh

  • Define a remote linux nfs home directory for an open directory's user

    Hi,
    I want to migrate from nis to open directory. Everything but "auto homes" looks good. As I create a user with the workgroup manager, under the 'Home' tab, I'm unable to specify a remotre nfs home directory(linux).
    So, I want client01(linux) to authenticate on macsvr01(mac osX 10.6.2 / opendirectory). When authenticated, I want macsvr01 to tell client01 that it's home directory is hosted nfs on linuxsvr01(linux nfs file server).
    When i look the workgroup manager, the only possibility seems to be 'afp'.
    When I try to specificy nfs entries, I can't validate my setting because the 'Ok' button remains grayed out.
    Any suggestions?
    Thank you,
    Luc

    I assume you are creating folders in a file server and its a windows machine , is it ?
    You can install a remote manager on file server or on any other machine in network and execute your scripts remotely using remote manager
    Also you can execute your script like wscript c:\CreateFolder.vbs
    Thanks
    Suren
    Edited by: Suren.Singh on Aug 10, 2010 3:20 PM

  • Multiple remote home directory users logged into one machine?

    Hello,
    Just wondering if it's possible to have two or more users logged into the same machine at the same time. Each user has a home directory located on an XServe RAID connected to an XServe.
    We have a new employee who is needing to toggle back and forth between his account and an account that belongs to a previous employee.
    So far I've only had success logging in one remote home directory user, and a user account local to the machine. Making.. two users logged in on the same machine at the same time.
    Anyone able to offer some insight? thanks!

    The way afp works, you won't be able to log in more than one user with a remote home directory on any one machine at a time. This is a known limitation.
    If you need access to more than one account at a time, you could copy the home directory of the old user onto the local machine and set up a local account with it. Or you could give the new user a copy of the old home directory if it's just a matter of file access.
    Hope this helps,
    Andrew

  • Help please..how to specify Oracle Home directory for create AS connection

    I have linux based application server 10g having IP 121.100.115.2 and name as10g.ourdomain.com (/home/oracle/OraHome_2 is AS directory)
    I have developed a simple jsp page using JDeveloper10g. In order to deploy this project, I am trying to create Application Server Connection using wizard.
    step1:
    connection name: as10g
    connection type:oracle application server 10g
    step2:
    user name: ias_admin
    password: mypassord
    step3:
    enterprise manager OC4J host name: 121.100.115.2
    enterprise manager OC4J http port: 1156
    Remote Server's Oracle home directory: /oracle/OraHome_2
    step4
    RMI Server URL: ormi://121.100.115.2:23791
    RMI username: admin
    RMI password: {blank}
    step5
    When I click on test button I get this error:
    Test failed (-2). Invalid Oracle Home directory

    When you create the stand alone, in options you can actually set the temp directory and default directory. You can change it there OR in goto options and check for libraries/directories. You can change it there too.
    Kudos always welcome for helpful posts

  • Single Student home directory for Multiple users

    Hi all,
    I'm currently working in an education environment and we have 4x labs of mac's. Currently, when students log in, their login info/permissions are pulled from AD and OD. When they login for the first time, it creates a local home directory with their username, so when they login subsequent times they still get all their saved movies, music and pictures. Nothing special.
    We are aiming to change over to a new system in which the students login with thier username/pass, but they all use the same local home directory called 'student' (which will actually be refreshing with the default-homedir-refresh script by Bombich). To compliment this, as they will not be able to use thier movies folder, we will have a seperate partition on the computer in which they save all thier work. Idealy, we would like the files that one user saves not to be accessable (deleted) by another student, but i'm not sure if this is possible even though they have logged in using different username/passwords, as they are all using the same directory. To add to this, the users will also have thier network space mounted on login (as its on a novell server, currently we mount it by specifying the address in WGM under preferences->login items, with Mount item with user's name and password checked).
    My questions are
    1) how do we get the students to use the single 'student' home directory?
    2) If we have a separate partition set up for them, will the files they create have the permissions assigned to the individual users or will they all be able to access each others file as they will use the single 'student' home directory.
    3) Will our method of mounting their Novell drive still work with the new system?

    I can't help asking: Why?
    Might help if we knew exactly what sort of issues you are trying to avoid, since you're moving away from what appears to be a perfectly functional setup

  • Can't change home directory for standard users (admin is OK)

    I'm can't relocate home directories for standard users.  Relocating works fine for admin users.
    When a standard user logs in, they get a message (paraphased) saying "the home directory is not available.  If it is located on a server, the server might not be online".  If I change the standard user to admin, this message goes away, and everything is fine.
    I created a standard user
    moved the home directory using the terminal as root: mv UserName  /otherlocation/UserName
    I then went into users and groups, other options and changed the home directory location.
    Rebooted, then tried to log in as the standard users.
    Next try - Deleted the standard user and created the same user with admin rights.  Followed the above steps and everything works fine.
    I don't want this user to have admin rights on my system.  Any ideas

    Hi,
    the AFP is has always been switched on. As for the path I believe this to be correct. The path I am using is:
    afp://musicserver/Users
    I'm not at the server right now so I mat have got the afp and : and / in the wrong order here but they are correct on the server.
    This however does not seem to put the a folder in the Users folder. Could it be something to do with my external hard drive? I am using a Mac Mini as our server (not ideal but fine for us, or at least was) this is booted from our external hard drive. This is the main system drive which is where the Users data is also stored. I have tried all possible paths I can thing of from replacing the 'musicserver' with the IP address. I have also tried adding the name of the drive to the path (System) but all does not work.
    Are you able to suggest anything I have missed? Perhaps I'm doing the path wrong?
    Thanks again
    Chris

  • Home directory for my documents

    Hello,
    I am writing an international program which reads in files placed under the "My Documents" directory of the users home directory.
    I can get access to the homedirectory using System.getProperty("user.home"). But depending on the language, the "My Documents" is having a different name.
    Is there a property that gives direct access to this directory?
    KR,
    Jan

    Hello,
    I suppose it is too late for helping nnv14vv but can help others.
    * Constructs a <code>JFileChooser</code> pointing to the user's
    * default directory. This default depends on the operating system.
    * It is typically the "My Documents" folder on Windows, and the
    * user's home directory on Unix.
    public JFileChooser() {
    this((File) null, (FileSystemView) null);
    So you can get "My Documents" path using:
    new JFileChooser().getCurrentDirectory();
    I am sure that must be another way to get it without using JFileChooser() but haven't found it.
    KoKo

  • NSS 324 - set different home directory for FTP

    Hi
    DOes anyone know - is it possible that when user logs in via FTP, their home directory is not root that can see all fileshares, but a different created share?
    I.e if i create a share called /tftpboot, when user logs in via FTP, they get  sent to that share and thing that this share is root, so they cant see any other shares.
    THanks
    Arkadiy

    Hi,
    Depending on what firmware the NSS is running. You need to make sure you have different groups for different users.Assign the user to groups you want to allow access to certain shares. Then you want to assign the group you created to the share and give it proper access. Make sure the users are assigned to that group. You want to uncheck Group (everyone). Also under the user (private network share) make sure the user has access to that share.
    If you would like help setting group and user access please call 1-866-606-1866 and open a case.
    Jason Bryant
    Cisco Support Engineer.

  • Home sharing for iPhone 4; Remote App

    Am using Windows XP desktop which is connected to router with Ethernet and my iPhone 4 uses the Wi-Fi.
    Got latest version of iTunes.
    Latest version of Remote.app
    iPhone OS 4.3.3, not 4.3.5
    I followed this guide to implement the inbound settings since it isn't available on Windows XP the way it is available on Windows 7:-
    [CODE] no-ip . com/support/guides/routers/configuring_windows_xp_firewall.html[/CODE]
    The port number i entered for TCP is 3689 and named it as bounjourport(the name shouldn't matter).
    mDNSResponder.exe is also running.
    And am still unable to locate my iPhone in iTunes for 'Remote App'. Actually there isn't any "Devices" list present on iTunes, though it appears when i connect the phone with USB. Also tried port forwarding on router, still no change.
    Please help!!
    **My previous phone was Sony Ericsson w995 which supported DLNA and i could access my phone files through the same PC with Ethernet connection to the router, so i guess this should be possible for iPhone too.
    Thanks in advance.

    Anyone help me please?

  • Unable to create the portable home directory for this user

    This is driving me nuts!
    I have a network user who I can login to on any machine on the network. I want a PHD to be created on a laptop and eveytime I answer 'yes' to 'create PHD for this user' I get the "unable to create the PHD for this user" message.
    What am I doing wrong?

    I fixed this by unbinding the laptop from the od server as I had used this user previously for PHD's on this machine. Setting up the machine to bind to OD again and all is well.

  • How can i create automatic home directory for ldap users

    HI
    i have successfully bineded solaris 10 with AD . now AD users can able to login to solaris box but the thing is ia m getting error like homedirectory is missing..
    i tried with auto_master with some script and it's not executing while logging .
    Regards,
    Ben

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • Home directory creation for local user accounts using powershell

    Through Computer Management when I create a user, a home directory is created for the same user in the folder C:\Users.I am creating a user through powershell in a remote machine.I am using the following script to create user 
    $comp = [ADSI]'WinNT://localhost,computer';
    $user = $comp.Create('User', 'account7');
    $user.SetPassword('Welcome1');
    $user.SetInfo();
    The account is getting created. But no home directory is created for this user. How to create a home directory for a user using powershell? Also the user created through GUI is a member of the group 'Users' by default. How to add the user created to the
    'Users'  Group.

    Hi Cmm user,
    Thanks for your posting.
    To set the attribute of homedirectory for a user in powershell, please also try the cmdlet set-aduser:
    import-module activedirectory
    $HomeDrive=’Z:’
    $UserRoot=’\\CONTOSO-FPS\Users$\’
    $HomeDirectory=$UserRoot+$AccountName
    SET-ADUSER $AccountName –HomeDrive $HomeDrive –HomeDirectory $HomeDirectory
    I hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Mobile Home Directory: Setting a relative location for various sub-nets

    Question Summary:
    1) Is it possible to define a home directory for mobile account users that is relative to the host's subnet?
    2) How does one accomplish #1 if possible?
    Details
    Setup
    Users access hosts on three LAN networks connected through the WAN via Branch-Office VPN connections (persistant VPN tunnels that connect our LANs)
    If User1 from LAN1 travels to LAN2, User1 has difficulty working, because the mobile account definition points to a host on LAN1 for HomeDirectory syncing, so all files are synced across a slow (5Mb/s) connection shared by all other users.  For some users (The CEO, for example), this sync entails transferring Gigs of personal data, so the Mobile Sync across the VPN literally takes several days, if it completes at all.
    My ideal setup would allow User1 from LAN1 to access a host at a relative location as apposed to an absolute location.  In other words, if LAN1 has the home folder at 192.168.76.23:/HomeFolders/User1, then when User1 moves to LAN2, the HomeFolder becomes 192.168.78.23:/HomeFolders/User1. Regardless the subnet, the User account would be defined in such a way that the HomeFolder would be sought at 192.168.X.23:/HomeFolders/shortUserId
    These home folders between the hosts 192.168.76.23 and 192.168.78.23 on LAN1 and LAN2, respectively, could be kept in sync during off hours so that at the beginning of each shift, all files are in all three locations ready for local use, fast access, and more importantly, fast home-syncing during the work day.
    Equipment
    OS X Yosemite running on various iMac and MacBook hardware configurations.
    OS X Server 4 running OD replicas and local DNS's on each LAN.
    Ample space for redundant data storage on all networks.
    Question
    How do I define a HomeDirectory as a relative location to the Mobile Account Users host machine or host machine IP address?
    Alternatively, is there a way that I can define a HomeDirectory using a Fully Qualified Domain Name so that I can use the local DNS server to force the redirect?
    Previously Tried Idea(s)
    Using the same Bonjour Computer Name
    On one test, I tried to trick the system by setting the name of the HomeDirectory computer to the same name on all networks. The thought behind this is that, when looking at the HomeDirectory path, the address is defined by the computer name, so if the local computer name matches, the system will automatically point to the host that is on the current LAN, as apposed to the host of the same name on the previous LAN.
    This failed due to the fact that the system providing the HomeDirectory storage is the same system that is providing OD replica services, and OD replication requires that each system have a unique name.

    Hi,
    Yes my home directory is set
    more /etc/passwd
    sfsys1d:x:301:201:sys1 dev sftp user:/interfaces/dev/system1:/usr/bin/csh
    when i log in they go to this directory, through a shell and through ftp ( haven't checked sftp yet)
    However i can still go up directories and see what is in the directories above
    the permissions are set as below
    drwx------   3 root
    sshusers  
    3 Sep  6 08:38 interfaces
    drwx--x---   3 root
    sshusers  
    3 Sep  6 15:49 dev
    drwxr-----   5 sfsys1d sshusers  
    7 Sep 19 14:52 system1
    I have tried various other permission 700, 710, 740 etc and they all give different results but not the correct one.
    The best I have managed to get so far is that they cannot list the files in the other directories, however if they know the names they can still go to them,  this also didn;t work in the windows ftp client, as it just showed the file/dirs anyway.
    Thanks
    Kerry

  • Time Machine not backing up my home directory

    One day, I came in and booted up my Mac. I began my usual practice of pairing my Bluetooth mouse & keyboard, but this time, it failed to pair. The Bluetooth prefPane was acting weird (beach-balling, garbage characters appearing in the "is the name Bluetooth devices use to connect to this computer" title). I rebooted, and much to my dismay, Bluetooth was no longer detected by the system (both in System Profiler and System Preferences).
    I assumed this meant the Bluetooth module was failing. I contacted Apple support, and we concluded that it was in fact the Bluetooth module that was failing, and no the connector cable. I filed a GSX ticket to have the entire display assembly replaced (since that's how these new aluminum uni-body MacBook Pros are built). The Bluetooth module has been failing intermittently, so I cancelled the GSX ticket to do more research (and to make sure it wasn't a software problem with my OS). I planned on doing an Archive & install to see if a new OS fixed it.
    I ran a Time Machine backup to make sure I had the latest and greatest copy of my data, and ran an Archive & Install. As expected, the Bluetooth behaved identically in the clean OS, so I rebooted again, and ran a Restore from Time Machine, selected the most recent snapshot I had just created. After the restore completed, the machine rebooted, and an old desktop & Dock greeted me, much to my dismay. I checked and double-checked, and determined that Time Machine had been maintaining a week old copy of my home directory files, but had been continuing to update the rest of my computer (so my Applications folder was up-to-date).
    I don't know how Time Machine could think that my Home directory hadn't changed in a week, but now I'm running an extended S.M.A.R.T. scan on the drive to make sure it's not failing. And yes, I made sure my Home directory was not in Time Machine's exclusion list. The reason I think the drive is failing is because when backupd tried to run after I restored from Time Machine, it ground a whole lot, and took forever to backup 90 MB. Like, a lot of grinding to get from 30 KB to 70 KB.
    Does anyone know why/how this might've happened?
    Message was edited by: Link Dupont
    Message was edited by: Link Dupont

    Link Dupont wrote:
    I'd plug in and run a Time Machine backup about once a day, on average. I've been scouring the logs, and the only thing I notice is the "deep traversal" message, which I'd expect occasionally as it needs to reindex files (especially after a restore).
    This also happens if the TM disk isn't dismounted, etc., exactly the way TM expects; or if there's an abnormal power-down. It means TM isn't sure about just exactly what is where, so it looks at every file and folder to be sure.
    I've run long S.M.A.R.T. scans on the drive (via smartctl on a Linux LiveCD and SeaTools via a Windows installation), I've run Repair Disk (via Disk Utility) and I've defragmented the filesystem (iDefrag). All the diagnostics come back healthy, and iDefrag had little to do. My gut tells me the drive is failing, but I can't actually prove it. My next step is to reformat the drive and create a new filesystem; I'll see if Time Machine is happy with a clean start.
    I'm a MobileMe subscriber, so I downloaded and set up the old .Mac Backup.app, and will be running that daily to shove my important files up to my iDisk (and probably to various other locations), in case backupd decides to choke again, at least I have a backup to my backup.
    Good plan. I run CCC daily, in addition to TM's hourly backups, and use Backup to iDisk daily for fairly small stuff, plus others to DVD/RWs kept in my safe deposit box. May seem like overkill, but I've learned, usually the hard way, that when it comes to backups, paranoia is prudent!

Maybe you are looking for

  • Jabber and Messages: error with cert

    Hi all, Since upgrading to Mavericks, I'm not able to connect to my company's Jabber server. I get a cert error, even after I've trusted the cert. All Mavericks users at our company are having the same problem, so the problem isn't just on my compute

  • How to access or create a stage in a class file

    Hello Flash Actionscript writers, I have recently discovered that I cannot use the "stage" in a class file. I had a regular fla file that had actionscript in my "actions" layer. Of course, the fla has a stage object. I decided it might be nice to use

  • How do I add a password where I never had one? All I can find is change password and that asks for an old password which I do not have.

    How do I add a password as user and administrator where I never had one? All I can find is change a password which asks for an old password to be entered and I do not have an old password.

  • Iphone 4s screen remains black

    Over the last 2 days, my iphone 4s screen will randomly go black with a fully charged battery. I can still take screen shots, hear siri and when I recieve messages, but I can't see anything. I tried pluging it into the charger and doing a hard restar

  • No sound on XviD

    First I had a white screen and no sound on XviD videos Info: XviD, 512 x 384, Unknown MPEG Layer 3, Stereo, 48.000 kHz I installed the XviD_Codec v0.5.1.component. Now I have video, but no sound. What am I missing?