Help with multiple user login script

Hi, just a little background first to what i want to do...
I have about 300 Macs in an education environment, they are bound to the AD network for authentication and OSX Server LDAP for forced prefs, the network Home accounts are stored via Apple and Promise Raids on XServes.
We also have 4 local user accounts on all the Macs for video etc. I have some simple scripts that i would like to force to the local Users only, (empty trash, reset dock. reset desktop pics and delete items etc).
I have done the script and saved it as a .app and it works on the Macs as a local User login option. However, when I bind the Mac back to the LDAP the local user script stops working. I have seen the option to 'Allow local scripts' to run via WGM, but have not had success here either, (I have ran the 2 EnableMCXLoginScripts on the clients).
Now I thought I would try to run the script as a Launchdaemon option using Lingon. This works, but its active for all users, I do not want it to delete Network account users Desktops! Is there a way I can add an 'If' option at the beginning of my script. As in..'if users home account is /Network/Sharepoint' then quit.
I cannot run it as a one script for all Mac setting as the different local users have different Desktop Pics and Docks etc
Any ideas or other options I could try?
Any help hugely appreciated.
C

V.K, thanks for that, sometimes I just don't see the obvious.
I have tried it as a ~/Library/LaunchAgents using lingon to create the .plist. I just cannot get it to run though. I have tried it as a .sh .scpt and as a .app file stored in the /Users/Shared folder.
All will run if I manually launch them after login though. I have made them all executable for all.
I have also tried to run it without the Mac connected to my LDAP. I have added the relevant folders to the allow list in WGM on the lDAP anyway...
Any ideas what I could be doing wrong?
C

