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
{{ message }}
Repository navigation
Replace mv with sudo cp && rm (or add chown 0:0 after mv) elsewhere to ensure root:root ownership. #3705
I think we should replace mv with sudo cp && rm (or add chown 0:0 after mv) elsewhere to ensure root:root ownership. For example, shim.env is owned by SSH user (as it uploaded via SFTP):
# ls -l /root/.dstack
total 33236
-rw-r--r-- 1 root root 278 Mar 26 14:24 host_info.json
drwxr-xr-x 11 root root 4096 Mar 26 16:26 runners
-rw-rw-r-- 1 debian debian 395 Mar 26 14:24 shim.env
-rw-r--r-- 1 root root 34015187 Mar 27 07:14 shim.log
changed the title [-]I think we should replace `mv` with `sudo cp && rm` (or add `chown 0:0` after `mv`) elsewhere to ensure `root:root` ownership. For example, `shim.env` is owned by SSH user (as it uploaded via SFTP):[/-][+]Replace `mv` with `sudo cp && rm` (or add `chown 0:0` after `mv`) elsewhere to ensure `root:root` ownership.[/+]on Apr 9, 2026
Activity
[-]I think we should replace `mv` with `sudo cp && rm` (or add `chown 0:0` after `mv`) elsewhere to ensure `root:root` ownership. For example, `shim.env` is owned by SSH user (as it uploaded via SFTP):[/-][+]Replace `mv` with `sudo cp && rm` (or add `chown 0:0` after `mv`) elsewhere to ensure `root:root` ownership.[/+]github-actions commentedon May 10, 2026
This issue is stale because it has been open for 30 days with no activity.
github-actions commentedon May 24, 2026
This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.