Unix and Linux Discussions Tagged with username |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
10 |
14,769 |
Shell Programming and Scripting |
|
|
|
4 |
22,114 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,968 |
AIX |
|
|
|
6 |
2,924 |
Shell Programming and Scripting |
|
|
|
9 |
10,756 |
Solaris |
|
|
|
7 |
142,643 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
106,465 |
Ubuntu |
|
|
|
1 |
3,612 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
5,672 |
Shell Programming and Scripting |
|
|
|
2 |
2,905 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,502 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
5,127 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
10,353 |
Shell Programming and Scripting |
|
|
|
10 |
11,607 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,900 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
5 |
3,518 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,130 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,105 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,738 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
18,069 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,979 |
Cybersecurity |
|
|
|
1 |
5,267 |
IP Networking |
|
|
|
7 |
14,877 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,284 |
Cybersecurity |
|
|
|
2 |
3,006 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,670 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
6,137 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,912 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
14,639 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
16,235 |
Cybersecurity |
|
|
|
1 |
3,383 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,367 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
21,040 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,780 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,474 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
10,678 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
12,096 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,908 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
18,161 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,207 |
UNIX for Dummies Questions & Answers |
su(1) General Commands Manual su(1)
Name
su - substitute a user ID
Syntax
su [username]
su - [username]
su -f [username]
Description
The command requests the password of the specified username. If the correct password is given, changes to that username without changing
the current directory. The user environment is unchanged except for HOME and SHELL which are taken from the password file entry for user-
name. The shell that is run is also taken from the password file entry for username. The new user ID stays in force until the shell
exits.
If no username is specified, `root' is assumed. To remind the superuser of his responsibilities, the shell substitutes `#' for its usual
prompt.
Options
-f Prevents from executing the .cshrc file, making start up faster.
- Simulates a full login.
Diagnostics
Sorry
An invalid password was supplied for the specified username.
Unknown login: username
The specified username was not found in the passwd database.
No directory
The home directory for the username is not accessible at this time (only with ``-'' argument).
No shell
The shell specified in the passwd database entry for username could not be executed.
Kerberos initialization failure
Consult your system administrator.
If enhanced security features are enabled the following error messages are also possible:
Requires secure terminal
Attempt to su to UID 0 on a line that is not marked secure in
User's password has expired
Access is denied because the password for username is expired.
This account is disabled
Access is denied because the auth entry corresponding to username is marked disabled.
Files
Log file of anyone who became
root, with a date mark.
See Also
csh(1), sh(1), passwd(5yp), environ(7), edauth(8)
Security Guide for Administrators
Security Guide for Users
su(1)