Script to remove local home directory after sync

Does anyone have a good script to clear (periodically) the local home folders created by mobile accounts for sync ?
There is one mentioned in John DeTroye's overview of Tiger server v12.1, by Steve Hayman, but I'm having trouble running it via ARD.
Thanks

I'm doing this for 2 reasons:
- as a scripting exercise
- because the local repo is a shared wordpress mess and people forget to make commits so I'd like a local backup that includes all changes that may not be in github (sadly).
Anyhow, thanks for the input about trap, I'm definitely confused by it's use at this point but have reworked the script without it.
#!/bin/sh
set -e #Exit on any error.
TIME=`date +"%m.%d.%Y@%H:%M:%S"` # Define the TIME variable as today's date and time.
MONTH=`date +"%b"` # Define MONTH as today's month.
FILENAME="backup-$TIME.tar.gz" # Define the filename structure.
SRCDIR="/stuff" # Define folder to backup.
DESDIR="/Backup/$MONTH/" # Define the backup folder location.
LOGFILE="$DESDIR/backup-$TIME.log" # Store the output in a log.
REMOTE=$(git ls-remote -h origin master | awk '{print $1}') # Get commit hash from head of remote master repo (github)
LOCAL=$(git rev-parse HEAD) # Get commit hash from head of server repo (dev/test)
if [[ $LOCAL == $REMOTE ]]; then # If the hashes match
echo "No update required." >> $LOGFILE # Then no pull is needed
else # If the hashes don't match then prepare to run our backup
mkdir -p $DESDIR # Create our directory if it doesn't exist.
echo "Backup started for "$TIME >> $LOGFILE # Make it log what it's doing.
tar -cpzf $DESDIR/$FILENAME $SRCDIR >> $LOGFILE 2>&1 # Perform the backup.
echo "Backup Finished for "$TIME >> $LOGFILE # Log that it's finished.
echo "Preparing for git pull " >> $LOGFILE #Log what we're doing.
cd /stuff >> $LOGFILE 2>&1 # Make sure we're in our repo directory
git pull >> $LOGFILE 2>&1
echo "Git pull completed successfully. " >> $LOGFILE
mail -s "Backup log `date`" [email protected] < $LOGFILE # Email the output to me.
fi

