Mount network volume: different users same credentials, see different shares

A set of network volumes on a NAS need to periodically be backed up to a local USB disk. Manually, I can mount most shares (from a Finder window). In a shell script I can list all files due (find) and use that list for backing up to a local USB volume (cpio). So far so good. However, I need to mount these network volumes first. The mount command doesn't seem to work for me.
How do I mount a network volume in a shell script?
Also I noticed that if under fast user switching user A logs in with credentials uName and uPassword, the NAS shows 6 shares to choose from. When user B on the same machine logs in with the same credentials uName and uPassword, only 5 shares are visible and one is not shown. It looks as if the credentials do not uniquely determine the volumes offered for mounting. Also, when user B mounts a share, it appears to be owned by user A (who is logged in but has not mounted any share on the NAS) rather than owned by B or by uName...
How do I mount this volume as user uName rather than A or B?
How can one uniquely determine the identity of the volume? Network volumes don't show UUIDs and the name given in the /Volume/ folder can change, as is discussed in message 11871367.

eljonco wrote:
I just checked: after a reboot, user A logs in (automatic login enabled), user A logs out, user B logs in, ls -a /Volumes only shows local HD and a USB HD. No network mounts there.
In the finder window, the NAS shows up on the left. Clicking it and entering credentials uName, uPassword, a list of five, not 6, items is offered for mounting. So your options 1 and 4 are then ruled out, unless an alias made by user A and copied to user B's home folder would still link to user A's mounting options.
Actually, only option 1 is ruled out. That Finder list is simply not reliable. It is likely cached somewhere and could be restored by deleting some hidden preference file. It regularly causes people to freak out when they see some sharepoint listed on a network that they have long since left.
If you did Go > Connect to Server in the Finder and typed in the location, you could still create an alias.
Once mounted one of 5 shares as uName with uPassword, an ls -al /Volumes shows the local drives and
drwx------@ 11 B staff <date> sharename
and all folders in sharename also show B:staff as user:group. I find that strange, as I did not log in to the share with credentials B, but with credentials uName. Anyhow.
The uName user is for the network share. When MacOS X mounts that, it gives it permissions appropriate for the user who did the mounting. If you did an NFS mount as root, the server would handle permissions via UNIX uid and gid. I'm really not familiar with the details of AFP.
As I read in a post about autoFS that 'cd /Volume/theHiddenShare' should magically mount that share, I gave it a shot. Alas, '/Volumes/theHiddenShare: No such file or directory'. Same long shot in the dark in the 'Go/Connect to' dialog gave 'The folder cannot be found'. Not surprisingly, I suppose.
Yes. That has to be setup
Here is what I've done to my /etc/auto_home:
# Automounter map for /home
#+auto_home     # Use directory service
# Get /home records synthesized from user records
#+/usr/libexec/od_user_homes
myserver.org -allow_other,reconnect,fstype=sshfs [email protected]:/home/me_remote
I'm not on a big network, so I've disabled the system functionality by commenting out "+auto_home" and "+/usr/libexec/od_user_homes". Now, the system doesn't manage /home and I am free to do with it what I want. This will mount the path "/home/myserver.org" connected to the "me_remote" user on "myserver.org". I'm using the funky MacFUSE sshfs filesystem. Your AFP file system should work much better. Your line would look something like this:
drive5 -fstype=afp uUser@MyLocalServer:/theHiddenShare
Run "automount -vc" to reset your automount system.
Next use Finder Go > Connect to Server and type in "afp://uUser@MyLocalServer:/theHiddenShare".
You want to mount the drive once so that you can store uPassword in your keychain.
Now unmount the drive.
The Finder mounts all go into /Volumes and, as you have discovered, can get themselves confused. This automount will be at "/home/drive5". All you have to do is enter that folder in the Finder and it will be automatically mounted. If you haven't used it for a while, it will be unmounted automatically.
You may have to play around with this a little. I don't have any network AFP share that I need to mount on a regular basis, so those parameters may need to be adjusted somewhat.

