DOS quota write-deny smoke
This test proves the last step of NetWare-style quota enforcement with DOS
board tools: Linux/NCPFS sets the user quota, then a real DOS client logs in as
NOPASSUSER and attempts the file writes.
It is intentionally split because the authoritative quota setup remains on the Linux/MARS-NWE side:
-
In DOS, login as
SUPERVISORon the target volume and run:F: DQTSTA PREPThis creates
F:\DQTTEST\NCPQFILL, grantsNOPASSUSERwrite/create rights, and createsF:\DQTCMPfor logs. -
On Linux, set the user quota for
NOPASSUSERto 12 4K blocks on the same volume. With the mars-nwe ncpfs helper this is typically:./nwfs_ncpfs_userquota -S MARS -U SUPERVISOR -P 'password' \ --volume QUOTA --object NOPASSUSER --type 1 --limit-4k 12For SYS/NWQUOTA metadata-backend testing, use
--volume SYSinstead. -
In DOS, login as
NOPASSUSERand run:F:\DQTC.BATDQTCwritesQ00001.BINthroughQ00012.BINas 4K files, then expectsQFAIL.BINto be denied. -
In DOS, login as
SUPERVISORand run:F:\DQTSTA PART2 F:\DQTZIP
Expected result:
PASS: DOS quota deny observed.
The test does not set quotas itself. That keeps the authority split explicit: Linuxquota volumes are configured/enforced by the Linux backend, while NWQUOTA metadata volumes use the MARS-NWE metadata backend. The DOS part proves the client-visible write behavior.