Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission question #1901

Open
jumbohei opened this issue May 22, 2022 · 3 comments
Open

permission question #1901

jumbohei opened this issue May 22, 2022 · 3 comments

Comments

@jumbohei
Copy link

Hi, I have a question regarding to the permission and much appreciated for inputs. Let’s say if a user A who writes a program and runs as a user and then he/she wants to take a snapshot and I don’t want to give this person the root access. Is that doable? If yes, can user A goes into the image and modify the UID to 0, which is as root, to restore and run that application as root? Thanks!

@rst0git
Copy link
Member

rst0git commented May 22, 2022

@jumbohei It might be worth looking at user namespaces. You can set UID=0 as follows:

$ id -u
1000
$ unshare -Umr bash
# id -u
0

@rst0git
Copy link
Member

rst0git commented May 22, 2022

I don’t want to give this person the root access. Is that doable?

Yes, checkpoint/restore can be used with non-root users as well: #1155

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants