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. In one case, create the user, give him/her a password. Login from W10 client. Logout of W10 client. Return to ADUC, add profile path. Back to W10 client, login. Check creation of profile on member server path location. Sometimes, yes and sometimes no it is not created. In the situation where the W10 client login profile *did populate* on the member server, I logout. Go back into ADUC and give the "home" folder (redirected folders) a member server path. Again sometimes it populates the member server and sometimes not. I would prefer to learn how to do this with samba-tool. I have no problem creating a new user via samba-tool. It is the addition of a profile path and "user" (home?) folder path. Do you add a bash shell? And what is the correct order of commands for "samba-tool user add"? Essentially I would like to try to duplicate the options ADUC creates when adding a user. (As ADUC appears to not be working properly from time to time.) As yet, I have not determined a definitive sequence that I *can reproduce* to diagnose what is going wrong. Sometimes everything (profiles and redirected folders) works and sometime one or the other or both fail. All created users get UID (via samba-tool) and are members of a group with a GID. 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*?
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
If you use windows ADUC, i do recommend to this on Win7PC. Because thats the only way (for now) that automaticly sets the last used UID/GID +1 for the next user. - Create user in ADUC - If backend AD is used (as your do) set UID/GID and Homedir (the linux path) and shell - Now add userHome and userProfile in ADUC. \\server.fqdn\users\%username% \\server.fqdn\profiles\%username% The user homedir is now created. (when you klik Apply/Ok) The user profiles will be created when you logout a PC. I hope that helps a bit. But yes, a full setup without windows tools, is what im working to myself also. On the point, some folders are created, some not. Thats because you - Create user in ADUC - Now add userHome and userProfile in ADUC. \\server.fqdn\users\%username% \\server.fqdn\profiles\%username% - set UID/GID and Homedir (the linux path) and shell You MUST set UID/GID before you apply in ADUC for the userhomedir and profile dir. I hope this helps a bit. ( at least for now ) Have a great weekend. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Robert Wooden via samba > Verzonden: vrijdag 9 oktober 2020 16:20 > Aan: SAMBA MailList > Onderwerp: [Samba] creating and copying users > > 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. > > In one case, create the user, give him/her a password. Login from W10 > client. Logout of W10 client. Return to ADUC, add profile > path. Back to W10 > client, login. Check creation of profile on member server > path location. > Sometimes, yes and sometimes no it is not created. > > In the situation where the W10 client login profile *did > populate* on the > member server, I logout. Go back into ADUC and give the "home" folder > (redirected folders) a member server path. Again sometimes it > populates the member server and sometimes not. > > I would prefer to learn how to do this with samba-tool. I > have no problem > creating a new user via samba-tool. It is the addition of a > profile path > and "user" (home?) folder path. Do you add a bash shell? And > what is the > correct order of commands for "samba-tool user add"? > > Essentially I would like to try to duplicate the options ADUC > creates when > adding a user. (As ADUC appears to not be working properly > from time to > time.) > > As yet, I have not determined a definitive sequence that I > *can reproduce* > to diagnose what is going wrong. Sometimes everything (profiles and > redirected folders) works and sometime one or the other or both fail. > > All created users get UID (via samba-tool) and are members of > a group with > a GID. > > 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*? > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
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 >
Louis, The issue I am having is ADUC doing strange things like sometimes creating the profile *.V6 file and sometimes not.And the issue is random. No reproducible string as yet. Sometimes creates the profile, file and not the home directory and other times not the profiles, file and creates the home directory. And yes, my created users get a UID added via samba-tool and check to make sure they are members of "domain users". It is enough to frustrate me that I want to try samba-tool again. (Waiting for Rowland answer, please.) On Fri, Oct 9, 2020 at 10:22 AM L.P.H. van Belle via samba < samba at lists.samba.org> wrote:> If you use windows ADUC, i do recommend to this on Win7PC. > Because thats the only way (for now) that > automaticly sets the last used UID/GID +1 for the next user. > > - Create user in ADUC > - If backend AD is used (as your do) > set UID/GID and Homedir (the linux path) and shell > - Now add userHome and userProfile in ADUC. > \\server.fqdn\users\%username% > \\server.fqdn\profiles\%username% > > The user homedir is now created. (when you klik Apply/Ok) > > The user profiles will be created when you logout a PC. > > I hope that helps a bit. > But yes, a full setup without windows tools, is what im working to myself > also. > > On the point, some folders are created, some not. > Thats because you > - Create user in ADUC > - Now add userHome and userProfile in ADUC. > \\server.fqdn\users\%username% > \\server.fqdn\profiles\%username% > > - set UID/GID and Homedir (the linux path) and shell > > You MUST set UID/GID before you apply in ADUC for the userhomedir and > profile dir. > > I hope this helps a bit. ( at least for now ) > > Have a great weekend. > > Greetz, > > Louis > > > > -----Oorspronkelijk bericht----- > > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > > Robert Wooden via samba > > Verzonden: vrijdag 9 oktober 2020 16:20 > > Aan: SAMBA MailList > > Onderwerp: [Samba] creating and copying users > > > > 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. > > > > In one case, create the user, give him/her a password. Login from W10 > > client. Logout of W10 client. Return to ADUC, add profile > > path. Back to W10 > > client, login. Check creation of profile on member server > > path location. > > Sometimes, yes and sometimes no it is not created. > > > > In the situation where the W10 client login profile *did > > populate* on the > > member server, I logout. Go back into ADUC and give the "home" folder > > (redirected folders) a member server path. Again sometimes it > > populates the member server and sometimes not. > > > > I would prefer to learn how to do this with samba-tool. I > > have no problem > > creating a new user via samba-tool. It is the addition of a > > profile path > > and "user" (home?) folder path. Do you add a bash shell? And > > what is the > > correct order of commands for "samba-tool user add"? > > > > Essentially I would like to try to duplicate the options ADUC > > creates when > > adding a user. (As ADUC appears to not be working properly > > from time to > > time.) > > > > As yet, I have not determined a definitive sequence that I > > *can reproduce* > > to diagnose what is going wrong. Sometimes everything (profiles and > > redirected folders) works and sometime one or the other or both fail. > > > > All created users get UID (via samba-tool) and are members of > > a group with > > a GID. > > > > 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*? > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >