Koozali.org: home of the SME Server

Permissions issues after upgrade to 10.1

Offline Sparkey

  • *
  • 24
  • +0/-0
Permissions issues after upgrade to 10.1
« on: April 20, 2023, 11:26:58 PM »
I recently did an update from 9.2 to 10.1.

Made a server tgz backup via console to a usb drive, installed 10.1 and then restored backup.  There were no erros during install or restore.

Brought 10.1 up and am currently running into what looks like a permissions issue. 

I have noticed that the web server is not accessible.  Reading the logs I see this below:

[core:error] [pid 2451] (13)Permission denied: [client 179.43.177.243:52504] AH00035: access to /index.htm denied (filesystem path '/home/e-smith/files/ibays/Primary/html/index.htm') because search permissions are missing on a component of the path

I have no idea where to go at this point and was hoping someone here can lead me to a fix.

Thanks,
Mark

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Permissions issues after upgrade to 10.1
« Reply #1 on: April 21, 2023, 05:08:28 AM »
I've seen issues in the past where restored data didn't pick up the correct file ownership (although not when using backup/restore).

Here are some notes on what I'm seeing, in case they're useful...

Code: [Select]
# ls -ld /home
drwxr-xr-x. 4 root root 34 Feb 19  2017 /home

# ls -ld /home/e-smith
drwxr-xr-x. 14 admin admin 4096 Apr  7 07:20 /home/e-smith

# ls -ld /home/e-smith/files
drwxr-xr-x. 8 root root 98 Jan 31  2013 /home/e-smith/files

# ls -ld /home/e-smith/files/ibays
drwxr-xr-x. 10 root root 136 Feb  6  2013 /home/e-smith/files/ibays

# ls -ld /home/e-smith/files/ibays/Primary/
drwxr-xr-x. 6 root root 67 Jun 14  2017 /home/e-smith/files/ibays/Primary/

# # ls -ld /home/e-smith/files/ibays/Primary/html
drwxrwsr-x. 6 admin www 143 Apr 15 14:40 /home/e-smith/files/ibays/Primary/html

# ls -ld /home/e-smith/files/ibays/Primary/html
drwxrwsr-x. 6 admin www 143 Apr 15 14:40 /home/e-smith/files/ibays/Primary/html

# db accounts show Primary
Primary=ibay
    AllowOverride=All
    Audit=enabled
    CgiBin=enabled
    FollowSymLinks=enabled
    Group=www
    Modifiable=no
    Name=Primary i-bay
    PHPBaseDir=/home/e-smith/files/ibays/Primary/html/:/tmp/
    PasswordSet=no
    Passwordable=no
    PublicAccess=global
    Removable=no
    UserAccess=wr-group-rd-everyone
    WideLinks=yes


Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: Permissions issues after upgrade to 10.1
« Reply #2 on: April 21, 2023, 05:18:42 AM »
I have noticed that the web server is not accessible.  Reading the logs I see this below:

If any custom templates remove, config and reboot...
--
qui scribit bis legit

Offline Sparkey

  • *
  • 24
  • +0/-0
Re: Permissions issues after upgrade to 10.1
« Reply #3 on: April 21, 2023, 04:50:11 PM »
Thanks for the suggestions.

To make a long story short:

Permission errors started showing up in nested folders in users folders besides the web server.  (It was an oh shit moment!)  I checked error logs and saw some other permissions issues and decided to rsync my data files to a usb drive.  Then I shutdown the server, removed the 10.1 installation disks, replaced with the 9.2 disks, and booted 9.2 back up.

Configured the workstations to again use smb1 and disable 2/3 protocols and then rsync'd my data files back to the 9.2 installation.

Back up and running with 9.2. and everything is as it should be.

Since my 9.2 has never shown any permissions issues or errors in any logs, my best guess is that a version 9 contrib or a custom template was f'ing things up.  I'll dig into this more in a month or so.  For now, everyone is back in business at work.


Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: Permissions issues after upgrade to 10.1
« Reply #4 on: April 22, 2023, 11:18:18 AM »
Get yourself a test server and try there. Saves a lot of heartache & pain.

As Terry said, make sure you remove old detritus before rebooting. That is the most common issue.

You can also then check user perms are correct too.

Really need to get a move on. V9 is way out of date and if they remove SMB 1/2 support (likely soon) from your clients you are in big trouble.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Permissions issues after upgrade to 10.1
« Reply #5 on: April 23, 2023, 01:01:05 AM »
https://bugs.koozali.org/show_bug.cgi?id=12146

grep www /etc/group

www should be in all your groups associated with an ibay

Offline Sparkey

  • *
  • 24
  • +0/-0
Re: Permissions issues after upgrade to 10.1
« Reply #6 on: May 03, 2023, 08:03:14 PM »
I am working on reinstalling 10.  I have encountered an issue with the mirrors passing an incorrect url.  That info is in another thread that referenced the same issue.

https://forums.koozali.org/index.php/topic,54636.0.html




Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Permissions issues after upgrade to 10.1
« Reply #7 on: May 04, 2023, 07:50:41 PM »
before losing hours on reinstalling to end up with same issue probably, wouldn’t it have been nice to answer the previous message and actually fix your issue ?