Linux Create User Account
来源:互联网 发布:js单独一个文件怎么写 编辑:程序博客网 时间:2024/04/30 02:27
Q. How do I create a new Linux user account ? How do update or modify default Linux new user information? Using the command prompt (shell) tools, how do I add a user to the system? What are command line options for adding a user?
A. To create a new user account under any Linux distribution use command called useradd. The system administrator is responsible for creating account. Login as root user (or use sudo command).
useradd command syntax
- useradd [options] {username}
Depending on command line options, the useradd command will update system files (/etc/passwd and /etc/shadow file with password) and may also create the new user's home directory and copy initial files.
Linux add a new user called rakhi
Type the command as follows:
- useradd rakhi
Set a password for rakhi:
- passwd rakhi
Without password user account will be in locked status. To unlock the account, you need to use above passwd command. Use passwd command to assign a password and set password aging guidelines.
Set account disable date
You can set date for the account to be disabled in the format YYYY-MM-DD with -e option while creating account itself:
- useradd -e {yyyy-mm-dd} {username}
- useradd -e 2008-12-31 jerry
Set default password expiry
The -f {days} option set number of days after the password expires until the account is disabled. (If 0 is specified, the account is disabled immediately after the password expires. If -1 is specified, the account is not be disabled after the password expires.)
- Linux Create User Account
- Linux Create User Account
- SQL Server 2008 User Account Create (For Frank's website)
- Oracle Apps Script to create a new User Login Account
- Setup Was Unable to Create a DCOM User Account
- [分享]Setup Was Unable to Create a DCOM User Account
- linux出现user account has expired解决方案
- linux出现user account has expired解决方案
- Unable to create account user="orats2". useradd: cannot create directory /oracle/TS2
- setup was unable to create a DCOM user account in order to register valec.exe
- Setup Was Unable to Create a DCOM User Account" Error Message in Visual Studio 6.0
- VC6.0:Setup was unable to create a DCOM user account
- 安装VC6,Setup Was Unable to Create a DCOM User Account
- 重装VS6时,弹出Setup Was Unable to Create a DCOM User Account错误的解决方法
- 安装VC6,Setup Was Unable to Create a DCOM User Account
- 重装VS6时,弹出Setup Was Unable to Create a DCOM User Account错误的解决方法
- Create Magento SOAP account
- create datastage account
- 正则表达式学习资源汇总
- django中创建一个Model
- 适合大一孩子们的题目
- mysql 数据库整理——数据表
- Django视图,与数据库交互并返回数据
- Linux Create User Account
- matlab2c使用c++实现matlab函数系列教程-std函数
- Tcp/Ip Monitor
- 用户和用户组账号管理命令
- enable_shared_from_this解析
- 【数学结论】51Nod 1674 区间的价值 V2
- ubunt和Windows共享目录设置备份
- Python中如何调用Linux命令
- 数据结构第二周项目--C/C++语言中函数传递的三种方式