Re: [CentOS] Running commands as apache user

2020-08-08 Thread J Martin Rushton via CentOS

On 08/08/2020 01:01, H wrote:

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@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.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos



A little suggestion to you - edit /etc/nologin.txt to read:

This account is currently not available.  Try: # su -l  -s /bin/bash

Make sure the file is set to 644 and it will prompt you if you forget 
the syntax.


--
J Martin Rushton MBCS
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Running commands as apache user

2020-08-07 Thread H
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@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.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Running commands as apache user

2020-08-07 Thread H
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@centos.org
https://lists.centos.org/mailman/listinfo/centos