The "homes" folder in Samba4?

Charles Tryon charles.tryon at gmail.com
Wed Feb 8 11:52:30 MST 2012


While it clearly works to simply export a "home" directory and then do
whatever is necessary to create the home directories, this isn't quite what
I was looking for.  Previously in Samba3, you could create a "homes"
directory which would then be mapped to the user's name.  For example, if a
user named "billy" mapped to the share: \\samba\billy (or \\samba\%U), the
Samba server actually mapped to the home directory: /home/billy.  It was a
shortcut for creating name specific shares without needing to put every
single name in the config.  Effectively, this seems to be the same as
sharing the /home directory and mapping to the person's name under that
folder: \\samba\home\billy.  The difference may be in how the admin tool
does or does not automatically create the home dir with the correct
permissions at the time the user is created.

On Wed, Feb 8, 2012 at 8:30 AM, Ricky Nance <ricky.nance at weaubleau.k12.mo.us
> wrote:

> I think that is by design, if you look around there are some vb scripts
> that will create the user and homedir and set the permissions, but if you
> create the user in AD management, their home dir doesn't get created until
> you modify the user (you can highlight several users and do them all at
> once). When AD Management creates the home dir, it gets the correct
> permissions.
>
> On Tue, Feb 7, 2012 at 7:44 AM, Aaron E. <ssureshot at gmail.com> wrote:
>
> > Ricky,
> >
> > I'm just curious since I was using logon script to create the home
> > directory's it was creating them with the proper permissions for the user
> > to access. With this method it seems that I have to manually modify the
> > owner of the directory after user creation. Am I missing something or is
> > this by design?
> >
> > Thanks
> > Aaron
> >
> >
> > On 02/06/2012 05:38 PM, Ricky Nance wrote:
> >
> >> Here is how my homes is setup:
> >>
> >> [homes]
> >>         directory_mode: parameter = 0700
> >>         read only = no
> >>         path = /home
> >>         csc policy = documents
> >>
> >>
> >> I map that by using net use h: \\server\homes\%USERNAME%
> >>
> >> One thing this allows is for the Administrator user to set permissions
> for
> >> any and all the folders, when you create a user in AD Management, if you
> >> add \\server\homes\%USERNAME% to the home directory AD will create the
> >> directory for the user.
> >>
> >>
> >> **** I always forget to hit reply to all !!!!
> >>
> >> On Mon, Feb 6, 2012 at 3:17 PM, Charles Tryon<charles.tryon at gmail.com
> >**
> >> wrote:
> >>
> >>  Does Samba4 support the special user mapping functionality of the
> "homes"
> >>> directories, or do you still need to implement that with a Samba3
> server
> >>> joined to the domain?
> >>>
> >>>
> >>> --
> >>>    Charles Tryon
> >>> ______________________________**______________________________**
> >>> _____________
> >>>  “Risks are not to be evaluated in terms of the probability of success,
> >>> but in terms of the value of the goal.”
> >>>                - Ralph D. Winter
> >>>
> >>>
> >>
> >>
> >> --
> >>
> >>
> >
>
>
> --
>



-- 
    Charles Tryon
_________________________________________________________________________
  “Risks are not to be evaluated in terms of the probability of success,
but in terms of the value of the goal.”
                - Ralph D. Winter


More information about the samba-technical mailing list