Create a new user named "add ROOT permission" and "configure" in ubuntu. The "TAB key" cannot be used 」

Source: Internet
Author: User
Create a new user named "add ROOT permission" "configuration" "cannot use the TAB key" in ubuntu. 1. create a user named www.2cto. comadduser create user name passwd create user name add new user 2. create home directory # cd/home1. create home directory: # m...
Create a new user "add ROOT permission" "configuration" "cannot use the TAB key" 1. create a user www.2cto.com adduser create a user name passwd create a user name to add a new user 2, create a home directory # cd/home1. create a home directory: # mkdir create a user name 2. copy the environment variable Template File: # cp/etc/skel /. B * support # cp/etc/skel /. p * support 3. modify permission # chown-R support. support # chmod 770 support www.2cto.com 3. Grant ROOT permission Method 1: modify the/etc/sudoers file, find the following line, and comment the preceding line (#) remove ## Allows people in group wheel to run all commands % wheel ALL = (ALL) ALL And then modify the user to belong to the root group (wheel). The command is as follows: # usermod-g after the root user name is modified, you can now log on with the new user name account, and then use the command su -, you can get the root permission to perform the operation. Method 2: modify the/etc/sudoers file, find the following line, and add a line under root, as shown below: # Allow root to run any commands anywhereroot ALL = (ALL) the name ALL = (ALL) ALL of the new users has been modified. now, you can log on with the new username account and run the su-command to obtain the root permission for the operation. 4. you cannot use the TAB key or up/down key. the command line does not display the current path. this is a common account created by default for ubuntu. the default shell is/bin/sh, this does not support tabs and other keys, so you can change the shell of the "specified user" account to/bin/bash. 1. view the current shell: # echo $ SHELL/bin/sh2. modify shell to/bin/bash: # usermod-s/bin/bash username

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.