Koozali.org: home of the SME Server

Re: SME Sever-Manager fails login with Can't exec "/usr/bin/pwauth": Permission denied

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
This is the result from check:

grep :104: /etc/group

Code: [Select]
www:x:104:admin
Is it save to apply the fix?

seems to be.
but always good to have backups ;)

Offline waldviertler

  • ***
  • 107
  • +0/-0
I have done a backup.

groupmod -g 102 www

gives
Code: [Select]
groupmod: GID »102« existiert bereits.
while "existiert bereits" means "exists already".

Is that ok?

Offline waldviertler

  • ***
  • 107
  • +0/-0
I have done this:

Code: [Select]
[root@www ~]# groupmod -g 102 www
groupmod: GID »102« existiert bereits.
[root@www ~]# find / -group 104 -not -path "/proc*" -exec chgrp -h www {} \;
[root@www]# expand-template /etc/httpd/conf/httpd.conf
[root@www]# httpd -t
Syntax OK
[root@www]# systemctl restart httpd-e-smith.service
signal-event post-upgrade
signal-event reboot


When I try to access horde webmail - I got this error in the browser:
A fatal error has occurred
Cannot write to cache directory /var/lib/php/horde/tmp
Details have been logged for the administrator.



Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
ok then what gives now

Code: [Select]
grep ^www /etc/group
ll -d /var/lib/php/horde/tmp

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
ok forgot the -o option

Code: [Select]
groupmod -o -g 102 www

Offline waldviertler

  • ***
  • 107
  • +0/-0
Fine! It works! (Manager and Horde) Thank you!!!!

I have done:
Code: [Select]
groupmod -o -g 102 www
find / -group 104 -not -path "/proc*" -exec chgrp -h www {} \;
expand-template /etc/httpd/conf/httpd.conf
httpd -t
got:
Syntax OK
Code: [Select]
systemctl restart httpd-e-smith.service
signal-event post-upgrade
signal-event reboot