2022-05-09 14:11:44 +01:00
|
|
|
# How to deal with spam posts on pagure
|
|
|
|
|
|
|
|
When an ticket is raised for a spam user on the Fedora infra tracker take the
|
|
|
|
following actions.
|
|
|
|
|
|
|
|
## Clear the spam
|
|
|
|
Click on the user in pagure and check their activity for all comments they have
|
|
|
|
made. Remove all these comments unless otherwise advised.
|
|
|
|
|
|
|
|
## Ban the user in pagure
|
|
|
|
|
|
|
|
ssh to pagure02.fedoraproject.org. As root user run the following command:
|
|
|
|
|
|
|
|
```
|
|
|
|
pagure-admin block-user <username> <date to block until>
|
|
|
|
```
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```
|
|
|
|
pagure-admin block-user spamuser 2060-01-01
|
|
|
|
```
|
|
|
|
|
|
|
|
## Disable user in IPA
|
|
|
|
|
|
|
|
### Frontend
|
|
|
|
|
2023-03-08 14:09:53 +00:00
|
|
|
* Login to the [ipa server](https://id.fedoraproject.org/ipa/ui) and search the users name.
|
2022-05-09 14:11:44 +01:00
|
|
|
* Click on the user.
|
|
|
|
* In the Actions dropdown menu click disable
|
|
|
|
|
|
|
|
|
|
|
|
### Command line
|
|
|
|
|
|
|
|
* ssh to ipa01.iad2.fedoraproject.org
|
|
|
|
* run `ipa user-disable <user>`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|