Commit de6fc15
authored
fix: update ownership of user homedir (#238)
Fixes #229
If a user mounts a Docker volume into /home/$USER, Docker will automatically assign permissions root:root to it as the envbuilder container runs as root by default. The resulting container will then have /home/$USER owned by root:root. The user will be unable to write any files there until they manually fix the permissions, which would require root privileges.
This PR adds a step to fix ownership of /home/$USER to the uid:gid we get from UserInfo.1 parent 13e31d1 commit de6fc15
2 files changed
+80
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
| 762 | + | |
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
768 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
769 | 790 | | |
770 | 791 | | |
771 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
1354 | 1356 | | |
1355 | 1357 | | |
1356 | 1358 | | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1357 | 1393 | | |
1358 | 1394 | | |
1359 | 1395 | | |
| |||
1465 | 1501 | | |
1466 | 1502 | | |
1467 | 1503 | | |
1468 | | - | |
1469 | | - | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1470 | 1507 | | |
1471 | 1508 | | |
1472 | 1509 | | |
| |||
1479 | 1516 | | |
1480 | 1517 | | |
1481 | 1518 | | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
1482 | 1534 | | |
1483 | 1535 | | |
1484 | 1536 | | |
| |||
1488 | 1540 | | |
1489 | 1541 | | |
1490 | 1542 | | |
| 1543 | + | |
1491 | 1544 | | |
1492 | 1545 | | |
1493 | 1546 | | |
1494 | | - | |
| 1547 | + | |
1495 | 1548 | | |
1496 | 1549 | | |
1497 | 1550 | | |
| |||
0 commit comments