VIEW-OS(1) | General Commands Manual | VIEW-OS(1) |
viewsu - change (virtual) user ID or become (virtual) superuser
viewsu [options] [username]
The viewsu command is used to become another user during a login session. Invoked without a username, viewsu defaults to becoming the superuser. The optional argument - may be used to provide an environment similar to what the user would expect had the user logged in directly. This command is the View-OS counterpart of the su(1) command. The value of $PATH is reset to /bin:/usr/bin for normal users, or /sbin:/bin:/usr/sbin:/usr/bin for the superuser. This may be changed with the ENV_PATH and ENV_SUPATH definitions in /etc/login.defs.
The options which apply to the viewsu command are:
-c, --command COMMAND
-, -l, --login
When - is used, it must be specified as the last viewsu option. The other forms (-l and --login) do not have this restriction.
-s, --shell SHELL
The invoked shell is chosen from (highest priority first):
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>.
Most part of the text is taken from su(1).
August 5, 2009 | VIEW-OS: a process with a view |