[Samba] Unable to write to a share that I should have access to

Rob Campbell robcampbell08105 at gmail.com
Tue Mar 8 16:29:14 UTC 2022


When the normal user owns the dir, they can run chown, right?  Granted, it
would only be to update the group or to transfer ownership to another user
but I believe that is the only time a user has that permission.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In all things, Be Intentional.


On Tue, Mar 8, 2022 at 11:02 AM Patrick Goetz via samba <
samba at lists.samba.org> wrote:

>
>
> On 3/8/22 00:49, Rowland Penny via samba wrote:
> > On Mon, 2022-03-07 at 20:40 -0600, Patrick Goetz via samba wrote:
> >>
> >> On 3/7/22 13:21, Rob Campbell via samba wrote:
> >>> Following
> >>>
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.samba.org%2Findex.php%2FSetting_up_a_Share_Using_POSIX_ACLs%23Setting_Standard_UNIX_ACLs&data=04%7C01%7C%7Ced0df6aa1dac4270f65608da00cfee65%7C31d7e2a5bdd8414e9e97bea998ebdfe1%7C0%7C0%7C637823190313579415%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=t8D4AdFB32Pgv8Cl4FaQrmWJ%2FoVwaUd7a4CN6fZs68k%3D&reserved=0
> >>>
> >>> # chmod 2770 /srv/samba/Demo/
> >>> # chown root:"Domain Users" /srv/samba/Demo/
> >>>
> >>> When I try this, I get an error message
> >>> $ chown testuser:"Media Users" TV_Shows/
> >>> chown: invalid user: ‘testuser:Media Users’
> >>>
> >>
> >> First of all, you can't use chown as an ordinary user.  Only root can
> >> do
> >> this.  Second, I'm pretty sure your syntax is wrong?  Try this (as
> >> root):
> >>
> >>      # chown testuser:"Media Users" TV_Shows
> >
> > You can run 'chown' as a normal user, whether you have the permissions
> > to run it against a particular file is another thing. Also, there was
> > nothing wrong with the syntax.
> >
>
> What permission would allow you to run chown as a normal user?
>
>
> > Rowland
> >
> >
> >
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list