summaryrefslogtreecommitdiff
path: root/Userland/su.cpp
AgeCommit message (Collapse)Author
2020-11-08su: Refuse to run if stdin is not a TTYAndreas Kling
2020-09-25Meta+Userland: Make clang-format-10 cleanBen Wiederhake
2020-09-21Userland: Switch su over to Core::AccountPeter Elliott
2020-08-06Userland: Use Core::ArgsParser for 'su'Linus Groh
2020-07-28Userland: Make su require passwordsPeter Elliott
2020-06-17su: Tweak informal stringAndreas Kling
2020-06-17Userland: Compliment the user when running su(1) :^)Sergey Bugaev
2020-03-08Userspace: Add missing #includes now that AK/StdLibExtras.h is smallerAndreas Kling
2020-02-14Userland: Fix typos in setting user idShannon Booth
Fixes: #1219
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-04su: Use setgroups() to switch over to the target user's extra GIDsAndreas Kling
Before this, su would leave the process's extra GIDs untouched, simply inheriting them from whoever spawned su. Now we grab the target user's groups from /etc/group and setgroups().
2019-06-07Userland: Run clang-format on everything.Andreas Kling
2019-02-21Userland: Minor tweaks in /bin/suAndreas Kling
2019-02-21Kernel+Userland: Implement setuid() and setgid() and add /bin/suAndreas Kling
Also show setuid and setgid bits in "ls -l" output. :^)