remote-server: Warn when running as root.

* src/cuirass/scripts/remote-server.scm (cuirass-remote-server): Warn
when running as root.
This commit is contained in:
Ludovic Courtès 2023-11-27 15:22:28 +01:00
parent a68b3d7122
commit 6c9e9fc26f
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 0 deletions

View File

@ -644,7 +644,10 @@ exiting."
(%cache-directory cache))
(when user
;; Now that the private key has been read, drop privileges.
(gather-user-privileges user))
(when (zero? (getuid))
(warning (G_ "running with root privileges, which is not recommended~%")))
(and parameters
(read-parameters parameters))