Hi, i have problem with share with parametr "force user" Here i my settings of VFS modul recycle vfs object = recycle recycle:repository = .recycle/%u recycle:maxsize = 50000000 recycle:exclude = *.tmp *.temp *.o *.obj ~$* recycle:exclude_dir = sdileni/*/profile* tmp temp cache recycle:versions = yes recycle:touch = yes recycle:keeptree = yes and this is my share [my_share] path = /home/sdileni/instalace comment = software, instalace force group = smbgroup force user = smbuser public = yes If i delete some file from this share, then samba make directory .recycle/smbuser. But in older version (for example Samba 3.3.0) samba maked directory .recycle/real_user - and this i need! It's possible? I must have something new in configuration or is this new behavior of samba? thanks, Lukas
I tried both - "recycle:repository = .recycle/%U" and also "recycle:repository = .recycle/%u" But with same result - samba maked directory .recycle/force_user :( L. On Tue, 7 Jul 2009, Dale Schroeder wrote:> Try > recycle:repository = .recycle/%U > > That changes service user to session user. > > Dale > > > deseyve@linuxbox.cz wrote: >> Hi, >> >> i have problem with share with parametr "force user" >> >> Here i my settings of VFS modul recycle >> >> vfs object = recycle >> recycle:repository = .recycle/%u >> recycle:maxsize = 50000000 >> recycle:exclude = *.tmp *.temp *.o *.obj ~$* >> recycle:exclude_dir = sdileni/*/profile* tmp temp cache >> recycle:versions = yes >> recycle:touch = yes >> recycle:keeptree = yes >> >> and this is my share >> >> [my_share] >> path = /home/sdileni/instalace >> comment = software, instalace >> force group = smbgroup >> force user = smbuser >> public = yes >> >> >> If i delete some file from this share, then samba make >> directory .recycle/smbuser. But in older version (for example Samba 3.3.0) >> samba maked directory .recycle/real_user - and this i need! It's possible? >> I must have something new in configuration or is this new behavior of >> samba? >> >> >> thanks, Lukas >> > >
On Tue, Jul 07, 2009 at 03:47:31PM +0200, deseyve@linuxbox.cz wrote:> i have problem with share with parametr "force user" > > Here i my settings of VFS modul recycle > > vfs object = recycle > recycle:repository = .recycle/%u > recycle:maxsize = 50000000 > recycle:exclude = *.tmp *.temp *.o *.obj ~$* > recycle:exclude_dir = sdileni/*/profile* tmp temp cache > recycle:versions = yes > recycle:touch = yes > recycle:keeptree = yes > > and this is my share > > [my_share] > path = /home/sdileni/instalace > comment = software, instalace > force group = smbgroup > force user = smbuser > public = yes > > > If i delete some file from this share, then samba make > directory .recycle/smbuser. But in older version (for example Samba 3.3.0) > samba maked directory .recycle/real_user - and this i need! It's possible? > I must have something new in configuration or is this new behavior of > samba?I think this is a side effect of the change that went into 3.4.0pre1. From the changelog : Changes since 3.4.0pre1 ----------------------- o Jeremy Allison * BUG 6291: Fix 'force user'. The recycle code uses a substitution of conn->server_info->unix_name for the "%u" parameter, and this is not (correctly) set to the forced username on connect (which is required for "force user" to work correctly. The real user name is lost after authentication, which is what you've asked for. The previous (3.3.0) behavior was probably a side effect of force user not being correct in that release. I think in the latest Samba 3.3.6 it would behave the same. Jeremy.
No, i use at first time samba 3.3.6 and here was this problem. then i tried samba 3.4.0. but with same problem (and before any time i tried samba 3.3.3 and in this version was also this problem). Last version what i use without this problem is 3.0.30 But i dont know if this problem is new behavior or is it bug or if i must have something new in configuration or...? So...my problem is: - i have sharing with parameter "force user" and i use VFS module recycle - after connecting to share and delete some files, so samba maked directory .recycle/$force_user, but i need directory .recycle/$real_user thanks, Lukas On Mon, 13 Jul 2009, Norberto Bensa wrote:> On Mon, Jul 13, 2009 at 9:06 AM, Lukas Deseyve<deseyve@linuxbox.cz> wrote: >> >> Hi, >> >> i tried Samba 3.4.0 but with same result:( > > From what I understand, Jeremy says you should downgrade to 3.3.6 to > restore the behavior you want. > >-- S pozdravem ------------------------------------- Bc. Lukas DESEYVE LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 603 143 mobil: +420 737 238 658 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@linuxbox.cz -------------------------------------