Rowland, I remember now, you and I have been here before and I have lost the email. Due to the manner that linux handles backslashes "\" users need to backslash *around* the backslash you need for W10 like so, "\\\\FQDN" to get "\FQDN" on the W10 path? Therefore, the following is what I want: "--profile-path=\\dtmbr04.ad.dtntwk.work\profiles\sttest11 --home-directory=\\dtmbr04.ad.dtntwk.work\users\sttest11" So I need to send this: " --profile-path=\\\\dtmbr04.ad.dtntwk.work\\\profiles\\\sttest11.V6 --home-directory=\\\\dtmbr04.ad.dtntwk.work\\\users\\\sttest11" Did my brain remember correctly? On Fri, Oct 9, 2020 at 10:03 AM Rowland penny via samba < samba at lists.samba.org> wrote:> On 09/10/2020 15:19, Robert Wooden via samba wrote: > > This topic may have been discussed many times, sorry to repeat here. > > > > I have been trying various combinations of adding test users via ADUC. > The > > first three (3) added fine. Then the strange began. Many, many W10 client > > re-starts throughout these process to make client capture any changes > from > > servers. > > > > Could I get anyone to share the 'command string' you use as a starting > > point for the correct order of "switches" used for *samba-tool user add*? > > First the command you should be using is 'samba-tool user create' and > you can find the help for that by adding '-h' or '--help'. > > The standard command for creating a user in the same way that ADUC does is: > > samba-tool user create USERNAME PASSWORD --given-name=GIVEN_NAME > --surname=SURNAME > > You can add the profile & homedir paths at the same time by adding > '--profile-path=PROFILE_PATH --home-directory=HOME_DIRECTORY' to the > command above. The path for profile must exist on the server and the > base path for the homedir must also exist. There must also be the two > relevant shares on the server. > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 09/10/2020 16:52, Robert Wooden wrote:> Rowland, > I remember now, you and I have been here before and I have lost the email. > > Due to the manner that linux handles backslashes "\" users need to > backslash /around/ the backslash you need for W10 like so, "\\\\FQDN" > to get "\FQDN" on the W10 path? > > Therefore, the following is what I want: > ?"--profile-path=\\dtmbr04.ad.dtntwk.work > <http://dtmbr04.ad.dtntwk.work>\profiles\sttest11 > --home-directory=\\dtmbr04.ad.dtntwk.work > <http://dtmbr04.ad.dtntwk.work>\users\sttest11" > > So I need to send this: " --profile-path=\\\\dtmbr04.ad.dtntwk.work > <http://dtmbr04.ad.dtntwk.work>\\\profiles\\\sttest11.V6 > --home-directory=\\\\dtmbr04.ad.dtntwk.work > <http://dtmbr04.ad.dtntwk.work>\\\users\\\sttest11" > > Did my brain remember correctly?Yes, the backslash is treated as an escape character on Unix (for instance, if you wanted to echo a Dollar sign ($) you would have something like <echo "Computername\$">), so if you want use a '\', you need to double them. Rowland
Next question. (sorry) At the end of each path, should the end of the path be the username or "%username%" (like windows, will samba recognize the "%username%" like ADUC and insert the username?) On Fri, Oct 9, 2020 at 11:19 AM Rowland penny via samba < samba at lists.samba.org> wrote:> On 09/10/2020 16:52, Robert Wooden wrote: > > Rowland, > > I remember now, you and I have been here before and I have lost the > email. > > > > Due to the manner that linux handles backslashes "\" users need to > > backslash /around/ the backslash you need for W10 like so, "\\\\FQDN" > > to get "\FQDN" on the W10 path? > > > > Therefore, the following is what I want: > > "--profile-path=\\dtmbr04.ad.dtntwk.work > > <http://dtmbr04.ad.dtntwk.work>\profiles\sttest11 > > --home-directory=\\dtmbr04.ad.dtntwk.work > > <http://dtmbr04.ad.dtntwk.work>\users\sttest11" > > > > So I need to send this: " --profile-path=\\\\dtmbr04.ad.dtntwk.work > > <http://dtmbr04.ad.dtntwk.work>\\\profiles\\\sttest11.V6 > > --home-directory=\\\\dtmbr04.ad.dtntwk.work > > <http://dtmbr04.ad.dtntwk.work>\\\users\\\sttest11" > > > > Did my brain remember correctly? > > Yes, the backslash is treated as an escape character on Unix (for > instance, if you wanted to echo a Dollar sign ($) you would have > something like <echo "Computername\$">), so if you want use a '\', you > need to double them. > > Rowland > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >