code: mafs

ref: 2a5ba3cfc8748cd08bea89d93080948132f5aefe
dir: /man/mafs.8/

View raw version
.TH MAFS 8
.SH NAME
mafs \- file server maintenance
.SH SYNOPSIS
.PD 0
.PP
.B chatty
.PP
.B df
.PP
.B echo
.RB [on | off]
.PP
.B halt
.PP
.B sync
.PP
.B newuser
.I name
.RI [ options ]
.PP
.B users
.SH DESCRIPTION
The following commands should be written to /adm/ctl of a
.IR mafs (4)
file server.
.PP
.I Chatty
enables chatty 9p.
.PP
.I Df
prints the number of free, used and total blocks/megabytes.
.PP
.I Echo
expects the argument
.I on
or
.I off.
.I  On
causes all executed commands to be printed on the system console.
.I Off
reverses the effects of
.I on.
.PP
.I Halt
exits the program.
.PP
.I Sync
writes dirty blocks in memory to the magnetic disk cache.
.sp
.PP
The following commands should be written to /adm/users of a
.IR mafs (4)
file server.
.PP
.I Newuser
requires a
.I name
argument.
With no options it adds user
.IR name ,
with group leader
.IR name ,
to
.B /adm/users
and makes the directory
.BI /usr/ name
owned by user and group
.IR name .
The options are
.TF =leaderxx
.TP
.B :
Add a group: add the name to
.B /adm/users
but don't create the directory.
By convention, groups are numbered starting from 10000, users from 0.
.TP
.I newname
Rename existing user
.I name
to
.IR newname .
.TP
.BI = leader
Change the leader of
.I name
to
.IR leader .
If
.I leader
is missing, remove the existing leader.
.TP
.BI + member
Add
.I member
to the member list of
.IR name .
.TP
.BI - member
Remove existing
.I member
from the member list of
.IR name .
.PP
After a successful
.I newuser
command the file server overwrites
.B /adm/users
to reflect the internal state of the user table.
.PP
.I Users
reads the contents of file 
.B /adm/users
to initialize the file server's internal representation of the
users structure.
.SH EXAMPLES
Check disk usage (output appears on the system console).
.IP
.EX
% echo df >>/adm/ctl
.EE
.SH SEE ALSO
.IR mafs (4)
.SH SOURCE
.B /sys/src/cmd/mafs
.SH BUGS
.B WIP
still a work in progress.