Rowland Penny
2022-Mar-08 06:49 UTC
[Samba] Unable to write to a share that I should have access to
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_ShowsYou 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
Patrick Goetz
2022-Mar-08 16:00 UTC
[Samba] Unable to write to a share that I should have access to
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 > > >