[CentOS] Running commands as apache user

Sat Aug 8 00:01:37 UTC 2020
H <agents at meddatainc.com>

On 08/07/2020 07:56 PM, H wrote:
> I have a dilemma: I have nextcloud running under user and group apache, as recommended by the installation. I now have to run some nextcloud commands but even as root I cannot su to user apache because "this account is currently not available". Is there a way around this? The commands must be run as user apache...
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

Fixed. I found "su -l apache -s /bin/bash" on the web which allows me to get around the nologin.