Similar Messages

  • LDAP with local home directory?

    Greetings.
    I'm trying to configure the Macs to authenticate based off of the LDAP server. I'm pretty sure I've got that part working, but I'm running into difficulty figuring out how to specify using a local home directory template rather than an NFS / AFP portable home directory. All the guides on the internet out there seem to want to use NFS, which we don't have setup (and don't intend to).
    Based on instructions of various texts, manuals, and blogs, I've created a user account called "labuser", and a group called "users", and then given any member of the group "users" write-access to the folder /Users/labuser. This way they login to a default home directory (at least for now). What information do i specify for LDAP's "apple-user-homeDirectory" entry to make it look for this /Users/labuser folder rather than an NFS share?

    So basically I should add C:\Documents and Settings instead of /Users for windows accounts?
    Because if I don't specify anything it creates a roaming profile on the windows machine, and puts the user directory both on the windows machine and a copy on the server under /Users/Profiles. Or at least is what is doing now... so I manually have to change the profile to local on the windows machine and delete the folder on the server...

  • Not able to remove 'emtpy home' directory entry

    Hi
    I'm trying to remove an Oracle 10.2.0.1.0 installation on a Linux system. My problem is, that I'm not able to remove an 'empty home' directory with the installer. The button 'Remove..' is grayed out.
    The reason why I want to remove that directory is, that I want to do an installation into this directory again. But the requirements check of the installation fails because of this 'empty home' directory (which is actually deleted on the file system).
    Does someone know where this information is stored on the filesystem or how I can force the installer to install in this directory anyway? BTW: I have also a 9.2 installation on the same system, but that's probably no problem.
    Thanks!

    Has this database been upgraded via the patch process? If so, run the installer from the patch directory, you can often get to the uninstall from there. It all has to do with oracle inventory and what it sees as your most recent install. After you have done the uninstall/remove, you can just go delete the directory and remaining contents -- there will not be much left.

  • Portable Home Directory Incomplete Sync

    All,
    I have just discovered a particularly disturbing issue with PHD. I recently had a user overwrite a file that was on his desktop and request a restore from backup. I did a search for the file on the backup that backs up all network home directories on the server and it was not found. I then checked the user's home directory on the server, and surprise it wasn't there either. Upon further checking, no files from the desktop had been synced to the server for over a month! This occurred while a regular sync has been happening on startup/logout and hourly the whole time and no errors have been logged.
    Now being curious and worried I checked some other users and found that the same issue is occurring on about half of the other computers. But the specific problems vary from machine to machine. Some users were syncing properly except for some files on the desktop. Some were missing files that were several months old but had all the current ones. In a word, random.
    Exception rules seems to be observed for the most part.
    I am going to investigate this more but wondered if anyone else was seeing this sort of weirdness? I am suspecting that the problem may have coincided with the 10.5.4 Server upgrade, but this is just speculation at this point.
    Ideas?
    Bob

    hi there, i am having the exact same issue with some portable accounts. we are running 10.5.4 server and 10.5.4 clients.
    i have noticed rogue ACLS appearing now in server admin for leopard, as described in a previous post.
    User = Everyone, Type = Deny, Permission = Custom, Applies To = This folder, All descendants.
    strangely, some of our users have the rogue ACL and some don't.
    even after deleting the ACL for the user, portable home syncing still does not work.
    on the client it goes through the process and the blue bar shows you it checking folders and seemingly updating. the give away for me is following the apparently successful sync, when you click on the mobile directory icon in the menu bar the date has not updated and clearly upon checking with the network account, new data has not synced.
    any ideas would be great... until now i have had to manually drag data from the client to the network folder by mounting the network folder over afp, then wipe the client and recreate the portable account... even then i am not sure how long syncing has been successful, though that has seemed to fix things.
    i am not sure if something is breaking in the user's library on the portable account?
    any insight would be most welcome.

  • AD mobile account with local home directory

    I basically have the same question as this post:
    http://discussions.apple.com/message.jspa?messageID=696367
    I have set up Tiger workstations to authenticate to AD, I am forcing a local home dir. Everything works great. I want to do the same thing for Tiger laptop users with mobile accounts. The problem is that OS X creates a second home directory outside of /Users based on attributes from my AD schema. Just like with the non-mobile users, I want to ignore all home dir attributes from AD and just use the user's home dir that is in /Users. So the question is, how can you use a mobile account and force a local home dir with Apple's AD plugin??????

    Yes, I know how to click buttons in the gui, that does not fix the issue. The issue is that the Active Directory schema at my company includes extended attributes from the RFC 2307 schema. Apple's AD plugin does not know how to handle this extended schema especially when using mobile accounts.
    Apple's AD plugin reads these unix attributes from AD and thinks it knows what to do but ends up causing more problems then if there were no unix attributes at all.
    Since this post, I have opened a ticket with Apple. They were able to recreate the problem in their lab with their AD server. The only work around is to create a custom ActiveDirectory.plist file that forces the Mac to ignore what AD is telling it.
    This solution works unless the ActiveDirectory.plist file is deleted or corrupted. This problem will only become worse once Microsoft includes all of the RFC 2307 schema in their next service pack of Win 2003 server.

  • Network user can't see local home directory

    Hi there,
    I have a Mac Mini running Lion Server with Directory Services turned on. I've been using this to allow network users to log into Lion clients, as well as set up mobile accounts. This has been working fine.
    Now I've just created a new network user for use with a Mountain Lion client and have experienced some strangeness with this new user's home directory. The binding to the directory was fine, and the credentials for the network user were fine. However, when logged in, this new user has his home drive mapped to /Network/Servers/<servername>/Users/<username> rather than the expected /Users/<username>. This has bad side-effects. For instance, Chrome tries to save downloads to the server instead of locally.
    What I can't work out is why the home directory isn't pointing to a local location. The other users (on Lion) have the same home directories defined in their Open  Directory profiles. The only difference is the new user is on Mountain Lion, but I don't think this has any bearing to the problem.
    Can anyone offer some advice?
    Benjamin

    So I took my Mac Mini running OS X 10.8 Server, along with two client laptops: one exhibiting the problem I described, and the other where network logins and home directories worked as intended.
    Long story short, the guys at the Bar couldn't figure it out. The user definitions in Open Directory seemed ok, but they still couldn't work out why no local home directories were being created. Not sure if this helps, but in trouble-shooting, we also discovered that trying to login with a network user on the problematic laptop didn't work when the server wasn't on the network. It's as if the server is required to be present.
    Anyway, the case has been referred to the business team, which is supposed to have more expertise with OS X Server.

  • Unable to lookup ejb local home interface after moving to wls 7.0

    I'm getting an exception trying to lookup an ejb's local home interface
    which I believe was deployed correctly. On startup I get the message:
    EJB Deployed EJB with JNDI name
    com.logistics.basedata.ejb.shipperspecificfveb.ShipperSpecificFVDOLocalHome.
    However, when I try to do a lookup using this jndi name, I get the
    following exception:
    javax.naming.LinkException: . Root exception is
    javax.naming.NameNotFoundException: Unable to resolve
    'app/ejb/ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecificfveb/local-home'
    Resolved: 'app/ejb'
    Unresolved:'ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecificfveb'
    ; remaining name
    'ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecificfveb/local-home'
    The name it can't resolve is different than the name I was trying to
    look up. I can see
    com.logistics.basedata.ejb.shipperspecificfveb.ShipperSpecificFVDOLocalHome
    in the jndi tree through the admin console, but the attributes Object
    Class, Object Hash Code, and Object To String are blank.
    This worked with weblogic 6.1 sp3. Is there something I missed in the
    migration to 7.0?
    Any help would be appreciated. Thanks in advance,
    -Brad

    That explains it - in 7.0 (unlike 6.1 - then the only factor was
    classloaders arrangement) client has to be
    in the same application (ear) - note JNDI links used to be able to lookup
    local homes.
    "Brad Geddes" <[email protected]> wrote in message
    news:[email protected]...
    I'm looking it up from a web application. I did notice a message on thistopic
    from last thursday (subject: "Pls Help! Failed to access local Sessionbean in
    7.0!"). In it, the individual said he had to add ejb-local-ref elementsin the
    web.xml. I tried this but can't seem to get it to work.
    javax.naming.NameNotFoundException: Unable to resolve ejb-link.
    ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecificfveb isnot in
    the context. The context includes the following link bindings: {} Makesure the
    link reference is relative to the URI of the referencing module.
    Also, I don't have a war or ear in the environment I'm working in; theejb's are
    all deployed separately in jar files, and the web app is in explodedformat.
    >
    -Brad
    "Dimitri I. Rakitine" wrote:
    Are you looking up the local home from outside of an application ?
    "Brad Geddes" <[email protected]> wrote in message
    news:[email protected]...
    I'm getting an exception trying to lookup an ejb's local home
    interface
    which I believe was deployed correctly. On startup I get the message:
    EJB Deployed EJB with JNDI name
    com.logistics.basedata.ejb.shipperspecificfveb.ShipperSpecificFVDOLocalHome.
    >>>
    However, when I try to do a lookup using this jndi name, I get the
    following exception:
    javax.naming.LinkException: . Root exception is
    javax.naming.NameNotFoundException: Unable to resolve
    'app/ejb/ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecificf
    veb/local-home'
    Resolved: 'app/ejb'
    Unresolved:'ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecif
    icfveb'
    ; remaining name
    'ShipperSpecificFVDO.jar#com.logistics.basedata.ejb.shipperspecificfveb/loca
    l-home'
    The name it can't resolve is different than the name I was trying to
    look up. I can see
    com.logistics.basedata.ejb.shipperspecificfveb.ShipperSpecificFVDOLocalHome
    in the jndi tree through the admin console, but the attributes Object
    Class, Object Hash Code, and Object To String are blank.
    This worked with weblogic 6.1 sp3. Is there something I missed in the
    migration to 7.0?
    Any help would be appreciated. Thanks in advance,
    -Brad
    Dimitri--
    Dimitri

  • Can standard users install applications to their local home directory?

    I want to setup multiple user accounts on my machine. I've been doing some tests and it looks like when you try to install an application from the App Store it requires an admin user name and password, and then the App Store installs the application to the '/Application' directory.
    Is it possible?
    (1) To set up the system in a why that all users install their applications to '~/Applications' (their home directory) without the need for admin passwords.
    (2) If an admin user wants to give access to a application to everyone on the system it is installed to '/Applications'
    Thanks in advance.

    The default installation is in the main Apps folder. This can't be changed. If you want an app in the user account Apps folder, the user should drag it to that folder when installation is complete.

  • Mounting a local home directory

    Here is a scenario:
    A distributed environment with offices in cities worldwide.
    Requirement: When a user logs into a local workstation, say in Chicago, the user mounts a homedirectory on a Chicago server. When a user logs into a local workstation, say in London, the user mounts a homedirectory on a London server. etc etc
    Can this be done with DS 5.2 on Solaris9 ?
    I have not tried anything but these are my ideas:
    My first solution is to implement local ldap servers, then configure the client to use the local server as the default server. The local server then has an auto_home entry to refer to the local file server. The problem is that then one cannot set up a replicated environment because the master LDAP server at HQ would overwrite the local LDAP server with a different auto_home entry (unless one excluded the automountinformation attribute from replication ?)
    Any other ideas?

    [This is drifting too much from DS, but see my note at the end]
    For automount see the man page automount(1M) and look for "Replicated File Systems". It has hard-coded selection rules which favor local networks, and you can include client-side variables (predefined + automountd(1M) options) in your values.juser    $MYSRVR:/export/home
    *    chi-srvr,lon-srvr:/export/home/&amd (am-utils) is much more flexible, see http://www.am-utils.org/docs/am-utils/am-utils_8.html#SEC58.
    home/*  -type:=nfs;sublink=${key};rfs:=/export/home netgrp(eur-hosts);rhost:=lon-srvr \
        network(192.168.1.0);rhost=lon-srvr network(17.16.0.0);rhost=chi-srvr rhost=chi-srvrThe relevance to Directory Server and LDAP is that older techniques (often used with NIS) may still be valid and might just need a couple of simple, global LDAP entries. Targeting the tool which uses your data might avoid twisting your DIT into knots trying to control what data gets seen by those tools.
    That being said, I am personally very curious to see the DS and LDAP based solutions.

  • MSI files in Local Settings directory after JDK install

    The JDK and JRE installers are leaving these giant .msi files (40+ MB for JDKs, 8-9MB for JREs) in c:\Documents and Settings\shankar\Local Settings\Application Data\{Long-Hex-Number-version}\
    But they don't get removed when the JDK and JRE are removed. What's with them? Are they safe to delete? (The old ones - corresponding to JDKs I've removed (via Add/Remove Programs!) - should certainly be safe to delete - how about the ones for the currently installed JDK and JRE(s)?)

    To answer myself in part, I just saw this bug: http://developer.java.sun.com/developer/bugParade/bugs/4760174.html. So clearly the old files can be deleted.
    The question now is - how about the files corresponding to the versions currently installed - are they needed?

  • HT201366 Can anyone else terminal out of their home directory after the security update on the weekend?

    syntax:  machine:~user$ cd \
    That SHOULD take me to \volume1\
    However what happens is terminal hangs at > and does nothing and I remain in \volume1\users\homedirectory
    so I tired BASH.  Same thing. Terminal just hangs as if it doesn't know what to do.
    I've verified that all three of my Mac's are doing the same thing after this weekend.  The only reason I was alerted to this, is a Firend called me with the same problem and asked if the syntax was correct.
    cd .. seems to work but only one level at a time where as cd \ would take you right to volume1.

    You've been spending too much time in Windows.
    Use the other Slash.

  • Access denied error while trying to add a home directory to a windows local user account

    I have seen the following as a suggestion to create home directory for a user - account17. So I have tried the following script to create a home directory :   
         $sec_password = ConvertTo-SecureString 'Password' -AsPlainText -Force;
        $credential = New-Object System.Management.Automation.PSCredential -ArgumentList 'MachineName\account17', $sec_password;
        Start-Process cmd  -Credential $credential -ErrorAction SilentlyContinue;  
        $user = Get-WmiObject -Namespace root/cimv2 -Class win32_useraccount -Filter "LocalAccount=True AND Name='account17'";
        $userprofile = Get-WmiObject -Namespace root/cimv2 -Class win32_userprofile -Filter "SID='$($user.sid)' ";
        $userprofile.localpath;
    I am getting the following error :' This command cannot be executed due to the error: Access is denied.'
    What are the permissions required to create home directory through powershell?

    pretty much the same permissions required to create the home directory by any other means.
    by the way which command is it that is generating that error? does "start-process cmd" successfully create a windows profile on the machine? Perhaps you just need to ensure that the profile is fully created before the rest of your script continues.
    Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • Mountain lion server network accounts are not mounting network home directory, rather its creating a blank local directory

    I have set up a scratch mountain lion server with open directory.  copied over old user account directories and added my users that match the directory ids.  Currently if a networked user logs into a networked computer, instead of mounting the network home directory, its creating a local home directory.  suggestions?
    thanks,
    Dave

    Additional info: it appears that certificates are not working either: setting up ical: "the certificate for this server was signed by an unknown certifying authority."...

  • Portable Home Directory no longer works on Lion bound to Active DirectoryAD

    Hi, All,
    I look after about 30 MacBook Air/Pro connected to a predominantly Windows corporate network.
    A few months back, I installed a MacOS Server running OpenDirectory and Software Update Services for managing the MacBooks - they are configured in the standard "magic triangle" configuration, bound both to the Active Directory (running on a handfull of Windows 2003-R2 servers) and OpenDirectory; they are configured to use the Mac Server for Software Updates, and with Portable Home Directories replicated on a network share point (through AFP) to keep a backup of the user's data.
    When all the MacBooks were running Snow Leopard, everything was running fine... but the last couple of laptops purchased came with Lion and they cannot synchronise their PHD's anymore :-(
    I have spent a lot of time trying to pin-point the problem, including replicating a whole test-network with its own AD/OD and client Snow-Leopard/Lion laptops to try various configurations... my conclusions so far are that:
    1- using Snow Leopard clients, it just works
    2- using a Lion client, when the network user account is configured in the default Users O.U. on Active Directory, it just works
    3- using a Lion client, when the network user account is configured in another O.U. than Users (e.g. Company-Name or External-Contractors), then the PHD syncinc doesn't work at all
    4- the failure symptoms are a popup window when trying to do a manual sync saying that "your network home at (null) does not allow writing" - if automatic syncing is configured through MCX, it just fails silently
    5- when PHD syncing fails, I can log on using the network account, manually mount the share point used for the network home in the Finder and read and write to it without a problem; so it' not a permission problem, but the fact that the network home directory is (null)
    6- I have traced the root cause to the FileSyncAgent process which raises an exception at startup - here's what I see as the salient lines from the logfile (i've edited out the username):
    0:: [12/02/07 12:45:00.512] ******************************************************************************
    0:: [12/02/07 12:45:00.512] FileSyncAgent-502.2 (r?, BUILT:?, PID:385, OS:11D50b, ARCH:x86_64-64) starting
    0:: [12/02/07 12:45:00.512] LA: FileSyncAgent -launchedByLaunchd -iDiskPlist
    0:: [12/02/07 12:45:00.512] ******************************************************************************
    0:: [12/02/07 12:45:00.512] Engineering log verbosity level = 1
    1:: [12/02/07 12:45:00.512] Registered isRunning port with name 'com.apple.FileSyncAgent.iDisk.isRunning'
    1:: [12/02/07 12:45:00.846] Temporary disk storage at "/Users/[USERNAME]/Library/Caches/Cleanup At Startup/FileSyncAgent-1727909307".
    1:: [12/02/07 12:45:00.846] UserAgentString = "DotMacKit-like, File-Sync-Direct/502.2.? (11D50b x86_64-64)"
    1:: [12/02/07 12:45:03.249] +[SSyncSet_PHD createPHDSyncSetForLocalPath:remoteHomeSpec:mountSuffixPath:name:]: Creating Sync Set with name "HomeSync_Mirror".
    1:: [12/02/07 12:45:03.249] -[SSyncSet_PHD _setupNewPHDSyncSetWithLocalPath:homeSpec:mountSuffixPath:]: We've been given local home path '/Users/[USERNAME]'.
    1:: [12/02/07 12:45:03.249] -[SSyncSet_PHD _setupNewPHDSyncSetWithLocalPath:homeSpec:mountSuffixPath:]: local home at "/Users/[USERNAME]"
    <PHD> 1:: [12/02/07 12:45:06.458] Added new sync set "HomeSync_Mirror".
    <PHD> 1:: [12/02/07 12:45:06.465] _incomingIPC: SFCreatePHDSyncSetMsgId (17) took 3.217627 seconds.
    <PHD> 1:: [12/02/07 12:45:06.526] Scheduling next sync of "HomeSync_Mirror" at 2012-02-07 12:45:16 +0000
    <PHD> 1:: [12/02/07 12:45:18.122] ==========================================================
    <PHD> 0:: [12/02/07 12:45:18.123] Starting automatic sync of "HomeSync_Mirror".
    <PHD> 1:: [12/02/07 12:45:18.126] Peer "local" reports changes since last sync.
    <PHD> 0:: [12/02/07 12:45:18.128] EXCEPTION: NilPtr <-[SPeer_FS_PHD mountPeerVolume] (Peer-FS-PHD.m:142): "'((homePath))' is nil">
    <PHD> 0:: [12/02/07 12:45:18.128] BACKTRACE: {
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x105003493  
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x104f70866  
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x104f6fabd  
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x104f6ecb4  
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff924bb74e
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff924bb6c6
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff901998bf
    <PHD> 0:: [12/02/07 12:45:18.128] ? | 0x7fff9019cb75
    <PHD> 0:: [12/02/07 12:45:18.128] }
    7- if I use the same user account from a Snow-Leopard client, the mountPeerVolume finds the remote home_dir, mounts it and happilly trawls through the two directories to figure out what needs to be copied; I get something along the lines of:
    0:: [12/02/08 18:44:15.344] Starting manual sync of "HomeSync_Mirror".
    1:: [12/02/08 18:44:15.363] -[SPeer_FS_PHD mountPeerVolume]: We've been given remote home path "/Volumes/[USERNAME]".
    1:: [12/02/08 18:44:15.363] -[SPeer_FS_PHD mountPeerVolume]: Remote home path exists.
    1:: [12/02/08 18:44:15.363] -[SPeer_FS_PHD mountPeerVolume]: Final path to PHD remote home root = "/Volumes[USERNAME]"
    8- if I use a Lion client and a user account configured in the Users O.U. on Active Directory, it works similarly well
    9- in the failing use-case, if I run a "dscl xxx -read /Users/xxx" to verify that the DirectoryServices deamon returns some information, all looks good: I get all my A.D. user details, including email config and network home_directory, the MCX payload, etc
    10- the only difference that I can see when running dscl between the "working use-case" and the "failing use-case" is that the Attribute for the network home directory is called HomeDirectory (working) or OriginalHomeDirectory (failing) - but the actual value is present and correct in both cases
    11- I have enabled SMB as well as AFP file sharing to ensure that it's not a protocol problem rather than the share point itself that causes problem - no difference
    12- I have upgraded the MacOS Server to 10.7.3 (from 10.7.2) - no difference
    13- I have upgraded the Lion client from 10.7.2 to 10.7.3 - no difference
    14- I have tried to manually configure the Directory Search path on the Lion client to map HomeDirectory to OriginalHomeDirectory - either the mapping didn't work or it's not the real cause of the problem, as again: no difference.
    15- I have contacted AppleCare, raised a case with all the details above, been escalated from level 1 to 2 and 3 - and basically have been told that customers have reported very similar problems & that no more detail is available to me as it is a Directory Services related problem - if I want to take it further with Apple, I need Enterprise OS Support (and hence $1000s per year - and no real guarantee of result)
    [thanks to anyone who's read until now]...
    So my questions are (as I can't believe that I'm the only one using "proper O.U.'s" for managing users in Active Directory):
    - has anyone experienced this before?
    - does someone know of a workaround (other than "stick to SnowLeo" or "redesign your whole A.D."!)?
    - can someone help me figure out where the FileSyncAgent process tries to get its remote home directory from - as this might point to a solution?
    Many thanks

    I was able to fix the issue here. Steps Taken:  From the comand line I ran
    dscl /Search read /Users/jdoe HomeDirectory
    It returned # No such key: HomeDirectory
    This was the big clue.... it should have returned
    HomeDirectory: <home_dir><url>afp://files.hihllc.lan/Users/jdoe</url><path>/</path></home_dir>
    I unbound the Mac from AD and ran the following command in terminal.
    dscacheutil -flushcache
    I then went into OS X sharing preferences and renamed the computer slightly, so it would create a new computer record in AD. I rebound the machine to AD making sure in Directory Utility Advanced, under User Experience that Force local home directory on start up disk was unchecked and Network protocol to be used was AFP.
    I then ran
    dscl /Search read /Users/jdoe HomeDirectory
    and it returned
    HomeDirectory: <home_dir><url>afp://files.hihllc.lan/Users/jdoe</url><path>/</path></home_dir>
    I had the user reboot... which was necessary. When he logged in HomeSync fired up. He had quite a few conflicts, so I told him to select use files on this computer for all conflicts.
    I checked the FileSyncAgent.logs and it was good.
    Let me know if this fixes your issue.
    Thanks,
    Ray

  • Give up on Portable Home Directory?

    I'm wondering if anyone is actually having success with Portable Home Directory functionality in Leopard. I have mostly all Intel Macs... 3 iMacs, MacBook Pro, 2 MacPros... and 3 PPC G5's. The server is one of the PPC G5's. The server and all clients are 10.5.3.
    I've just had no luck over the course of this week getting PHD to function as advertised. It seems simple enough... and everything appears to go off without a hitch until you actually attempt to go mobile. Even then, on the surface it seems to be working then you quickly realize that it's not actually syncing. It only successfully syncs when the local home directory is initially created (first user login). After that, any changes you make go to the server... but they don't come down when you move to another computer.
    I have everything set as explained in the manual and on this forum. What I want is everything in the user folder to sync at login, once an hour while logged in, and at logout. What I'm getting is no sync at login, upsync everyhour, and upsync at logout. I just don't get it. The server home essentially has the correct combination of what is created on each computer... but each computer only has what was created/modified on that computer.
    I just recently attempted to delete the .filesync folders in both local and server user folder root... and nothing changed except that now it upsyncs EVERYTHING every time at log out.
    The client machines are obviously correctly bound as all the server managed preferences seem to be honored. As far as mobility, I've tried setting this individually for each user, and also on a group... and the only thing that works either way is the initial home folder creation and upsyncs at logout. It doesn't even try at login.
    If anyone has achieved any success, I would love an account of the steps taken and the order performed. I'm at the point now where I'm ready to backup the user information and delete all user accounts and homes and start over. Really exhausting trying to figure this out.

    Well I've found some consistency in the dysfunction, but I don't understand it. Still no sync at login, even if I turn off management server side and set it user side. It does sync at logout, although it has stopped re-upsyncing everything all over again each time (don't know why that suddenly stopped, but I'm glad it did).
    So here's the test. Logout of users normal computer, it syncs on logout. Go to another computer with a scansnap... Login, no sync, do a manual sync... it goes thru the motions... checking, but doesn't actually sync anything. Scan document, logout, it syncs. Go back to normal computer, login... no sync, do a manual sync... goes thru the motions... checking, doesn't sync (scanned document still not there). Check home folder on server, scanned document is, in fact, there. Logout, it syncs and actually does something. Immediately log back in, no sync, but document is there.
    So the consistency is that the home folder sync workflow seems to be working. However, for some reason, it won't sync at login or manually while logged in. I'm at a loss.

Maybe you are looking for

  • Is it possible to precalculate web template when we used dropdown boxes

    Hi experts 1)Is it possibel to precalculate webtemplates when we use dropdowns in WAD? When I am doing precalculation it is precalculating only for 1st value in the dropdown and the remaining all values are not visible. If any one know how to do this

  • Connecting & Using G3 iBook With MacBook Pro

    I am planning to buy a MacBookPro shortly when I am in the States. Will I be able to connect to my iBook G3 on 10.3.9 (640mb) both to transfer files and to use the iBook as an external hard-drive (bootable)? If so, do I need anything more than the co

  • My iPhone got 3 apps which I didn't install..

    Hello. everyone... I got some problems that, I've got 3 applications on my iphone which I totally didn't install. when I open my phone. I saw there were 3 applications name as Interpret, A Love Calc and Compass App. These 3 application were " PAUSED

  • Cannot load IOS 5 to my iPhone 4 get error 3194

    I have tried to load the ios 5 to my Verizon 32Gb  i Phone 4  4 times with no success.  I keep getting an error 3194 message. One time I got error message -48.  I follow the link to the Error 3194 and it says to reload i Tunes so I re-load i Tunes no

  • Internal e-mail header rewritten

    I have a mailbox in Exchange 2010 (SBS2011) which has the following e-mail addresses: [email protected] (Primary SMTP Address) [email protected] user@domain .nl When I'm sending e-mail from a Outlook client (internal) to [email protected] the recipie