shithub: riscv

ref: 15140dcce2b1670af6f4d78ddb5cf52444107aee
dir: /sys/src/cmd/auth/disable/

View raw version
#!/bin/rc

if(! ~ $#* 1){
	echo 'usage: auth/disable user' >[1=2]
	exit usage
}

if(test -e /mnt/keys/$1)
	echo -n disabled > /mnt/keys/$1/status
if(test -e /mnt/netkeys/$1)
	echo -n disabled > /mnt/netkeys/$1/status