method

su

ruby latest stable - Class: WEBrick::Utils
su(user)
private

Changes the process’s uid and gid to the ones of user