Similar Messages

  • I set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same ID). how do i consolidate the two users on my new mac book?

    i set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same apple ID). how do i consolidate the two users on my new mac book?

    Well if you use the Finder Go menu to Computer, a window opens up double click on your boot drive and then on Users folder, open the other user folder and open Public and drop your files into DropBox
    When you do this it will copy them and change the permissions and user assigned to it, so log into the other user and place them into your respective normal folders.
    Once you have all your files over and don't need the old user, use System Preferences > Accounts to delete it if you wish, however it's good two Admin accounts on the machine in case something bad happens in the other. Some people for security reasons on use a Standard account for most uses and a emergency Admin account.
    One can still do most Admin things in Standard user.

  • Auto-mount network volumes upon changing locations

    As I am shifting my Macbook between office and home and with working in office I need to access frequently into a few network locations which I ended up mounting them regularly manually.
    Any solution on that so I can pre-set what volumes to mount upon changing locations?
    Or perhaps auto-mount network volumes upon joining a particular SSID?

    I'm sure there's a way to Script it, but that being beyond my capabilities, here's how I'd do it using Dynamic mounts...
    Make two New Folders on the Desktop, (Office and Home might be good names).
    After Mounting the Volumes at work, drag the Globe Icons to the Office Folder, after mounting the Shares at home, drag them to the Home folder, (you can even rename them once in the folders).
    Drag those two Folders to the Dock between Applications and Trash to have two popup menus for nearly instant connecting.

  • Share a mounted AFP volume across user accounts on the same computer

    Hi all,
    I have a Mac Mini with several attached disks (HFS+). I'm using it as a file server, to share these disks over my home network. I'm mounting these as AFP server volumes on a second computer (MacBook Pro). This all works fine. Both are running MacOS 10.6.2.
    The problem is that my MacBook Pro has two user accounts, and when I mount AFP volumes under one user, the other user can't access them. It seems that mounted AFP volumes are assigned read/write permissions for only the user that mounted them.
    Ideally, I'd like to mount a volume once, and have it accessible from both user accounts. I've tried changing permissions in the AFP volume's Get Info window, but the changes don't take effect.
    Does anyone know how to do this? Thanks!!
    cjb

    Rick
    I'm no expert in this department, but I believe that your question was the reason Apple started the 'Group' calendar. Check this page out:
    http://www.mac.com/WebObjects/Groups.woa/wa/afterLogin?cty=US&aff=consumer&lang= en
    Perhaps your answer lies within.
    * Guy

  • Network volumes with the same name

    Hi everybody.
    I recently got a Mac at the office. Yay! But I have an issue with network volumes. There are several machines I need to connect to using smb/cifs. Two of our development servers (Linux servers using smb/cifs) are configured to share each user's home directory. Naturally, my user name on both machines is the same, and therefore so is the name of the smb share. Unfortunately, MacOS X uses the share name as the volume name when it connects. This means I have two volumes with the same name, so I can't make any aliases or have any quick access to them. That's because aliases resolve to the first of them which was mounted, regardless of which of them they were made to originally.
    Other people in the office use Windows to access the shares, which poses no problem because in Windows you either give the full path of the share (including host name, which makes the paths distinct), or map a distinct drive to the share. I also mount them from my Linux, but on Linux you explicitly give the mount point, and thus make it distinct.
    Any way to make the volumes distinct on the Mac? Otherwise to make aliases resolve correctly in such a setup?

    there are several ways you can deal with this. first, you can use command line mount_smbfs command. it does let you specify a mount point. you can easily automate the process of creating a mount point and mounting the share using automator so you don't have to do it by hand every time. and you can also add the automator workflow to mount the shares to your login items. then it will happen automatically on every login. lastly, you can use autofs or add entries to /etc/fstab to automount the smb shares on startup. both methods let you specify mount points too. see this link for details
    http://rajeev.name/2007/11/23/autofs-goodness-in-apples-leopard-105-part-ii/

  • Sharing Photos: Different Users, Same Computer

    So far, I've tried some suggestions found in other postings, but I still can't share some photo libraries between different users on the same computer. I started an account for my son. Sharing was enabled in both iPhoto Apps. I've tried locating the libraries in a Shared folder and putting them in a folder not associated with a user. Opening a port 8770 in the Sharing/Firewall window didn't change anything either. No matter what, when I open my son's iPhoto and try to Add To Library, some libraries will import and others have a circle with a red line next to them. Those will not import and I can't figure out what the difference is between them. Any thoughts?
    g4 ibook   Mac OS X (10.3.9)  

    Hi chris,
    these are the links I have for sharing. You might want to try the ACL way.
    SHARING IPHOTO LIBRARIES
    Sharing libraries between users on the same local network
    You can also share a library on the same machine between users the same way.
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    -Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing links from Apple....
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos
    SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
    You can try one of these three methods:
    1- Use iPhoto Library Manager-the paid version
    The documentation page will give instructions on how it is done.
    2- Sharing one iPhoto library between several users on one machine
    3- Share an iPhoto Library in tiger Using ACL's
    4- I have also read about ShareAlike
    There is no other info on the site about how it works.
    I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.
    Lori

  • User that can see different schemas

    Dear Gurus,
    In my db I've 2 schemas with 2 different user each one....so:
    Schema A with user A_user
    Schema B with user B_user
    Now I created a new user's schema.
    Schema C with user C_user
    I need to allow C_User to see schema A and Schema B in read Only.
    How can I do it?
    Please let me know
    regards

    Hi,
    You've got the basic idea.
    Remember that names in quotes are case-sensitive. You probably need:
        FOR r IN (SELECT OWNER, TABLE_NAME FROM ALL_TABLES WHERE owner='A_USER')  -- Not ... 'A_User'This assumes SYSTEM has the necessary privileges to grant privileges on a_user's tables. If that's not the case, you can have SYSTEM create the role, but have a_user grant the privilleges to the role.
    Where I work, typically, a DBA creates the role, then grants it to the owner WITH ADMIN OPTION
    GRANT  a_readonly  TO  a_user  WITH ADMIN OPTION;Of course, a_user doesn't need the role to see the tables, but this gives a_user the ability to grant the role (or revoke it from) other users without getting the DBA involved. A_user then does steps (2) and (3).
    A small thing: I would call the role A_ReadOnly, or something with A in the name, not C.
    The important thing about the role is that it allows grantees to see A's tables.
    The fact that the role was made for C_User is not so important. The role will remain essentially the same if other users get the role, or C_User is dropped.
    Edited by: Frank Kulash on Jun 3, 2009 11:45 AM

  • Mounting Network Volumes in the Command line

    What is the command for mounting a Network volume in a command line.... Plus when done this way will it get the password from keychain?

    The command in question is mount:
    <pre class=command>mount -t type server:/path/to/share /path/to/mountpoint</pre>
    This will mount the share /path/to/share from server server using protocol type (e.g. 'afp', 'nfs', 'smb'). The sharepoint will be mounted at the local /path/to/mountpoint
    mount will not use the keychain. If you require passworded access you can either include the username and password in the command, or switch to using an AppleScript solution which can use the keychain, and can be involked via osascript:

  • Un-mounting network volumes with command line

    Does anyone know how to unmount a network volume from the command line in OSX. Using umount deletes the mount but not the mount point. I can't get diskutil or disktool to do it.

    I don't use smb much, but it does look like there's something funny going on. On my system, smb shares mounted from the "Finder" are unmounted normally (mountpoint deleted, "Finder" icon gone) using: 'umount', or eg.<pre>osascript -e 'tell application "Finder" to eject disk "volumename (not mountpoint name)"</pre>But shares mounted using 'mount_smbfs' behave as you describe with respect to the "Finder". But I couldn't reproduce the ".autodiskmounted" file issue in my limited testing involving "normal" use. Sorry, I don't have much more to add - maybe someone more familiar with smb can comment...

  • Web authentication different user same client

    Hi,
    We are currently building a guest WLAN. The authentication works with LDAP via web authentication. Users can log on via smartphones and Windows laptops. Now we have a little problem with the Windows laptops, discovered in the testing phase. When user A is successful logon to the laptop through web authentication and then log off the laptop. User B can simply work under the same credentials of user A, without problems. This is not desirable, another user must then log in to the laptop with own credentials.
    The WLC 5508 remember the client MAC address, not the user.
    Any tips?
    Thank you!

    When the user logs off the session remains active on the WLC.
    We have the "User Idle Timeout" set on 100000 sec. Unchecked the "Enable Session Timeout". This to logout users after a certain time via a time trigger. Guests 24 hours, students half year, staff 1 year. (If the WLC not often need to restart).
    For non domain devices this is not a problem, since users are not dependent on the Windows domain then.
    How can we debug users, lets say user A en B on one laptop?

  • Project Server 2010 - Different Schedule Dates for Different Users -- Same File

    We have an issue regarding users viewing the same schedule, different machines.
    The PMs have a schedule that was built in 2007 by the offshore team.  We are running Project Server 2010 corporate, and they the PMs here on site have Project Professional 2010.  Within the last couple of weeks, the PMs have noticed changes in
    the dates.
    When I open the schedule, I see the expected dates rendered in both PWA and Project Professional.  Both draft and published versions are the same regardless of where the schedule is opened for editing.  There are two PMs managing the schedules. 
    One sees what I see--the expected dates.  The other sees differences in dates--months, in fact.  Scheduled end date is 10/22/2013.   When the second PM opens the schedule, he sees a scheduled end date of 2/17/2014.
    I advised them that the offshore team needed to upgrade to 2010 due to the differences between 2007 and 2010.  Additionally, and I could be wrong, having the server run in compability mode for so long (the upgrade was done in May 2013), is not ideal. 
    (Offshore team has since updated to 2010.)
    Any thoughts on what could be causing this issue?  Corrupt version of Professional?  Settings askew?
    Thank you,
    L.D.

    My bad, I didn't know that you were not using Project Server.
    Then the file might be corrupted.
    Try the
    XML export and the
    save for sharing method to repair it.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Two different users, same contacts, calendar, etc.

    Howdy everyone!  I need some help.  First, I consider myself fairly smart when it comes to iOS products, etc. so I've tried to mess with this on my own before reaching out to those that are smarter than me.
    First, I upgraded my wife's phone and my phone to iOS 8 last night, seamless process.
    We share the same contacts and calendar so we've always have used the same icloud account.
    Main reason is so that we can share contacts, calendar, etc.  We also share the same itunes account so that when we purchase an app or a song, etc. it's on all our devices without having to purchase it twice.
    Now, with the new family sharing this isn't an issue.
    My question is, well many questions are, now it's giving me troubles.  It thinks my phone is my wife's phone and "find my friends" aren't working.  It says "can't share location with yourself".
    Also, I'm not opposed to using two different iclouds because we have family sharing now, but it's imperative that we see each others location for safety concerns, contacts and calendar.
    I can't figure the best way to set this up to fit our needs.
    Recap...
    Want to share calendar, contacts.
    Want to take advantage of family sharing
    Want to us

    figured out how to share the calendar so this issue is fixed.  Figured out how to do family sharing, so this too is fixed.  I'd like to figure out a way to share contacts so we pool from the same address book.  Any help with this would be appreciated!

  • Mounted network volume info

    We have two file servers each with multiple shares. I've been looking for a method by which applescript examines all mounted volumes on the desktop and determines which network shares come from which file server. No luck so far. I realize that I could just build a table (we're only talking about a few dozen shares on two servers), but I'd rather have a dynamic solution for a variety of reasons. Anybody have any suggestions?
    Thanks.

    Hello StiffMittens,
    You may possibly be able to extract server information from alias of shared volume.
    Like the following. The first two are getting dump data of alias record, the last one is using 'alias description for' command of Satimage OSAX.
    Only if they contain some useful information to identify server...
    Good luck,
    H
    --SCRIPT1
    set a to "AFP_VOL:" as alias
    return {{«class TEMP»:a}} as string --record dump (undocumented method)
    --END OF SCRIPT1
    --SCRIPT2
    set a to "AFP_VOL:" as alias
    set fp to "" & (path to "desk") & "alias dump.txt"
    writeData(fp, a, {_append:false})
    on writeData(fp, x, {append:append})
      text fp: output file path
      data x: anything to be written to output file
      boolean _append: true to append data, false to replace data
    local a
    try
    open for access (file fp) with write permission
    set a to fp as alias
    if not _append then set eof a to 0
    write x to a starting at eof
    close access a
    on error errs number errn
    try
    close access file fp
    on error --
    end try
    error "writeData(): " & errs number errn
    end try
    end writeData
    --END OF SCRIPT2
    --SCRIPT3
      using Satimage OSAX
      http://www.satimage.fr/software/en/downloads_software.html
    set a to "AFP_VOL:" as alias
    return alias description for a
    --END OF SCRIPT3
    Message was edited by: Hiroto

  • Flash player not installing correctly as different user, same computer

    I can view videos as one user on the same computer running IE9 windows 7, user is admin, but as another admin user, it keeps asking to install Adobe flash player, which I've done a million times, and it's still not working. It will not let me view any videos. Just a blank screen with "install adobe flash player"  I've checked the IE security settings, they are the exact same. I have unchecked active x filter, nothing changed. I have reset IE settings to default, still no change.  Firefox asked for adobe flash install, it went right through and works fine.  I can find the adobe flash program under control panel, remove programs, but not under the normal  start, programs, section.  Wierd! Any ideas would be helpful, I'm about top pull my hair out because it makes no sense.  This is a BRAND new computer, so all graphics drivers should be fine!

    Perhaps the Shockwave Flash Object add-on is disabled on the other user's account?
    nevrenufdogs wrote:
    This is a BRAND new computer, so all graphics drivers should be fine!
    Since it works fine on one account, this is probably not a driver issue.  But (just F.Y.I.) when I bought my new Dell computer three months ago, almost all device drivers on it were outdated.

  • We have two Ipod Touches in the Home and two Ipads. Right now one of the Ipads has a separate user indentity. Can both Ipods be used to use the same library with different user ids's and different passwords.

    We have two Ipod touches and two Ipads in our home. Right now both Ipods are using the same used id and password to access itunes and sync music. But recently both os us have downloaded the Ibooks segment to our Ipads and now the only way to sync the second Ipad for Ibooks is to use the same used id and password. But the problem is that with our two Ipads in the home, we established two separate used ids and passwords one for each. Is there a way for me to still use the second Ipod touch and the second Ipad with completely separate userids and passwords. In other words to share the music library I have accumulated and yet to sign in each with our separate identities. That way the Ipads can sync and the Ipod touches can sync. Is this possible.

    This is to avoid piracy. What could happen is, people could buy music, and give it away for free online. Usually it is then you buy a complete album off iTunes that it will only be available on one device. It is tied to that account, and the device must be registered to that account to listen to it.

Maybe you are looking for