[Solved] ZFS data guest permissions after export

Discussion in 'Storage & Backup' started by Phobz, Aug 31, 2011.

  1. Phobz

    Phobz Member

    Joined:
    Sep 27, 2007
    Messages:
    149
    Location:
    Mel-bourn-e
    Been testing ZFS, ran into a bit of a snag.

    When i create my zpool on one server (using guestok=true for no account access to the share on windows) and then i export/import it to another server, i cant access the data that was on there because of permission error's.

    I can get access to it if i chmod the data, but surely this isn't suppose to happen and i missed a step or something?
     
    Last edited: Sep 1, 2011
  2. Stanza

    Stanza Member

    Joined:
    Jun 27, 2001
    Messages:
    2,899
    Location:
    Adelaide
    Who owns the folder above it?
     
  3. davros123

    davros123 Member

    Joined:
    Jun 18, 2008
    Messages:
    2,933
    no, it should not happen. Do you havethe sameowner and groups setup on the two servers (withthe same ownr and goup Id numbers)?
     
  4. davros123

    davros123 Member

    Joined:
    Jun 18, 2008
    Messages:
    2,933
    Hey Stanza...you beat me :)

    <hijack>
    What ya playing with at the moment...no, I mean on the server :)

    I'm farting about with iscsi and getting the serial port to passthrough so I can managage my USP using apcupsd...
    </hijack>
     
  5. OP
    OP
    Phobz

    Phobz Member

    Joined:
    Sep 27, 2007
    Messages:
    149
    Location:
    Mel-bourn-e
    Lol don't worry, you guys jogged my memory.

    I forgot to create a guest account on the servers for guest. So it's been making ephemeral ID's for the users, see:
    [​IMG]

    So, for anyone wondering how to do guest access, follow the zfs set commands HERE and then the idmap. Followed by making a guest account(useradd) on the server.

    That's the right way no?

    Cheers for the help!

    Davros, i'm running your favourite: S11E :leet:
    I'll post in your thread so this doesn't go off topic?
     

Share This Page

Advertisement: