File manager issues

SYSTEM INFORMATION
OS type and version AlmaLinux 9.7
Webmin version 2.630

i am having problems deleting folders to trash, “unable to delete - no such file or directory”, works ok if i change settings to not move to trash
i have another server with the exact same software and that moves to trash ok, i’m missing something :roll_eyes:

also can’t edit .cgi files on this box but can on the other one

cheers

I think that probably indicates the temp directory configured in Webmin either doesn’t exist or is not writable.

it was 755 so set to 777 but still same probs

also can’t edit .shtml & files ending in a tild

/tmp/.webmin keeps reverting to 0755, i tried 1777 but changes back after trying to delete a directory
that can’t be the cause though as the other servers tmp is 0755 & that has no issues

Works fine for me, do you a error/warning/message?
Only thing I notice it doesn’t detect its a html file and reverts to plain text

i mean i can’t open it to edit, only view

Yeah that edit mode. Sound like a permissions issue, are you logged in as root?

on all my machines i create a user with root privs then delete root user, on webmin

i can delete anything with trash option turned off

if i change the file extension from .cgi .shtml or others to .txt or .old or similar i can then edit

DELETE THE ROOT USER?! That sounds scary! How did you do that? Is there still a “root” entry in /etc/passwd ???

in webmin not the system

It doesn’t need to be 777. /tmp is writable, so that’s not the problem.

You’ll need to look at the log, probably /var/webmin/miniserv.error for relevant entries.

You do what!? You can’t do that. You need a UID 0 user.

Edit: To be clear, you absolutely cannot delete the root user. I would assume that explains why Webmin is broken in several places. You can/should make it so the root user can’t be directly logged into. You cannot delete the user entirely.

uuid 0 lives i only remove the root user from webmin as it allows cloning with root privs right

have done this for many years without issue & of 4 current boxes &many in the past this file mngr issue is a new 1

this is new and only on this box, no other issues in the log
many lines of this
Argument “40 Celsius” isn’t numeric in numeric gt (>) at /usr/libexec/webmin/system-status/system-status-lib.pl line 455.

i checked that line and it’s drive temps so checked smart and my nvme shows 40 degrees, i’ve disabled smart for now

not much on google about it

EDIT: disabling smart made no difference, error still there

.