chapter1 Accessing the command line using the local console

1、命令

usermod -L username 禁用用户

usermod -U username 开启用户

禁用用户后, 用户连接时输入正确的密码也提示出错。 主要在/etc/shadow加入!屏蔽用户

也可以直接修改/etc/password后的shell为/sbin/nologin,输入正确的密码后自动退出。

时间: 2024-10-17 13:41:34

chapter1 Accessing the command line using the local console的相关文章

RH124 Chapter 1 Accessing the Command Line

ls date cal whoami 命令 -选项参数 选项可叠加(ls -lh /boot =  ls -l -h /boot ) ls         显示当前目录文件 pwd     显示当前目录 ls -a      显示所有文件(包括以.开头的隐藏文件) ls -l      显示文件(包括属性信息)(单位为字节) clear     清屏(快捷键是ctrl+l) ls -ld    显示某个文件夹自身目录属性,不会显示目录里面文件的属性 ls --help   一个单词作为一个选项用

[Node.js] Pass command line arguments to node.js

Command line arguments are often used to modify the behavior of an application or specify needed parameters for operation. In this lesson, you will learn how to access the command line arguments passed to your node.js application as well as different

How to build .apk file from command line(转)

How to build .apk file from command line Created on Wednesday, 29 June 2011 14:32 If you don’t want to install a number of programs for building your Android project, this article is for you. You will need only JDK, the Android SDK platform tools and

【转载】Data Science at the Command Line

Data Science at the Command Line Data Science at the Command Line is a new book written by Jeroen Janssens. This website contains information about the upcoming workshop in London, the webcast from August 20th, instructions on how to install the Data

MySQL5.6 Using a password on the command line interface can be insecure

最近把MySQL从5.5升到5.6以后,mysqldump居然不好用了,提示:  代码如下 复制代码 [[email protected] ~]# /usr/local/mysql/bin/mysqldump  -uroot -proot db > bak.sqlWarning: Using a password on the command line interface can be insecure. 翻译过来是:在命令行界面上使用密码可以是不安全的. 这让人有点郁闷,5.5用的一直都很爽,

Ubuntu wireless network connection in command line

After installed the the graphical card driver in Ubuntu, the gnome desktop was not working anymore, needs to install and setup the wireless network in command line, herewith the procedure, 1, scan the available wifi network, sudo iwlist scan 2, recei

安装SQL Servre2000时提示“command line option syntax error! type command /? for help”

问题: 当程序正在安装ms数据访问组件时,弹出错误提示框:command line option syntax error,type command/? for help,点击确定继续:到了程序正在安装HTML帮助时,弹出标题为html help 1.32 update错误提示框:command line option syntax error,type command/? for help,点击确定继续:程序开始复制文件,复制完后弹出错误提示框:无法找到动态连接库sqlunirl.dll(sq

Linux Command Line 笔记(1)

Yunduan CUI graphical user interfaces make easy tasks easy, while command line interfaces make difficult tasks possible Part 1 学习Shell 1. 什么是 Shell? Shell 是用户与操作系统交流的程序,它读取用户的键盘输入并交由操作系统执行相应的命令.所有linux都支持一个叫做 bash 的shell,它的全称是 "Bourne Again SHell&quo

Command Line Skills

Part 1: Command Line Interface(CLI) The Command Line Interface (CLI), is a text-based interface to the computer, where the user types in a command and the computer then executes it. The CLI environment is provided by an application on the computer kn