Prior to samba-2.2.2 I used the code below to provide NT roaming profiles. This seems to have stopped working in 2.2.2. [global] logon path = \\mmri1001\nt-%U\NTProfile [nt-%U] # NT profile root directory # We use the user's home directory as the NT profile root directory # and then the subdirectory NTProfile is created within this root. # This directory must be writeable by the user because NT tries to # create the directory ntprofile.pds in this root. comment = NT profile root directory path = /home/%U browseable = no writeable = yes nt acl support = no preexec = /usr/local/samba/bin/create-profile %U %G %P/NTProfile %a %h %m Should this work or was I just lucky that it used to work? Is it possible to use %U in a share name like this so that the share name is defined by the name of the connecting user? -- Todd Pfaff \ Email: pfaff@mcmaster.ca Computing and Information Services \ Voice: (905) 525-9140 x22920 ABB 132 \ FAX: (905) 528-3773 McMaster University \ Hamilton, Ontario, Canada L8S 4M1 \
On Tue, 16 Oct 2001, Todd Pfaff wrote:> Prior to samba-2.2.2 I used the code below to provide NT roaming profiles. > This seems to have stopped working in 2.2.2. > > [global] > logon path = \\mmri1001\nt-%U\NTProfile > > [nt-%U] > path = /home/%U > browseable = no > writeable = yes > nt acl support = no > preexec = /usr/local/samba/bin/create-profile %U %G %P/NTProfile %a %h %m > > > Should this work or was I just lucky that it used to work? > > Is it possible to use %U in a share name like this so that the share name > is defined by the name of the connecting user?I probably broke it. I'll look into it. Thanks Todd. cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
On Tue, 16 Oct 2001, Todd Pfaff wrote:> Prior to samba-2.2.2 I used the code below to provide NT roaming profiles. > This seems to have stopped working in 2.2.2. > > [global] > logon path = \\mmri1001\nt-%U\NTProfileok. I just tried something very similar to this using a Win2k SP2 client and a SAMBA_2_2 cvs PDC. logon path = \\POGO\profile\%U [profile] path = /export/ntprofile read only = no create mask = 0600 directory mask = 0700 I also tried creating a simple share [home-%U] path = /home/pogo/%U read only = no and it worked fine as well. Still trying to reproduce this.... cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
On Tue, 16 Oct 2001, Todd Pfaff wrote:> Prior to samba-2.2.2 I used the code below to provide NT roaming profiles. > This seems to have stopped working in 2.2.2. > > [global] > logon path = \\mmri1001\nt-%U\NTProfileok. I've reprduced it. Does look like you cannot use %U in service names. Not sure what change broke it. Anyone want to fess up? Probably was me :-) I'll look into it some more. cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
One thing to be aware of is the expansion of such macros is not always safe, which may be the reason this was taken out. I know for a fact that you can't use %D domain expansions in the valid users list. (Perhaps that's been fixed since I last checked.) The problem is, the space for the name list is allocated before the expansion, and is not grown as the size of the list grows. Memory is overwritten, and eventually there is a segfault. Again this is speculation, but maybe this is the same problem, and the fix should remain in place until the expansion code is smart enough to grow the buffer. -----Original Message----- From: Gerald (Jerry) Carter [mailto:jerry@samba.org] Sent: Wednesday, October 17, 2001 1:28 PM To: Todd Pfaff Cc: samba@samba.org; samba-technical@samba.org Subject: Re: %U in share name On Tue, 16 Oct 2001, Todd Pfaff wrote:> Prior to samba-2.2.2 I used the code below to provide NT roaming profiles. > This seems to have stopped working in 2.2.2. > > [global] > logon path = \\mmri1001\nt-%U\NTProfileok. I've reprduced it. Does look like you cannot use %U in service names. Not sure what change broke it. Anyone want to fess up? Probably was me :-) I'll look into it some more. cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca-- -------------- next part -------------- HTML attachment scrubbed and removed
Hi, we have an other Problem (maybe the same) with the %U in the includes. If we put the following in the config-files: smb.conf: include = smb.conf.%U smb.conf.anna: [PUBLIC] path = /samba/public readonly = no comment = public in the smb.conf and a user for example 'anna' connect to the samba PDC all looks like good for the first moment. But after a short time the share 'PUBLIC' will be lost and I can not connect to the share by using 'net use * \\SMB\PUBLIC'. But if I use the 'net use * \\SMB\PUBLIC' command immediately after loging. All works fine and the share is there for all the time. Thanks Dietrich Heise