User and Group Commands
Adding a new user: Useradd
Example: useradd + username
FAQ:
Using a non-root user Can not use this function, log in as root, or get root privileges + environment variables.
How to get root privileges: su -, and enter the password;
Can't use su alone, su value to get permission, no environment variable
1.Every added A user, the system automatically creates a new file under /home
After entering home, you can change the password by command:passwd +username.
The passwd file under 2./ect will be changed to write new user information.
Delete User: Userdel
1.Userdel + Username, delete only users, delete files under /home
2. Continue to delete files with rm
Change user information: Usermod
Example: Change user group: usermod–g new group to change
New group: groupadd
in /ect The group file can be seen in the group below, and the group information is stored.
When adding a user without a group parameter, a group with the same username is added by default.
User Switching
Su(switch user) + Switching to user; exit exiting
When a new user logs in, the default current directory is the user's home directory
Supplement
User Shell
Shell is a layer outside the kernel that is responsible for user commands and dealing with the kernel.
Shells come in different forms, such as Cshell, and many commands are executed differently in different shells.
Bash=Bshell->B –Again –Shell; or have Cshell, ksh, sh, etc.
Ubuntu is a good Linux operating system, but for newcomers who just installed it, how to connect to
The introduction of the information age has brought great convenience and benefits to our l
There are 7 startup levels in Linux: #0 - halt (Do NOT set initdefault to this)# 1 - Single
Alibaba Cloud host has been a very good choice for domestic small webmasters, not only mature techno
Linux/centos solves Tomcat memory overflow
Linux service configuration linux system routing configuration
Linux hard disk partition format and mount
Remove duplicate data from file
Reboot command--Linux command application big dictionary 729 command interpretation
Ubuntu disk cleanup protection
User-friendly transformation of Windows XP login method
Windows 7 batch change photo name one button to complete
What should I do if the server connection is abnormal when Win7 plays LOL?
Windows 8 platform is fully compatible with Windows Phone applications
How to turn on the four channels under Windows 7
IE browser favorites bulk delete tips
Win7 deletes the unwanted disk partition tutorial
Win8 Win7 dual system installation tutorial
Kindle Fire HD Source Codes download
Windows mobile simulator online configuration implementation tutorial