When I want a root session, i use `sudo -i`. Unlike `su`, it does a proper root login and is in no way (technically or practically) different from actually logging in as root. I don't know why I haven't seen more people use that command. It has always worked perfectly for absolutely anything I would want a full root session for.
Announcement
Collapse
No announcement yet.
Systemd Introduces Its Own "su" Like Command
Collapse
X
-
Originally posted by Dharc View Post
innovation from him? kind a joke. lol.
just reinventing the wheel to look like he is important. look, he does not present any argument why su is deprecated. just said ""su" is really a broken concept."
Comment
-
Originally posted by tajjada View PostWhen I want a root session, i use `sudo -i`. Unlike `su`, it does a proper root login and is in no way (technically or practically) different from actually logging in as root. I don't know why I haven't seen more people use that command. It has always worked perfectly for absolutely anything I would want a full root session for.
Comment
-
Originally posted by tajjada View PostWhen I want a root session, i use `sudo -i`. Unlike `su`, it does a proper root login and is in no way (technically or practically) different from actually logging in as root. I don't know why I haven't seen more people use that command. It has always worked perfectly for absolutely anything I would want a full root session for.
Code:alias beroot="sudo -i"
Comment
-
Originally posted by Spazturtle View Post
If something has issues then it should be criticized, it is the only way things ever get better. Think how bad the Linux kernel would be if you weren't allowed to report bugs or criticize it.
Also calling everyone who has a different opinion to you a troll makes you look stupid.
Comment
-
Originally posted by Palewolf View PostAnd what was wrong with "su -"? As far as i know it does exactly the same.
o clears all the environment variables except TERM
o initializes the environment variables HOME, SHELL, USER, LOGNAME, and PATH
o changes to the target user's home directory
o sets argv[0] of the shell to '-' in order to make the shell a login shell
see, no mention of XDG_RUNTIME_DIR
- Likes 1
Comment
Comment