You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to set the user, group and mode on some files in /etc. The mode is set correctly but the uid/gid are not. Looking at the source it appears this has never been implemented?
To Reproduce
"ssl/private/ssl-cert-snakeoil.key" = {
source = ./etc/ssl-cert-snakeoil.key; user = "root";
group = "ssl-cert"; mode = "0640"; };
Leads to:
# ls -l /etc/ssl/private/ssl-cert-snakeoil.key
-rw-r----- 1 root root 1704 Jan 24 18:11 /etc/ssl/private/ssl-cert-snakeoil.key
Expected behavior
# ls -l /etc/ssl/private/ssl-cert-snakeoil.key
-rw-r----- 1 root ssl-cert 1704 Jan 24 18:11 /etc/ssl/private/ssl-cert-snakeoil.key
https://github.com/srd424/system-manager/tree/chown-v1 is a simple, inelegant solution to just setting the uids/gids. It probably needs to be done in copy_file instead to make the error handling more sensible. Also need to resolve user and group names at some point if those are used instead.
Describe the bug
I've tried to set the user, group and mode on some files in /etc. The mode is set correctly but the uid/gid are not. Looking at the source it appears this has never been implemented?
To Reproduce
Leads to:
Expected behavior
System information
system-manager rev 196586a on Ubuntu 22.04.
The text was updated successfully, but these errors were encountered: