Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/su.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/su.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/su.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/su.html on line 8
Switch user ID (UNIX)
su [-c] [[-] userid [arguments]]
Neutrino
- -c
- Pass the specified list of arguments to the shell.
- userid
- Switch to the specified user ID. If preceeded by the -
argument, userid's login scripts will run, setting up the
shell environment as if you had actually logged in as the specified
user.
The su utility lets you temporarily become another user,
then return to your regular userid.
The su utility requests the password of the given
userid (root, by default) and changes to that
userid, invoking its shell but modifying only
essential elements of the environment. Only the HOME,
PATH, and possibly SHELL environment
variables are changed, but the new shell has the rights and privileges of the
user specified. The new userid remains in effect until
this shell exits.
|
This utility needs to have the setuid (“set user ID”)
bit set in its permissions.
If you use
mkefs,
mketfs,
or
mkifs
on a Windows host to include this utility in an image,
use the perms attribute to specify its permissions explicitly,
and the uid and gid attributes to set the ownership
correctly. |
- /bin/sh
- Korn shell command interpreter.
- /dev/null
- The bit bucket.
- /etc/.pwlock
- This file is used to lock password files when modifications are taking place.
- /etc/acclog
- Logs system accounting information.
- /etc/default/profile
- The passwd utility copies this file as a user's initial .profile
when it creates a new account.
- /etc/group
- Defines the known groups for the system.
- /etc/passwd
- Defines the valid user IDs on the system.
- /etc/shadow
- Contains encoded versions of the actual passwords for user accounts.
The passwords themselves aren't stored in the /etc/passwd
file.
- /usr/adm/sulog
- Records all su activity.
login,
passwd
Logging In, Logging Out, and Shutting Down
in the Neutrino User's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/s/su.html on line 164
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/s/su.html on line 164