[Samba] recycle on a fileserver domain member

Elias Pereira empbilly at gmail.com
Tue Jun 13 19:04:35 UTC 2017


Thanks for your answer Rowland,

I fix this problem. I had not put writing permission to the "domain users".

Http://i.imgur.com/oLXS0Kn.png

In the image above I show the permissions of the recycle folder. They are
correct?

Do I need to have these 3 entries below in my smb.conf?

recycle:directory_mode = 0700
recycle:subdir_mode = 0700
recycle:inherit_nt_acl = Yes

On Tue, Jun 13, 2017 at 3:23 PM, Rowland Penny <rpenny at samba.org> wrote:

> On Tue, 13 Jun 2017 14:56:33 -0300
> Elias Pereira via samba <samba at lists.samba.org> wrote:
>
> > Hello guys,
> >
> > I configured the recycle in my fileserver, but when I logged in with
> > normal user and delete some files, folders, etc, the errors occurs.
> >
> > ./addc-pc-01.log:28251:  recycle: mkdir failed for .recycle with
> > error: Permission denied
> >
> > [global]
> >         recycle:repository = .recycle/%U
> >
> > Do I need to create the .recycle folder on my fileserver? If yes, what
> > permissions do I set in the folder?
> >
>
> You seem to be telling Samba to create the recycle bin in '/', which
> if your machine is like mine, has permissions like these:
>
> drwxr-xr-x 30 root root 4096 Feb 27 12:49 /
>
> And as you can see, only the root user can write to '/'
>
> So, to answer your question, yes, you will need to create '/.recycle'
> and change the permissions so that your users can create their recycle
> dir, probably by the group permissions.
>
> Rowland
>



-- 
Elias Pereira


More information about the samba mailing list