aboutsummaryrefslogtreecommitdiff
path: root/src/property/user.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-04-23 13:44:44 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-04-23 13:44:44 -0700
commitfc189e9a577d6a940ac8eefaae5913dd67a95953 (patch)
tree2919a69139fce13ced71c3642724651aeba02a72 /src/property/user.lisp
parent3019bfea87ab6df33845f3bf7f7df03a33a5970d (diff)
downloadconsfigurator-fc189e9a577d6a940ac8eefaae5913dd67a95953.tar.gz
rename ASSERT-EUID-ROOT -> ASSERT-REMOTE-EUID-ROOT
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/user.lisp')
-rw-r--r--src/property/user.lisp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/property/user.lisp b/src/property/user.lisp
index 1a49e5d..74d4737 100644
--- a/src/property/user.lisp
+++ b/src/property/user.lisp
@@ -26,7 +26,7 @@ Note that this uses getent(1) and so is not strictly POSIX-compatible."
(:check
(user-exists username))
(:apply
- (assert-euid-root)
+ (assert-remote-euid-root)
(mrun "useradd" "-m" username)))
(defprop %has-uid-gid :posix (username uid gid)
@@ -61,7 +61,7 @@ that group, and ~USERNAME and its contents are owned by UID:GID."
(subsetp groups (cddr (split-string (stripln (run "groups" username))))
:test #'string=))
(:apply
- (assert-euid-root)
+ (assert-remote-euid-root)
(mrun "usermod" "-a" "-G" groups* username)))
(defparameter *desktop-groups*
@@ -113,10 +113,10 @@ and then this property will do nothing."
(:desc #?"${username} has a locked password")
(:hostattrs (os:required 'os:debianlike))
(:check
- (assert-euid-root)
+ (assert-remote-euid-root)
(string= "L" (cadr (split-string (run "passwd" "-S" username)))))
(:apply
- (assert-euid-root)
+ (assert-remote-euid-root)
(mrun "passwd" "--lock" username)))
(defun %getent-entry (n name-or-id &optional (database "passwd"))