• Configuring Backup Operator in smb shares

    From Nick Howitt@21:1/5 to All on Thu Mar 2 03:14:57 2023
    Newbe to the group here and very new to Solaris as well

    I am trying to set up smb shares such that one user is "backup operator" so can back up all files in a share whether or not he has access to the files. The server is in WORKGROUP mode.

    I have added a enabled user, adjusted pamd/other and reset their password: smbadm enable-user myuser
    smbadm add-member -m myuser "backup operators"

    But the user still cannot read files he does not have access to in the underlying zfs file system.

    I have also tried creating my own group with backup permissions:
    smbadm create-group -d "Backup" mybackup
    smbadm set-group -p backup=on mybackup
    smbadm add-member -m myuser mybackup

    This also does not appear to work. Can it ever work? If so, how?

    --
    Find us at:


    <https://twitter.com/elcom>    <https://www.linkedin.com/company/elcom-inc.>   
    Glasgow / London / 
    Liverpool / Redditch / USA

    <https://us06web.zoom.us/webinar/register/6516729155569/WN_P-WUPr67SSKqmkwUax7e-Q>

    Elcom International, Inc. is a Delaware corporation registered in the
    U.S.A. with a Federal ID number of 04-3175156.  Elcom Systems Limited is registered in England and Wales with Company Number 02838561 and Elcom
    Funding Solutions is registered in England and Wales with Company Number 09349933.  Their registered office is at Orion House | 5 St Martin’s Lane |
    London | WC2H 9AE | UK



    The contents of this e-mail and any attachments
    may be confidential and/or privileged and are intended for the named recipient only.  If it has come to you in error, you should not use, distribute or show any of its content to any other person without the
    express permission of the sender.  If you are not the intended recipient or responsible
  • From Nick Howitt@21:1/5 to All on Thu Mar 2 03:21:23 2023
    Newbe to the group here and very new to Solaris as well

    I am trying to set up smb shares such that one user is "backup operator" so can back up all files in a share whether or not he has access to the files. The server is in WORKGROUP mode.

    I have added a enabled user, adjusted pamd/other and reset their password: smbadm enable-user myuser
    smbadm add-member -m myuser "backup operators"

    But the user still cannot read files he does not have access to in the underlying zfs file system.

    I have also tried creating my own group with backup permissions:
    smbadm create-group -d "Backup" mybackup
    smbadm set-group -p backup=on mybackup
    smbadm add-member -m myuser mybackup

    This also does not appear to work. Can it ever work? If so, how?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YTC#1@21:1/5 to Nick Howitt on Sat Mar 11 10:25:40 2023
    On 02/03/2023 11:21, Nick Howitt wrote:
    Newbe to the group here and very new to Solaris as well
    And b now you will have seen that it does not get a lot of traffic here :-(


    I am trying to set up smb shares such that one user is "backup operator" so can back up all files in a share whether or not he has access to the files. The server is in WORKGROUP mode.

    I have added a enabled user, adjusted pamd/other and reset their password: smbadm enable-user myuser
    smbadm add-member -m myuser "backup operators"

    But the user still cannot read files he does not have access to in the underlying zfs file system.

    I have also tried creating my own group with backup permissions:
    smbadm create-group -d "Backup" mybackup
    smbadm set-group -p backup=on mybackup
    smbadm add-member -m myuser mybackup

    This also does not appear to work. Can it ever work? If so, how?

    Been a while since I did anythng with SMB and Solaris, but yes it does work.

    Best place to start will probably be here https://docs.oracle.com/en/operating-systems/solaris/oracle-solaris/11.4/manage-smb/managing-smb-shares.html



    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Howitt@21:1/5 to All on Sat Mar 11 06:16:05 2023
    On Saturday, 11 March 2023 at 10:25:45 UTC, YTC#1 wrote:
    On 02/03/2023 11:21, Nick Howitt wrote:
    Newbe to the group here and very new to Solaris as well
    And b now you will have seen that it does not get a lot of traffic here :-(

    I am trying to set up smb shares such that one user is "backup operator" so can back up all files in a share whether or not he has access to the files. The server is in WORKGROUP mode.

    I have added a enabled user, adjusted pamd/other and reset their password: smbadm enable-user myuser
    smbadm add-member -m myuser "backup operators"

    But the user still cannot read files he does not have access to in the underlying zfs file system.

    I have also tried creating my own group with backup permissions:
    smbadm create-group -d "Backup" mybackup
    smbadm set-group -p backup=on mybackup
    smbadm add-member -m myuser mybackup

    This also does not appear to work. Can it ever work? If so, how?
    Been a while since I did anythng with SMB and Solaris, but yes it does work.

    Best place to start will probably be here https://docs.oracle.com/en/operating-systems/solaris/oracle-solaris/11.4/manage-smb/managing-smb-shares.html



    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/

    Thanks for the reply. I am coming to the conclusion that it works but my testing/assumptions were faulty. I have been following the article you linked to.

    The problem, I think, was my testing. I was testing by trying to copy a file out to my desktop using Windows Explorer but it fails. I then eventually tested with the company backup solution, Arcserve, and it worked. This suggests to me that in Windows a
    file backup operation is different from a copy operation. I am not sure otherwise why it works with one method and not the other. I got it working using the built-in "backup operators" so I didn't bother going down the custom group method.

    Nick

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YTC#1@21:1/5 to Nick Howitt on Sat Mar 11 16:43:47 2023
    On 11/03/2023 14:16, Nick Howitt wrote:
    On Saturday, 11 March 2023 at 10:25:45 UTC, YTC#1 wrote:
    On 02/03/2023 11:21, Nick Howitt wrote:
    Newbe to the group here and very new to Solaris as well
    And b now you will have seen that it does not get a lot of traffic here :-( >>>
    I am trying to set up smb shares such that one user is "backup operator" so can back up all files in a share whether or not he has access to the files. The server is in WORKGROUP mode.

    I have added a enabled user, adjusted pamd/other and reset their password: >>> smbadm enable-user myuser
    smbadm add-member -m myuser "backup operators"

    But the user still cannot read files he does not have access to in the underlying zfs file system.

    I have also tried creating my own group with backup permissions:
    smbadm create-group -d "Backup" mybackup
    smbadm set-group -p backup=on mybackup
    smbadm add-member -m myuser mybackup

    This also does not appear to work. Can it ever work? If so, how?
    Been a while since I did anythng with SMB and Solaris, but yes it does work. >>
    Best place to start will probably be here
    https://docs.oracle.com/en/operating-systems/solaris/oracle-solaris/11.4/manage-smb/managing-smb-shares.html


    Thanks for the reply. I am coming to the conclusion that it works but my testing/assumptions were faulty. I have been following the article you linked to.

    The problem, I think, was my testing. I was testing by trying to copy a file out to my desktop using Windows Explorer but it fails. I then eventually tested with the company backup solution, Arcserve, and it worked. This suggests to me that in Windows
    a file backup operation is different from a copy operation. I am not sure otherwise why it works with one method and not the other. I got it working using the built-in "backup operators" so I didn't bother going down the custom group method.


    When I have had to work with it in the past it has been just serving ut
    a mount, ZFS has defo made life easier, but SMB is always a PITA.


    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)