summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/enable
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/auth/enable')
-rwxr-xr-xsys/src/cmd/auth/enable6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/src/cmd/auth/enable b/sys/src/cmd/auth/enable
index f7a91189c..3c44b7eb5 100755
--- a/sys/src/cmd/auth/enable
+++ b/sys/src/cmd/auth/enable
@@ -1,4 +1,10 @@
#!/bin/rc
+
+if(! ~ $#* 1){
+ echo 'usage: auth/enable user' >[1=2]
+ exit usage
+}
+
if(test -e /mnt/keys/$1)
echo -n ok > /mnt/keys/$1/status
if(test -e /mnt/netkeys/$1)