Current location - Quotes Website - Team slogan - Linux user name modification Linux user name modification
Linux user name modification Linux user name modification
How does the cloud server change the user name?

Linux changes the user name in several steps:

Usermod-l new user name old user name

Usermod-d/home/ new user name new user name

Groupmod-n new user name old user name

Usermod-u 1000 new user name

Id for viewing and verification. New user name.

How does linux modify the user name addition description?

You can use Usermod to modify the user information under linux, and naturally you can also modify the user name.

1, change the user name: usermod-lnewusernameusername. Change username to newusername.

2. other parameters of 2.usermod are as follows: -c remarks > modify the comment text of user account. -d login directory > modify directory when user logs in. -e validity period > modify the validity period of the account. -f buffer days > number of days to close the account after the password expires. -g group > modify the group to which the user belongs. -G group > modify the additional group to which the user belongs. -l account name > modify the user account name. -L Locks the user password to make it invalid. -s modifies the shell used by the user after logging in. -u modify the user ID. -U unlock password.

Linux can't change the user name with usermod?

Mine: But Linux can use usermod to change the user name.

The specific steps are as follows:

1.usermod-l new user name old user name

2.usermod-d/home/ new user name -m new user name

How does linux change the root name?

You can rename the root directory.

1. Use the vipw command to edit the passwd file, and find out which line of root (which should be in the first line) changed root to the desired name. In addition, we need to change the /etc/shadow file and change the row root to the name of need. Note: If the file names of /etc/passwd and /etc/shadow are inconsistent, it will be very troublesome.

2. You can use the command usermod-lnewnamoot to modify it. It is best to modify the root name in several windows to avoid the trouble caused by the modification error, and force it to be modified back in single-user mode.

How to modify the user name and password of oracle database?

Change the user name and password of oracle database (such as Linux), and friends who need it can refer to it.

First, the preparatory work before the transformation:

Connect to the server as root using ssh tool,

Then switch to oracle user: su-oracle (enter).

Use sqlplus to connect to the database: sqlplus/nolog (enter)

Log in to sys:conn sys/sysassysdba(Enter) as an administrator user.

The database connection is successful, and the preparation work is completed.

Second, modify the user name.

After the database connection is successful, continue to enter after the SQL> prompt:

First, find the user name that the user needs to modify: selectuser#, name from user $;; (Enter)-For example, user # equals 66.

Now you can modify the user name: update user $ set name =' new user name' where user # = 66; (Enter)

You will be prompted: 1rowupdated, indicating that the modification is successful.

Then enter: submit; ; (Enter) Commit the changes.

Third, modify the user password.

After the database connection is successful, when prompted by SQL>, enter the user name of ALTERUSER identified by the new password. (Enter)

Then enter: submit; ; (Enter) Submit the modification.