Results 1 to 1 of 1

Thread: %U is not working in [homes]

  1. #1
    Join Date
    Dec 2013
    Beans
    3

    %U is not working in [homes]

    I'm trying to setup shadow_copy2 mechanism for [homes] share.
    First, for simplicity I made the following settings in /etc/samba/smb.conf:
    Code:
    ...
    [homes]
       comment = Home Directories
       browseable = no
       inherit acls = Yes
       follow symlinks = yes
       wide links = yes
       vfs objects = shadow_copy2
       shadow: snapdir = /srv/shadows/users/john
       shadow: sort = desc
    # shadow: format = @GMT-%Y.%m.%d-%H.%M.%S
       read only = no
       create mask = 0700
       directory mask = 0700
       valid users = %S
    ...
    and it worked perfectly, when I logged in as john: I could perfectly see "Previous versions". Now I want to be able to login as any user, so I changed snapdir to .../%U:
    Code:
    ...
    [homes]
       comment = Home Directories
       browseable = no
       inherit acls = Yes
       follow symlinks = yes
       wide links = yes
       vfs objects = shadow_copy2
       shadow: snapdir = /srv/shadows/users/%U
       shadow: sort = desc
    # shadow: format = @GMT-%Y.%m.%d-%H.%M.%S
       read only = no
       create mask = 0700
       directory mask = 0700
       valid users = %S
    ...
    And this way it does not work, even if I log in as john. What could I do wrong?
    I'm on ubuntu server 12.04x64, smbd version 3.6.3
    Last edited by daylight2; January 3rd, 2014 at 02:54 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •