File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ during installation.
75
75
When the files are extracted on the remote the copied data will be owned by
76
76
root.
77
77
78
+ If you wish to change the ownership after the files are copied onto the system,
79
+ you can use the ` --chown ` option.
80
+
81
+ For example, if you did ` --chown /home/myuser/.ssh 1000:100 ` , this would equate
82
+ to running ` chown -R /home/myuser/.ssh 1000:100 ` where the uid is 1000 and the
83
+ gid is 100. ** Only do this when you can _ guarantee_ what the uid and gid will
84
+ be.**
85
+
78
86
### Symbolic Links
79
87
80
88
Do not create symbolic links to reference data to copy.
Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ Options:
49
49
copy over existing /etc/ssh/ssh_host_* host keys to the installation
50
50
* --extra-files <path>
51
51
contents of local <path> are recursively copied to the root (/) of the new NixOS installation. Existing files are overwritten
52
- Copied files will be owned by root. See documentation for details.
52
+ Copied files will be owned by root unless specified by --chown option. See documentation for details.
53
+ * --chown <path> <ownership>
54
+ change ownership of <path> recursively. Recommended to use uid:gid as opposed to username:groupname for ownership.
55
+ Option can be specified more than once.
53
56
* --disk-encryption-keys <remote_path> <local_path>
54
57
copy the contents of the file or pipe in local_path to remote_path in the installer environment,
55
58
after kexec but before installation. Can be repeated.
Original file line number Diff line number Diff line change @@ -99,7 +99,10 @@ Options:
99
99
copy over existing /etc/ssh/ssh_host_* host keys to the installation
100
100
* --extra-files <path>
101
101
contents of local <path> are recursively copied to the root (/) of the new NixOS installation. Existing files are overwritten
102
- Copied files will be owned by root. See documentation for details.
102
+ Copied files will be owned by root unless specified by --chown option. See documentation for details.
103
+ * --chown <path> <ownership>
104
+ change ownership of <path> recursively. Recommended to use uid:gid as opposed to username:groupname for ownership.
105
+ Option can be specified more than once.
103
106
* --disk-encryption-keys <remote_path> <local_path>
104
107
copy the contents of the file or pipe in local_path to remote_path in the installer environment,
105
108
after kexec but before installation. Can be repeated.
You can’t perform that action at this time.
0 commit comments