Similar Messages

  • Can anyone help me with a user login script on php for Oracle database?

    I have a script which somehow is not working well. Can anyone give a good script (for Oracle database) for user login and validation and change password? I will be grateful
    JJZ

    http://www.oracle.com/technology/pub/articles/deployphp/seliverstov_deployphp.html
    http://www.oracle.com/technology/tech/php/htdocs/php-oracle-tutorial.html

  • Need help with multiple users of a catalog

    I run Lightroom in a small office and several of us have to have access to the image catalog, using Windows XP.  To accomplish this, the images were placed on a shared external drive, the catalog was created on a USB flash drive and Lightroom was loaded on multiple computers.  Everything has been fine and this strategy will work for us.  However, when I move the catalog to another computer (logged on as a different user) the catalog appears with all keywords and image adjustments, but my import presets are not available.  The preset files are located in the preset folder that accompanies the catalog, but they won't appear in the drop down box within Lightroom when attempting to import images.  My temporary solution is to recreate the import presets, which I have done for one other user so far, but I don't want to have to do that for each new user.  If one looks for the preset file, it is located in a folder called "user", but I have not figured out how to get Lightroom to recognize and use the preset files after logging on as a different user.  When I move the catalog (USB flash drive) back to my computer (original computer, original user), then everything is fine again and I can see and use al the presets. 
    Anyone use Lightroom accross users or machines?  Any way to get Lightroom to "see" and use import presets by multiple users?
    Thanks for any help!

    Not really sure if this will help or confuse things...
    If each user has a preset folder/directory, could you not create a symlink that points to oen on the USB device? And then keep all the presets there?
    Disclaimer:  i have not tried this, nor looked at it much, just a thought as i was reading your post.  If it doesn't apply, ignore me!
    Cheers!

  • Help with multiple users in iTunes

    Dear all
    I seem to have made a right mess of iTunes. It all started with my 80gb Classic ipod and iTunes on my Toshiba Windows 8 laptop. All was fine then my daughter got an iPod touch and I think here was where I made my first mistake. I setup a new iTunes account and used my wifes email address as her Apple ID. Again all was well because we also have Windows 7 laptop in the house.
    Next my daughter got an iphone 4s so the ipod was given to us and I added it to my iTunes account in devices. This seemed to be ok and all was well again. My wife then also bought an iphone 4s and this is where I think I made my next mistake. I had to get my daughter to change her apple ID so that my wife could have her old email address back but this seemed to be ok. Are you still with me
    Last night my daughter decided to buy an album on iTunes on her phone but iTunes began asking her for the answers to security questions. We are certain that we didnt setup any security questions & answers so were mystified. I logged into iTunes and it defaulted to my wifes account but it was showing the voucher and it was showing the ipod touch in devices. I signed out then back into my daughters account and it was still showing the voucher but still showing the ipod touch in devices. I went ahead and clicked buy album of my daughters choice and it immediately began to download to her iphone.
    So im in a bit of a mess as you can see if you have been kind enough to read this far. I dont know what to do except somebody suggested just having one account but the problem is with icloud as my wife & daughter will want some privacy and if we are all on the same ID everyone sees the same thing ?
    Help !!

    Yes, that's the usual advice - everyone use the one itunes account and each user has his/her own icloud account.

  • Help with other user logins

    Something has changed in my logon process where now I am the only user than can login on startup.  If I logoff without shutting down, other users can log in, but only I can from a cold start.  I know this is something I did by accident. 
    About 1-2 weeks ago some option came up for security or something.  It sounded like a good idea so I selected and the process encrypted my HDD or something like that.  Now when my iMac boots up, I am the only user that can logon (and my logitech G700 mouse does not work upon startup but that is a minor issue). 
    Thanks.

    Hello OrlandoEllis14,
    Check out the article below to understand what takes up the Other section on your iPhone. Other is made up of Settings, Siri and other system data that may have been synced.
    Understanding iOS device capacity
    http://support.apple.com/kb/ht1867
    Regards,
    -Norm G. 

  • Reinstall help with multiple users

    My prior hard drive crashed and I have placed a new hard drive in my computer and want to make sure our Ipods work correctly. Here is the deal:
    We previously ran itunes 6.
    My hard drive failed. Fortunately, I had saved my music on a seperate hard drive which was then "G:", however with the new hard drive the system has relabeled the music hard drive as "E".
    We have three ipods, my wife, mine, and my daughters. Each of us had a separate windows account. When the ipods would synch with the appropriate account, it would either pull music from "music" folder (for my wife and I, even though we had different libraries) or "daughters music" folder (for her) -- both of which were in the prior G dive which is now E. Each of the ipods/folders have both music which has been burned and also purchased form itunes.
    How do I set this up so each of the ipods work right?
    Thanks
      Windows XP  
      Windows XP  

    Yes, that is becoming the choice I am thinking about proceeding with. I use CCC alot @ work, and am familiar with it (how I made the bootable clone/backup).
    Thanks for your quick input.

  • Mac OS 9 auto login with multiple users

    Is there a way to have a mac running Mac OS 9 set up with multiple users autologin to one of the accounts?
    Ok, since I know people will ask why do you want to do that. I have an old mac and found my old XTension home automation software. I want to make this machine a dedicated home lighting controller. (I have a new mac mini doing this in my house, but I wanted to play with the old machine for fun). Now, I have multiple users set up and one account for home automation that has the panel version of the finder and the only application visible is XTension. This all works great.
    If the power goes out, I want the machine to reboot into this home automation account automatically. I also want to have the machine power cycle once a week just to keep from any memory problems etc.
    Oops, sorry, i just realized there is another section for OS 9.x.
    Message was edited by: Mark Miller8

    If you are using this for just Home Automation, why not turn off the "Multiple Users" add-ons and have it revert to a single-user system. Look at the "Multiple Users" Control Panel.

  • Set "peoples or groups" field with current user "login name" in sharepoint list form using javascript

    hi friends
    i am trying to set peoples or groups field in sharepoint  list form with current user login name
    here my code
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    $(document).ready(function NewItemView () {
    var currentUser;
        if (SP.ClientContext != null) {
          SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
        else {
          SP.SOD.executeFunc('sp.js', null, getCurrentUser);
        function getCurrentUser() {
          var context = new SP.ClientContext.get_current();
          var web = context.get_web();
          currentUser = web.get_currentUser();
          context.load(currentUser);
          context.executeQueryAsync(onSuccessMethod, onRequestFail);
        function onSuccessMethod(sender, args) {
          var account = currentUser.get_loginName();
          var accountEmail = currentUser.get_email();
          var currentUserAccount = account.substring(account.indexOf("|") + 1);
        SetAndResolvePeoplePicker("requester",account);
    // This function runs if the executeQueryAsync call fails.
        function onRequestFail(sender, args) {
          alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     function SetAndResolvePeoplePicker(fieldName, userAccountName) {
       var controlName = fieldName;
        var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
        var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
        var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
        peoplePickerEditor.val(userAccountName);
        spPeoplePicker.AddUnresolvedUserFromEditor(true);
    </script>
    but it is not working
    please help me

    Hi,
    According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
    To set "peoples or groups" field with current user "login name”,  you can use the below code:
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    function SetPickerValue(pickerid, key, dispval) {
    var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
    xml = xml + PreparePickerEntityXml(key, dispval);
    xml = xml + '</Entities>';
    EntityEditorCallback(xml, pickerid, true);
    function PreparePickerEntityXml(key, dispval) {
    return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
    function GetCurrentUserAndInsertIntoUserField() {
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
    Function.createDelegate(this, this.onFailure));
    function onSuccess(sender, args) {
    SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
    this._currentUser.get_title());
    function onFaiure(sender, args) {
    alert(args.get_message() + ' ' + args.get_stackTrace());
    ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
    </script>
    More information:
    http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Sharing iTunes on a single computer with multiple users

    Greetings,
    I have been troubleshooting a problem sharing iTunes on a single computer with multiple users that cropped up a few weeks ago and have not had very good luck.
    Several months ago I successfully set up my wife’s G4 Laptop (PowerPC processor) so that we could share iTunes on that computer. I had just gotten her an “My Book” external hard drive (Western Digital). The iTunes Library will go on this new unit because the internal drive was running out of room. I successfully set the privileges, moved the entire library onto a “Share” directory and everything worked fine.
    In this way, when I got a new CD I could add it to iTunes (under my login, administrator privileges) and she could access it (under her login) to listen to while working on the computer or using her iPod. This arrangement went well for quite awhile.
    About a month and a half ago, when I tried to launch iTunes from my login I received this message:
    “The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file.”
    I think the permissions must have changed when there was an update because my wife is pretty careful about what she does on her computer. Updates were the only thing I could think of that had changed since I had set her computer up. I also noticed that some of the iTunes defaults were different from the last time I had used it to add a CD.
    So, I did some reading and went back through the motions of trying to set it up again. I re-formatted the My Book hard drive to Mac OS Extended (Journaled) added the files back to the external, reset permissions on the external hard drive. (Owners: System, Access: read and write - Group: wheel, Access: read and write – Others: read and write).
    When I now launch iTunes under my login I get this message:
    “The operation cannot be completed because you do not have sufficient privileges for some of the items.”
    What gives? I am the original owner and have always had top-level privileges.
    Can someone point me to any articles or clues as to how I need to set-up iTunes on a single computer to be shared by more than one user? Also, I am considering upgrading to the newer system in a few weeks, so if a solution for OS X 10.5 is available, that would work too.
    Tim

    Was your wife logged into the libray at the time you tried to log in? I have had a similar problem and it was because another user was logged into the library when I attempted to. I got the permission denied banner.

  • HT1492 Hmm, I was deleting some files last night and when I came to booting up this morning my Macbookpro (5 years old) i was greeted with a user login screen? put in my password, but all i get is the space screen and no further action...? cant get apps o

    mm, I was deleting some files last night and when I came to booting up this morning my Macbookpro (5 years old) i was greeted with a user login screen? put in my password, but all i get is the space screen and no further action...? cant get apps o my bar

    Sounds like you may have deleted something you shouldn't have. Boot to an OS X DVD or a bootable backup, and using Disk Utility, do a repair disk, and while there repair permissions. Disconnect any peripherals, and reboot. If you get the same startup behavior, do a safe boot, by holding the shift key down when booting. If that works, try a normal boot. If neither step helps, you may need to relaod your operating system.

  • Iphoto/preview crashing with multiple user accounts

    Hi everybody,
    I'm stuck for a while now with my iMac and parental controlled user accounts.
    It's for a few months now iPhoto and Preview keep crashing at starting up in these other accounts.
    All works fine in my own administrator account. I'll copy a the first part of the crash state, maybe that will help.
    I think the problem started with connecting a photocamera (Sony W125) directly to the computer.
    It seems that viewing pictures (PDF/iphoto) is corrupted in this way.
    I'm working on an late 2011 iMac 2,5 Ghz Intel Core i5 /12GB 1333 / OSX 10.7.5
    Allready done:
    removed plists
    repaired permissions
    re-installed Lion
    re-installed iPhoto
    give full permissions too all other accounts (checking out parental control i.o.w.)
    made a new user acount with full permissions except administrator function (also crashes of iPhoto)
    tried some searching in Root-account but where afraid to damage stuff.
    looked around on the web but I couldn't find people with the same problem
    Thanks a lot for your help in advance.
    Michiel
    Process:         iPhoto [1058]
    Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         9.4.2 (9.4.2)
    Build Info:      iPhotoProject-710042000000000~2
    Code Type:       X86 (Native)
    Parent Process:  launchd [807]
    Date/Time:       2012-11-05 10:30:59.667 +0100
    OS Version:      Mac OS X 10.7.5 (11G63)
    Report Version:  9
    Interval Since Last Report:          247 sec
    Crashes Since Last Report:           2
    Per-App Crashes Since Last Report:   1
    Anonymous UUID: 19E6D82E-8DD9-4044-B141-C67D09268E1F
    Crashed Thread:  0 Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
    Exception Codes: 0x0000000000000001, 0x0000000000000000
    Application Specific Information:
    dyld: launch, running initializers
    /usr/lib/libSystem.B.dylib
    xpchelper reply message validation: code signature invalid
    The code signature is not valid: The operation couldn’t be completed. (OSStatus error 100005.)
    Application Specific Signatures:
    code signature invalid
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 libxpc.dylib                      0x96b2254e runtime_init + 2014
    1 libdispatch.dylib                         0x92d10c27 dispatch_once_f + 50
    2 libxpc.dylib                      0x96b22d92 _xpc_runtime_set_domain + 350
    3 libxpc.dylib                      0x96b1f9af _libxpc_initializer + 578
    4 libSystem.B.dylib                        0x94ba77a7 libSystem_initializer + 199
    5 dyld                                  0x8fef1203 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 251
    6 dyld                                  0x8fef0d68 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 64
    7 dyld                                  0x8feee2c8 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 256
    8 dyld                                  0x8feee25e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 150

    After searching the web and the discussion here, here's my minimal impact solution for multiple Macs with multiple users in a household:
    1) Set up Mac1 for myself only
    2) Set up Mac2 for the wife and kid
    3) Set up each Mac to backup to the Airport base station using Time Machine (this would create two separate backups on the Airport base station's drive, which from what I've read has its own problems)
    4) On Mac1 setup "empty user accounts" for the wife and kid. These will not have any files in them - just an access mechanism. If they want to access their files, they can use Time Machine's "The Browse Other Backup Disks Option" to get their file from Mac2, work on it and then drop it in the Shared Folder. Next time they are on Mac2, remember to copy the updated/created file from the Shared Folder into their Mac2 user account. If possible, get Time Machine to not backup the "empty user accounts".
    5) Do the same for me on Mac2.
    Not the most elegant solution, but until Apple get off their backside and make this seamless, I can't think of anything else :-( .
    P.S. iCloud is not a soluton since it costs hundreds of dollars a year, uses up intenet data allowance and is slow.

  • Time Capsule with multiple users. Data Safe?

    Hi.
    I was just wondering if the I use Time Capsule with multiple users (multiple macs) I believe the backups are all seperated and password protected. Am I right?
    But what about the migration assistant? Doesn't the migration assistant help you to transfer your data from one mac to your new one without asking for a password? So wouldn't it be easy to use the migration assistant to get data of another time capsul backup?
    At the work place of my girlfriend they are using time capsul, and I'm not sure if I would advise her to backup her data to that timecapsule. Ok you can exclude folders, but not the mailaccount.

    Youknowthebo wrote:
    Thanks for the reply.
    But isn't it possible to transfer data from an old user account to a new account with a different name? Wouldn't that overide the password prompt?
    No more or less than on your Mac.
    I mean I understand that if you migrate a user account from one mac to another you wouldn't gain access to the home folder of that user, but as I understood the migration assistant it is possible to migrate data to a folder of your choice. I did not try it yet but that's what I (maybe misunderstood) read here http://web.me.com/pondini/Time_Machine/19.html
    No. You can select which user accounts to transfer, but you can't transfer one user's data to another.

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • In trying to share music with multiple user accounts on one comp, I quit itunes, located my itunes media folder, moved it to a publicly accessible location. Problem is it didn't work and now I can't get it all back to the way it was.

    In trying to share music with multiple users on one computer, I followed the directions on "iTunes:How to share music between different accounts on a single computer" (http://support.apple.com/kb/ht1203). I did something wrong because i lost iTunes
    Tried to put files back, but it is not the same. Plugged in my ipod and it is not recognizing my computer.
    Can someone tell me where iTunes should be, and what sub files should be included with it. Thanks!

    If you are seeing the "Connect to iTunes" logo, then your device is in Recovery Mode, and you will need to restore it:
    If you can't update or restore your iOS device
    iOS: Back up and restore your iOS device with iCloud or iTunes
    Cheers,
    GB

  • New Mac User: iTunes Auth with multiple user accounts

    With a Mac with multiple user accounts, does EACH user account need to have iTunes authorized, or is iTunes authorized for an entire mac machine?

    So then I assume that iTunes will know then if each of the computer's user accounts has a different iTunes account?
    When you authorize an iTunes account on your computer, the authorization info is stored in \Users\Shared\. When you run iTunes, it looks there to see if it can play purchases. The purchase account info is embedded into each purchased file.

Maybe you are looking for