On Wed, Jun 08, 2011 at 10:02:23AM +0100, Jonathan Buzzard wrote: > On Tue, 2011-06-07 at 10:11 -0700, Jeremy Allison wrote: > > [SNIP] > > > > I thought I would be able to use the dfree command option of smb.conf to > > > report the correct information gathered through a script of some > > > description. Unfortunately even with a simple shell script that echos a > > > couple of numbers is owned by root and has permissions 700 does nothing > > > (I still see numbers for the entire file system not the specific share) > > > and I can see nothing in the samba logs even at log level 5. > > > > dfree should work fine. I'd persue this avenue. > > > > I did some experimentation and I have discovered the problem. The manual > page for smb.conf says > > Note: Your script should NOT be setuid or setgid and should be owned > by (and writeable only by) root! > > Which gives the impression that it should have permissions 700. Changing > that to 755 and it works.
Oh that's interesting. It's because it is being run as the connected user. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
