#sg ---- change group
#gpasswd groupname ----create group passwd in /etc/gshadow
#useradd [option] username
default in /etc/default/useradd without option
#useradd -d /opt/oracle -g dba oracle
1.edit /etc/
2. create and populatiing home directroy from /etc/skel/
3. setting permissions and ownership
-------------
in shell create passwd automatically
# echo" oracle" | passwd --stdin oracle
------------
#usermod -u 50000 oracle --change uid
#usermod -a -G fuser oracle --append a new group fuser to user oracle
#usermod -g alex oracle --change user oracle's primary group to alex
#usermod -L oracle ---lock user
------------
#userdel -r alex ---delete user and his home directory
# modify default expiration settings in /etc/login.defs
#vi /etc/login.defs --user passwd" expired date)
#chage user
----------------
# vi /etc/fstab ---
/dev/glsvg/GLShome /home ext3 defaults, usrquota,grpquota 1 2
#mount -o remount usrquota,grpquota /home
or
#mount -a --- to remount from /etc/fstab
---------------
#quotacheck -cugm /home ---quota is base on /dev/sda not base on
directory, it can use to limit inodes and block. most of time we limit
block
no inode. warning when reach soft limit
#quotaon, quotaoff --- start and stop quotas
#edquota username
or shell setquota username 4096 2049 10 20
#touch abe{29..43} --create file abe29-abe43
#quota the default block size is k
user admin
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Linux基本操作命令
wbzjacky
2019-02-24 13:12:38
真实的模拟***综合实验
wbzjacky
2019-02-24 13:12:37
三层交换机的HSRP、vlan、端口聚合
wbzjacky
2019-02-24 13:12:37
如果同事暗中伤害你,应该怎么办?
這個饅頭有餡
2019-02-24 13:59:08
职场中,抱怨越多的员工,越被领导瞧不起!
這個饅頭有餡
2019-02-24 13:59:08
老程序员被裁,应届生却能月薪 1.3 万?这你能忍?
前端高達
2019-02-24 13:48:04
遇到到处蹭吃却从不请客吃饭的主怎么办?
樑軍年
2019-02-24 13:26:35
高标准机房综合配线安装
wbzjacky
2019-02-24 13:12:38
IPsec ***实验
wbzjacky
2019-02-24 13:12:37
CISCO路由AAA的Easy ***
wbzjacky
2019-02-24 13:12:37
CISCO访问控制列表 企业网络管理的必杀技
wbzjacky
2019-02-24 13:12:37
Linux-常见环境变量及其作用
思莊學習中心
2019-02-24 13:55:06
24小時熱門文章