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
Hello, thank you for the great idea and the beautiful code you wrote.
I wonder if there is a way we can switch to another user instead of root?I mean, is there any way to change this line setuid(0); to something like setuser(root); ?
or better to ask, how to give the user's name instead of the user's uid?
I know my question may seem ridiculous, but I would be grateful if you could help me.
Thank you
The text was updated successfully, but these errors were encountered:
you can use a workaround to generate the userid using the username + the pwd module (which belongs to the standard library) and then pass it to setuid()
Hello, thank you for the great idea and the beautiful code you wrote.
I wonder if there is a way we can switch to another user instead of root?I mean, is there any way to change this line
setuid(0);
to something likesetuser(root);
?or better to ask, how to give the user's name instead of the user's uid?
I know my question may seem ridiculous, but I would be grateful if you could help me.
Thank you
The text was updated successfully, but these errors were encountered: