#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小時熱門文章
-
釘釘打卡速度慢
-
使用neovim打造go ide(支持代碼跳轉, 代碼補全, 實時語法檢查)
-
Nginx R31 doc 官方文檔-01-nginx 如何安裝
-
Python 潮流週刊#51:用 Python 繪製美觀的圖表
-
Qt/C++音視頻開發74-合併標籤圖形/生成yolo運算結果圖形/文字和圖形合併成一個/水印濾鏡
-
挑戰程序設計競賽 2.2章習題 POJ - 3617 Best Cow Line 貪心
-
字節面試:MySQL什麼時候 鎖表?如何防止鎖表?
-
.NET8連接SQL SERVER 2008 R2 報:證書鏈是由不受信任的頒發機構頒發的
-
golang開發環境搭建(win10)
-
python計算機視覺學習筆記——PIL庫的用法