1. When performing certain operations that require higher permissions, you can use (sudo + raw commands) for higher permission operations, but you will need to enter a password each time you use it for the first time, which is 2 more hassle. Change the root password to avoid 1. Problems in the.
Use sudo passwd in terminal to change password
Use the (SU root) command to switch to the root user. (The first time the password is not changed
Create group:$ Sudo addgroup ccache
Create a user:$ Sudo useradd ccache-G ccache-m
Create a new wfz user and create the home directory. Specify the user group as ccache.$ Sudo useradd wfz-G ccache-m
Add existing users to a specified group$ Sudo adduser $ user ccache
$ Sudo adduser DBH ccache$ Sudo adduser Paul ccache$
This is the case: JDK and tomcat were installed on the Ubuntu Virtual Machine some time ago, and the environment variables were set in/etc/profile (for example, the figure has been changed, which is generally the case)
After logging on again several times, I found that even if I entered the correct user name and password, I jumped to the logon interface and could not enter the system.
Solution:
It
1: View all groups of users
Cat /etc/group
ftpgroup:x:1001:ftpadmin
Ftpgroup is a user group and ftpadmin is a user of this group
1) Create user groups
Groupadd Ftpgroup
2) Delete user group
Groupdel Ftpgroup
2: View Users
Cat/etc/shadow
ftpadmin:$6$8qc/zlcz$zan/ Nx.dg5o4lb87z86gpsmnhvghdynvc1tt0m.nraurw.5
1, add the user, first with the AddUser command to add a normal user, the command is as follows:#adduser TommyAdd a user named Tommy#passwd Tommy//Change PasswordChanging password for user Tommy.New UNIX Password://Enter your password hereRetype new UNIX Password://Enter password againPasswd:all authentication tokens u
1. Switch from the user to the root user
When we need to perform some root-permission operations (such as repairing system files), it is often necessary to use sudo to authorize them, which can be cumbersome.
At this point we can switch from the user to the root user, simply execute the instruction sudo su, and then
1. Use the sudo command to perform root permission operationsThis method is the simplest, that is, add a sudo command before the command.2. Switching between common users and root usersIf this is the first time you switch from a common user to a root user, you must first create a root user, set the password, and then switch.In this way, the root
[email protected]:~$ sudo useradd Karen[sudo] password for shibo-ubuntu:[Email protected]:~$ sudo passwd KarenEnter the new UNIX password:Once again, enter the new UNIX password:passwd: Successfully updated password[Email protected]:~$ sudo mkdir/home/karen[Email protected]:~$ sudo chown-rv karen/home/karenChanged ownership of "/home/karen" from the root to Karen[Email protected]:~$ sudo groupadd-g 2001 music[Email protected]:~$ sudo gpasswd-a Karen M
Linux, each file, folder has its own: the user, the user group belong to
The authority is also divided into three paragraphs
Ls-l can be viewed, rwx respectively: Read and write execution
For example: Ls-l get KKK directory: rwr-xr--x KKK KKK
This means that the KKK directory is allowed for the file owner KKK to be read and write, and is not writable for the user
As you can see, most of the tasks are easy to accomplish in Ubuntu's daily use. But what happens when you're ready to expand your application on Ubuntu, such as using a new application, building a home network, and adding a new user? This brief how-to article will share some tips with you, including creating and managing other users, validating some key differences with other tips, and providing some tips f
Linux is a system with a very strict user rights management, Ubuntu as the most popular desktop distribution, provides a simple and easy-to-use graphical interface tools to manage users, but command-line tools are often more powerful, the use of skilled words more efficient. User management commands are commonly used in the following sections:Useradd This command
User management in Ubuntu (5) grant regular user system administrator permissions Related links: Ubuntu User Management (a) user account http://www.2cto.com/ OS /201207/143927.html?ubuntuin us
: Deleting a user User2Userdel User2Example: Deleting a user user3 and deleting his working directoryUserdel–r User3
5. View user InformationID Command view a user's UID and GID, for example: View user4 IDID user4Finger command--you can view the user's home directory, start the shell, user name, address, phone, and ot
How to modify the Ubuntu root password and prevent others from using the single-user mode to change the password after Linux is installed, there will be a Ubuntu root user. So how can I change the password of the Ubuntu root user
Ubuntu is a popular Linux system recently. Because Ubuntu does not start the root user by default, we will introduce how to enter the root user. (1) switching from a user to a root user, whether logging on to
(Reproduced) How to enable root User Logon for Ubuntu keylin 14.04, keylin14.04How to enable root User Logon for Ubuntu keylin 14.04
Ubuntu is a Linux operating system based on desktop applications. Ubuntu is based on the Debian r
Rotten mud: vsftpd virtual user configuration in ubuntu, ubuntuvsftpd
This document consistsIlanniwebProviding friendship sponsorship, first launched in the dark world
For more articles, follow me on ilanniweb.
Previously, vsftpd was built under centos, and it was supposed to be built on ubuntu following the previous steps. But the actual situation tells me Yes,
Ubuntu user management (4) password management links: Ubuntu User Management (a) user account http://www.2cto.com/ OS /201207/143927.html?ubuntuin user management (2) Group management http://www.2cto.com/ OS /201207/143929.html;Ub
This article consists of Ilanniweb provide friendship sponsorship, starting in the mud row of the worldWant to get more articles, you can pay attention to my ilanniweb.Previously built vsftpd are under the CentOS, this thought in Ubuntu follow the previous steps to build. But the reality tells me that I was too taken for granted. After some of the toss and finally put Ubuntu under the VSFTPD virtual
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.