VIEW-OS(1)
π VIEW-OS(1) β the manual page, bestie edition β¨
okay so. welcome to the General Commands Manual for View-OS, and today's main character is viewsu. grab a snack, we're doing this π
π¦ NAME
viewsu β change your (virtual) user ID, or just go ahead and become the (virtual) superuser. yes, that's the whole vibe.
πΈ SYNOPSIS
viewsu [options] [username]
β¨ DESCRIPTION
So viewsu is how you become another user mid-login-session, no cap. If you run it with no username at all? It defaults to becoming the superuser. iconic behavior tbh π
That optional argument -? You can use it to hand yourself an environment that feels like you logged in directly, which is the whole point.
Real talk: this command is the View-OS counterpart of the su(1) command. Like, same energy, View-OS flavored π«Ά
And the $PATH situation, because yes we care:
- for normal users,
$PATHgets reset to/bin:/usr/bin - for the superuser, it's
/sbin:/bin:/usr/sbin:/usr/bin
You can change all that with the ENV_PATH and ENV_SUPATH definitions inside /etc/login.defs. that file is literally the plug π
π OPTIONS
The options that apply to the viewsu command are, and I cannot stress this enough, all of them:
-c,--commandCOMMAND β specify a command that's gonna get invoked by the shell using its-c. so like, you tell it what to run, the shell runs it, done β¨-,-l,--loginβ provides an environment similar to what the user would expect if the user had logged in directly. the cozy homecoming fit π§
heads up bestie: when you use-, it must be specified as the lastviewsuoption. the other two forms (-land--login) do not have this restriction. don't get caught out, fr fr.
-s,--shellSHELL β the shell that will be invoked. that's it, that's the option π
The invoked shell is chosen from the following, highest priority first:
- The shell specified with
--shell. - The shell indicated in the
/etc/passwdentry for the target user. /bin/shif a shell could not be found by any of the above methods.
so it's giving fallback chain, and honestly? reliable. lowkey a slay.
π SEE ALSO
su(1)linux.defs(5)
go read them, iykyk π
π AUTHORS
View-OS is a project of the Computer Science Department, University of Bologna. Project Leader: Renzo Davoli.
<http://www.sourceforge.net/projects/view-os>
Howto's and further information can be found on the project wiki:
<wiki.virtualsquare.org>
π NOTE
Most part of the text is taken from su(1). credit where credit is due, periodt.
and that's the whole page, bestie!! this was the VIEW-OS manual, source tag "VIEW-OS: a process with a view", dated August 5, 2009. drink some water, log out when you're done, and stay slay ππ
π¦ where this page comes from
- debian bookworm: umview 0.8.2-3 Β· GPL-2.0-only
- ubuntu jammy: umview 0.8.2-3 Β· GPL-2.0-only
- ubuntu noble: umview 0.8.2-3.1build2 Β· GPL-2.0-only
- Copyright (c) 2009 Renzo Davoli
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms