Can emulate a user from another one? #64

Open
opened 2025-02-05 15:28:05 +01:00 by Benjamin_Loison · 1 comment

For instance if server admin is busy, could make that if authenticate with a given SSH key, then it enforces working in /home/parent_user/child_user/ as ~. Or the user could host his own SSH server to ensure restraining the child user, as he may not have the rights to do so otherwise.

In my case for some reason the admin seems to have failed moving my user, so I can't use the server anymore, see the message:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAIF6CZw5Xty+0M+jxooFxSdAL7LWapq8JicSwXESkaRMw
lb4g4LVDEgBCMG3zMf12bVRXSPrkyZFgIz9pkasoG7/uuCw5+gX/5eDF3ocNSgSF
0qoBSvXP/WINMD4jo0Po409OVgjRbR+ohUKknzEgHNbaKSLfMjNyZl5kkG8QIYi5
t5d2CZZOewaTUmNs578o/39Q2RCxmfLrdbK2wfJid0fY1r4SaUcz4pSXnklOOKHD
nCil6wdmBJVLcaG7yur44KIJ+ef9Et2gf96JMS0Uzc3yzaUJq5B8YtF1pJh8Xi2c
p+GhKvtdyrC9SbcoVQGg+hPfmsRj+wGZPyj+YA==
=ljUw
-----END PGP MESSAGE-----
For instance if server admin is busy, could make that if authenticate with a given SSH key, then it enforces working in `/home/parent_user/child_user/` as `~`. Or the user could host his own SSH server to ensure restraining the child user, as he may not have the rights to do so otherwise. <details> <summary>In my case for some reason the admin seems to have failed moving my user, so I can't use the server anymore, see the message:</summary> ``` -----BEGIN PGP MESSAGE----- hF4DTQa9Wom5MBgSAQdAIF6CZw5Xty+0M+jxooFxSdAL7LWapq8JicSwXESkaRMw lb4g4LVDEgBCMG3zMf12bVRXSPrkyZFgIz9pkasoG7/uuCw5+gX/5eDF3ocNSgSF 0qoBSvXP/WINMD4jo0Po409OVgjRbR+ohUKknzEgHNbaKSLfMjNyZl5kkG8QIYi5 t5d2CZZOewaTUmNs578o/39Q2RCxmfLrdbK2wfJid0fY1r4SaUcz4pSXnklOOKHD nCil6wdmBJVLcaG7yur44KIJ+ef9Et2gf96JMS0Uzc3yzaUJq5B8YtF1pJh8Xi2c p+GhKvtdyrC9SbcoVQGg+hPfmsRj+wGZPyj+YA== =ljUw -----END PGP MESSAGE----- ``` </details>
Author
Owner
The person:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdA2pVLi5VDK/HwOhQHb7KRKMZ/C4Lca+MqRCfd/9mAwxQw
ExKcddllQNcqrd7a2KxNSJEuOniuNx/XjtTlOTR3HJgqAAYhWvIWPDilhAJchJLb
0kABfbqtEH4IglyP7+FZkxmeEIBIzUCpL/AY8uCFKQvhS1vOVF8WWNzDlgU+rfzQ
UgUKvP1tz7RNxiKwv5GRo9Bo
=StgG
-----END PGP MESSAGE-----

may be interested in this for server access sharing if still do not have the admin having created a user for him.

<details> <summary>The person:</summary> ``` -----BEGIN PGP MESSAGE----- hF4DTQa9Wom5MBgSAQdA2pVLi5VDK/HwOhQHb7KRKMZ/C4Lca+MqRCfd/9mAwxQw ExKcddllQNcqrd7a2KxNSJEuOniuNx/XjtTlOTR3HJgqAAYhWvIWPDilhAJchJLb 0kABfbqtEH4IglyP7+FZkxmeEIBIzUCpL/AY8uCFKQvhS1vOVF8WWNzDlgU+rfzQ UgUKvP1tz7RNxiKwv5GRo9Bo =StgG -----END PGP MESSAGE----- ``` </details> may be interested in this for server access sharing if still do not have the admin having created a user for him.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/linux#64
No description provided.