rvm / ubuntu_rvm

Ubuntu package for RVM
https://launchpad.net/~rael-gc/+archive/ubuntu/rvm
Apache License 2.0
694 stars 84 forks source link

Why not just tell users to run `su $USER`? #73

Closed ctrlcctrlv closed 1 year ago

ctrlcctrlv commented 1 year ago

Just curious! Instead of the reboot or log in/log out step.

raelgc commented 1 year ago

Because that way you'll run commands as super user and rvm doesn't require that. And when you've joined a new group, a logout is required. There are workarounds for that, anyway.

ctrlcctrlv commented 1 year ago

Worked for me. Also you're wrong about what su does. The password su takes is the current account password, it only is the root password if no login name specified.

raelgc commented 1 year ago

Yes, you're right, it'll basically works like a new login until you close the terminal. I never tested if it'll really load user new groups.

ctrlcctrlv commented 1 year ago

Yup it does :-) that's why I suggested it. It's OK, it's a weird POSIX internal thing. sudo = set user and do not superuser-do!