Forums

David
David
Offline
Resolved
0 votes
I have a folder on my ClearOS server which is supposed to be able to be read and written to by everyone (locally) and it is not allowing proper write access with Windows clients. I can create new files fine but when I try to delete or move certain files I get an error message that says:

"You need permission to perform this action

You require permission from WORKGROUP\anon to make changes to this folder"

"anon" is the account for users other than myself and I think it is the account that was used to create these troublesome files that I cannot delete or move.

How do I enable proper full write access for everyone?

Thanks.
Wednesday, July 29 2015, 05:56 AM
Share this post:
Responses (11)
  • Accepted Answer

    Saturday, August 01 2015, 09:45 AM - #Permalink
    Resolved
    0 votes
    I've no idea why the problem occurred. It may because of the original flexshare permissions when the file was created. Permissions don't automatically change if you move files between shares as root directly in ClearOS (for example using WinSCP).

    I've no idea exactly which permissions you need for "other/guest" and it probably does not make any difference as guest access is disallowed in samba. The guest permission you've given the files is 4 (read only). Change it as you wish with chmod.
    The reply is currently minimized Show
  • Accepted Answer

    David
    David
    Offline
    Saturday, August 01 2015, 09:40 AM - #Permalink
    Resolved
    0 votes
    Thank you very much for your help.

    "chmod -R 774 *" worked.

    In case it matters: the owner of the contents of the troublesome directory is "anon".

    Any idea why this problem would have occurred and how to avoid in in the future?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 01 2015, 09:10 AM - #Permalink
    Resolved
    0 votes
    This is like extracting hens teeth :(

    So who are the owners of these files?

    Also you can see you have a permissions problem as the group does not have write access (drwxr-xr-x and not drwxrwxr-x). You can sledgehammer it by going to the parent share folder and do something like "chmod -R 774 *"
    The reply is currently minimized Show
  • Accepted Answer

    David
    David
    Offline
    Saturday, August 01 2015, 08:54 AM - #Permalink
    Resolved
    0 votes
    The individual file permissions vary. Some are drwxr-xr-x.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 01 2015, 08:06 AM - #Permalink
    Resolved
    0 votes
    What are the individual file permissions? Note I am not sure if flexshares use the group permissions of the group you have assigned to the share or "allusers" as I don't use flexshares.
    The reply is currently minimized Show
  • Accepted Answer

    David
    David
    Offline
    Saturday, August 01 2015, 07:38 AM - #Permalink
    Resolved
    0 votes
    The permissions of the main directory I have been trying to move are drwxrwxr-x. Username is "anon" and the group is the one I just created.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 01 2015, 06:43 AM - #Permalink
    Resolved
    0 votes
    What are the permissions of these files? From a console session, navigate to the folder (generally somewhere under /var/flesxhare/shares) and give the output to "ls -la". Check that the group membership is the group you've created the share for. If not use the "chown" command to change the group. Also check the file permissions. Mine are a bit inconsistent, but they should be at least 760 or 770 (rwxrw---- or rwxrwx---). These can be changed with the "chmod" command.
    The reply is currently minimized Show
  • Accepted Answer

    David
    David
    Offline
    Saturday, August 01 2015, 01:40 AM - #Permalink
    Resolved
    0 votes
    That didn't help.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 31 2015, 01:07 PM - #Permalink
    Resolved
    0 votes
    Yes, that is what I am suggesing. Have you seen this parallel thread?
    The reply is currently minimized Show
  • Accepted Answer

    David
    David
    Offline
    Friday, July 31 2015, 04:08 AM - #Permalink
    Resolved
    0 votes
    Thanks for the reply.

    Yes; it is a Flexshare. It is already shared with the "allusers" group which has both my account and "anon". Are you suggesting I make another group and use that?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, July 29 2015, 11:33 AM - #Permalink
    Resolved
    0 votes
    Is this a flexshare? If so, change it to a group share with you and anon as members of the group. If it is a samba share you've configured yourself, you can do the same or you can add something like "force user = anon" to the share configuration.
    The reply is currently minimized Show
Your Reply