---
name: "newsflag"
section: "8cn"
platform: "linux"
package: "cnews"
version: "cr.g7-40.4"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/newsflag"
---

# newsflag(8cn)

change active-file flag for newsgroup

## NAME

newsflag - change active-file flag for newsgroup

## SYNOPSIS

**/usr/lib/news/maint/newsflag** newsgroup newval

## DESCRIPTION

*Newsflag* sets the fourth field of *newsgroup*'s entry in the *active* file (see [*newsdb*(5)](/newsdb/5.md)) to *newval*, doing proper locking to ensure safe modification of the file. For example, to change newsgroup *x.y.z* from unmoderated to moderated:

```
newsflag x.y.z m
```

The effect is purely local; no control message (to propagate the change to other machines) is sent.

## FILES

/var/lib/news/active

## SEE ALSO

[newsdb(5)](/newsdb/5.md)

## HISTORY

Written by Henry Spencer for C News.
