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

Rowland Penny rpenny at samba.org
Tue Mar 8 06:49:20 UTC 2022


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%7C669af0e754c843d7516d08da006fc9d4%7C31d7e2a5bdd8414e9e97bea998ebdfe1%7C0%7C0%7C637822777375468687%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=hj4tbwZ8u%2BffgWXEwGyykmzxbHT%2B2Z6fxzc1B6MsUsg%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.

Rowland





More information about the samba mailing list