mirror of
git://git.savannah.gnu.org/guix/guix-cuirass.git
synced 2023-12-14 06:03:04 +01:00
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:
parent
a68b3d7122
commit
6c9e9fc26f
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue