A user can't delete folders

Hello,

I have multiple installations of Nextcloud on my softaculous’s cpanel server.

One of my nextcloud installation has a user that cannot delete folders since few days. It worked fine before. There is no error message in the log file.

On this installation, there are 4 nextcloud users : admin, xxx, yyyy, zzzz
admin, xxx, and zzzz can delete folders but not for the yyyy user.

I’ve tried to promote the yyyy user to admin but there is still the same issue.

I can’t run the occ command because the nextcloud has been installed via softaculous and I don’t know how to run the occ command. When I use the sudo -u apacheusername php occ etc… there is an error : occ command can only be run from a command line

Someone can help me please ? Many days I’m stucked on this issue, and I can’t ask my user to recreate a user and upload his 2TB of data again to this new folder’s user.

Thanks so much for your support,

Cheers
Bruno

Hi there,
does this folder that cannot be deleted belong to yyyy?
Or it is shared from another user?

Hi Philip and thanks for your reply :slight_smile:
The folder belongs to yyyy.
Even if yyyy creates a new folder, he can’t delete it just after.
What do you think about of this issue?

Thank you so much for your help,

Bruno

Sounds like a permission issue. Are you able tu re-run the strong permission script?
Do you have shell access to the server?
Does the same happens if he does it via web or the desktop client?
Try sharing a folder from zzz to yyy and see if he can upload, the add, then delete the shared folder.
Lastly, do you have the file access control app enable?

If it’s a folder permission problem from the server, the whole Nextcloud setup wouldn’t even show up on the internet, I think.

What I wonder though, is that, can yyyy share his 2TB data to other users?

Sounds like a permission issue. Are you able tu re-run the strong permission script?

Where is this strong permission script please ?

Do you have shell access to the server?

Yes, i’m the root admin of the cpanel server

Does the same happens if he does it via web or the desktop client?

Yes

Try sharing a folder from zzz to yyy and see if he can upload, then add, then delete the shared folder.

I will make the test today

Lastly, do you have the file access control app enable?

Nope

What I wonder though, is that, can yyyy share his 2TB data to other users?

Yes, he shared some folders already.

That I don’t understand… if this is a permission issue from the server, why the others users work fine ?
The permissions in the nextcloud is : httpuser:httpgroup, and I’ve tried to chmod 777 a test folder that I’ve created with yyyy, and he can’t delete this folder even with chmod777.

How and Where are set the permissions for each Nextcloud users created ?

Thanks a lot for your help guys, this is really nice :slight_smile:

I forgot to tell you that the user can delete files, but he can’t delete folders. Empty or not empty.
Very strange…

The activated apps are :

Activity 2.4.1
Collaborative Tags 1.1.3
Comments 1.1.0
Default encryption module 1.4.1
Federation 1.1.1
File Sharing 1.1.1
First run wizard 2.0
Gallery 16.0.0
Log reader 2.0.0
Next announcement 1.0
Notifications 1.0.1
Password policy 1.1.0
Server info 1.1.1
Share by mail 1.0.1
Theming 1.1.1
Update notification 1.1.1
Usage survey 0.1.5
Versions 1.4.0
Video player 1.0.0

hello,
after many hours tried to move the user data to another user, repair the installation, repair permissions blablabla…
I’ve finally solved the issue by doing a TRUNCATE TABLE on oc_filecache after enabling the maintenance mode.

thanks a lot guys for your help, i really appreciate the community! :slight_smile: :slight_smile:

Cheers,
B.