multiple pages: change user_name to username (#3841)
This commit is contained in:

committed by
GitHub

parent
2c9b7c9f5c
commit
26e019b295
@@ -25,7 +25,7 @@
|
||||
|
||||
- List all gists for the currently logged in user:
|
||||
|
||||
`gist -l {{user_name}}`
|
||||
`gist -l {{username}}`
|
||||
|
||||
- Use the id from the gist URL to modify or include a file:
|
||||
|
||||
|
@@ -5,24 +5,24 @@
|
||||
|
||||
- Create/overwrite htpasswd file:
|
||||
|
||||
`htpasswd -c {{path/to/file}} {{user_name}}`
|
||||
`htpasswd -c {{path/to/file}} {{username}}`
|
||||
|
||||
- Add user to htpasswd file or update existing user:
|
||||
|
||||
`htpasswd {{path/to/file}} {{user_name}}`
|
||||
`htpasswd {{path/to/file}} {{username}}`
|
||||
|
||||
- Add user to htpasswd file in batch mode without an interactive password prompt (for script usage):
|
||||
|
||||
`htpasswd -b {{path/to/file}} {{user_name}} {{password}}`
|
||||
`htpasswd -b {{path/to/file}} {{username}} {{password}}`
|
||||
|
||||
- Delete user from htpasswd file:
|
||||
|
||||
`htpasswd -D {{path/to/file}} {{user_name}}`
|
||||
`htpasswd -D {{path/to/file}} {{username}}`
|
||||
|
||||
- Verify user password:
|
||||
|
||||
`htpasswd -v {{path/to/file}} {{user_name}}`
|
||||
`htpasswd -v {{path/to/file}} {{username}}`
|
||||
|
||||
- Display a string with username (plain text) and password (md5):
|
||||
|
||||
`htpasswd -nbm {{user_name}} {{password}}`
|
||||
`htpasswd -nbm {{username}} {{password}}`
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
- View all logins by a specific user and show the ip address instead of the hostname:
|
||||
|
||||
`last {{user_name}} -i`
|
||||
`last {{username}} -i`
|
||||
|
||||
- View all recorded reboots (i.e., the last logins of the pseudo user "reboot"):
|
||||
|
||||
|
@@ -4,15 +4,15 @@
|
||||
|
||||
- Add a user to the current project:
|
||||
|
||||
`add user {{user_name}};`
|
||||
`add user {{username}};`
|
||||
|
||||
- Grant a set of authorities to a user:
|
||||
|
||||
`grant {{action_list}} on {{object_type}} {{object_name}} to user {{user_name}};`
|
||||
`grant {{action_list}} on {{object_type}} {{object_name}} to user {{username}};`
|
||||
|
||||
- Show authorities of a user:
|
||||
|
||||
`show grants for {{user_name}};`
|
||||
`show grants for {{username}};`
|
||||
|
||||
- Create a user role:
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
|
||||
- Grant a role to a user:
|
||||
|
||||
`grant {{role_name}} to {{user_name}};`
|
||||
`grant {{role_name}} to {{username}};`
|
||||
|
@@ -2,9 +2,9 @@
|
||||
|
||||
> Send email from the command line.
|
||||
|
||||
- Send a message with the content of message.txt to the mail directory of local user `user_name`:
|
||||
- Send a message with the content of message.txt to the mail directory of local user `username`:
|
||||
|
||||
`sendmail {{user_name}} < {{message.txt}}`
|
||||
`sendmail {{username}} < {{message.txt}}`
|
||||
|
||||
- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in `message.txt`:
|
||||
|
||||
|
Reference in New Issue
Block a user