Skip to content

www.rolfje.com

Connecting with different users to 1 server (2)

Posted on 2006-04-28 By rolfje No Comments on Connecting with different users to 1 server (2)

This is a simple followup after my last post. Pim did also look into this, and made a script which doesn’t pop up finders by simply calling “mount”. There is only one minor glitch: the script pops up an error when the mount already exists. With my brilliant programming expertise, I quickly solved that:

try
	mount volume "cifs://KAGE/iTunes" as user name "iTunes" 
                                          with password "yourpasswordhere"
	mount volume "cifs://KAGE/incomming" as user name "Guest"
	mount volume "cifs://KAGE/foto" as user name "Guest"
on error errText number errNum
	(* Not the nice way, simply ignore errors. If the mount did
	   not work, the user needs to see what is going on. How?
	   Use Finder to mount, and it will give you the error *)
end try

This script will try to mount the drives, ignoring errors. Replace the servernames, usernames and passwords with your own. What you can do is run the script at logon, or every minute in a cron job. I checked /var/log/system.log, but the script does not generate errors there.

At the rate we’re going, maybe we’ll even solve the “re-mount drives on return from sleep” problem. Let’s see if we can find a wakeup event on which we can run the script.

Apple, Software

Post navigation

Previous Post: Connecting with different users to 1 server
Next Post: Apple OS X crash when importing in iMovie

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

           

Recent Comments

  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?
  • Hans j on 1N4148 diode as RF switch
  • Roaming Rhonda on DLNA on OSX, done right
  • Frans on How to fix a Krups XN2001 Nespresso machine

Tags

Anonimatron Apple backup design DIY DRM eclipse environment Fun gmail google hacking hamradio Hardware helicopter iphone ipod iTunes Java Keynote maven modelling motorcycle music news opinion oracle osx photo photography programming repair review security Software Steve Jobs T-Mobile technology Time Machine Ubuntu usability Utilities vacation windows Workshop

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (14)
  • Software (134)
  • Uncategorized (65)
  • Workshop (20)

Archives

Copyright © 2025 www.rolfje.com.

Powered by PressBook WordPress theme