Koozali.org: home of the SME Server

Primary I-bay website no longer accessible from inside or outside internet.

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
Hello,

I have come across a new problem that I have been unable to solve.... I went to create a new I-bay yesterday I went in to server manager and made an I-bay and a user to use it I set the chroot path so they can go right to there I-bay etc. I also made a group to put the Administrator and User in so they can use the same I bay. All goes well or so I think... Later that day I learn that all 3 of my websites that are on the same server are no longer accessible to outside/inside IP networks. All 3 display the following message

Forbidden

You don't have permission to access / on this server.

While all the main links don't work all of my auxiliary site.com/second don't work either. However site.com/webmail works just fine. My email and FTP sides of the server are 100% unaffected and working just fine. It seems like all I did was change the public viewing setting on the Primary and Auxiliary I Bay even though it is telling me it is set correctly at 755. Not sure what I am doing wrong here......

The only weird thing the server is telling me in the log is that I deleted admin from the group admin?? There's no way to do that I think so I am really confused as to why it said that....

Any help, advice, suggestions and even criticism is welcomed at this point.

Thank you

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
what gives
grep www /etc/group

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
I wish I knew.....

Is that a command to try? I will try it

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
it is.
cue: it should show www in all your groups  associated to an ibay. including the group shared. 
of not you have encountered this bug https://bugs.koozali.org/show_bug.cgi?id=12146

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
Okay so etc should be where I put the name of the I-bay like Primary right?

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
I must not know how to enter it or I have encountered the bug I tried entering in the following combinations

grep www /etc/group

grep www /Ibayname/group

Nothing happened it acted like I had a blank space and hit enter

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
Okay reading your bug report I am misunderstanding that the only way to fix the issue is to restore from backup?

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
you are misunderstanding.


I can only assume that something happened and reversed the order of apache and www in /etc/passwd.

what returns
egrep 'www|apache' /etc/passwd

no proof it is not already in this state in your backup.

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
its returning no such file or directory
« Last Edit: September 21, 2023, 11:45:33 PM by JRBATM20192021 »

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
its returning no such file or directory
you are not typing it correctly then.

Offline ReetP

  • *
  • 3,740
  • +5/-0
Typically you should get this:

[root@esmith ~]# egrep 'www|apache' /etc/passwd


Code: [Select]
apache:x:102:102:Apache:/var/www:/sbin/nologin
www:x:102:102:SME Server web server:/home/e-smith:/bin/false

Or

[root@esmith ~]# grep www /etc/group

Code: [Select]
www:x:102:admin,apache
webstuff:x:5101:admin,user1,user2,www
...
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 JRBATM20192021

  • ***
  • 111
  • +0/-0
Okay let me try again

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
here is what mine returns

[root@www ~]# egrep 'www|apache' /etc/passwd
apache:x:102:102:Apache:/var/www:/sbin/nologin
www:x:102:102:SME Server web server:/home/e-smith:/bin/false
[root@www ~]# grep www /etc/group
www:x:102:admin,apache
commercials28:x:5060:admin,www,tvcommercials
[root@www ~]#

Offline JRBATM20192021

  • ***
  • 111
  • +0/-0
Tv commercials is the Ibay I made the other day

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
waiting the bug to be fixed:

Code: [Select]
usermod -a -G shared www
would workaround the missing www in shared group for your Primary ibay.

beware this is an uppercase G, not a lowercase g. 

then you will need to restart apache
Code: [Select]
systemctl restart httpd-e-smith