Anyway.. attempting to purge reports back with an error stating that the value cannot be less than 7 (but it's set to 180), and packing reports that it cannot open the user DB.
The permissions seem to be fine (reading "rwxrwxr-x"), so what is going
on here? Also what does packing the user database mean?
It sounds like the ownership could be wrong. I am assuming it not
reading the 180 because it doesn't have access to do it or there could
be a typo (or of course a bug). There isn't really a good way to
evaluate without seeing the .INI settings and the ownership.
As far as packing the user file, this removes deleted user records and associated data. When you flag a user as deleted they still stay in the system, allowing you to undelete them in the user editor if you want.
But when you pack the user database, it does the following to each
deleted user:
- Physically removes the user from the user database
- Removes any draft messages they've saved
- Removes private messages sent or received to the user.
- Removes the users "last read" and "last file scan" data
Since I had to chmod the entire mystic root after the upgrade to A41 (it wouldn't read the userDB otherwise due to the permissions not allowing it), that would most likely be the case.
chmod does not change ownership, it just sets whether a file can be read, written to, or executed. What you should be looking at is chown to set the "owner" of the files to whatever user you want to have executing mystic and then you start Mystic as sudo.
chmod does not change ownership, it just sets whether a file can be r written to, or executed. What you should be looking at is chown to s the "owner" of the files to whatever user you want to have executing mystic and then you start Mystic as sudo.
Actually he is correct.. I had to chmod the /mystic/data folder to 777 because of wrong file permissions .. It has to do with the new files
added in a41 when they do a fresh install
No, they're not correct. Sure this might have solved your problem but it doesn't make it the right thing to do - its sort of like a bandaid when the real problem is the wound. :) Let me try to explain a little bit:
What you are doing with chmod 777 is telling Linux that anyone can do anything with those files or folders that you chmodded, regardless of
who owns the files. If it didn't work before you did that, its almost certainly because your ownership was wrong (which chown changes).
On 02-01-19 10:31, g00r00 wrote to Night Stalker <=-
What you are doing with chmod 777 is telling Linux that anyone can do anything with those files or folders that you chmodded, regardless of
who owns the files. If it didn't work before you did that, its almost certainly because your ownership was wrong (which chown changes).
An example of how this could play out:
On 02-01-19 13:18, Night Stalker wrote to g00r00 <=-
Even chmodding the /mystic folder to the BBS user did not fix the
problem because a couple files in /data were not writable by anyone
other than root. I changed it to 750 on the folder and 644 on the files
so the files can only be accessed by the owner
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 203:15:25 |
Calls: | 2,083 |
Calls today: | 1 |
Files: | 11,139 |
Messages: | 947,992 |