Folder
chown
chgrp
chmod 2777 | 755 /
chcon -t samba_share_t
chattr
mkdir -p /$(/date+%Y%m%d) / folderName ## folder template
tar -jvcf;
ln-s /DirectoryName LinkName ## linux soft link linux.soft.link linux.soft-link
du
File
grep-i 'text" *
fuser -L inf.*
yes | cp* /target/directory -rvf
ls -lad
/ftpdata/243d
/etc/passwd ; /etc/group
/etc/vsftpd/vsftpd.conf
service vsftpd restart
grep ^[^#]
passwd
chgrp GroupName DirectoryName
id username && list the group
usermod -g newPrimaryGroup UserName
chmod 760 *
usradd -g primaryGroup username
useradd -g sa -d /ftpdata/243d 40962
passwd 40962 userpasswd
usermod -g it -G ac userName
useradd -g sa -G it -d /ftpdata/243d 5267
groupadd
groupdel
etc/samba/smb.conf
service smb restart
chgrp :改變檔案所屬群組
chown :改變檔案擁有者
chmod :改變檔案的權限, SUID, SGID, SBIT等等的特性
4000 set-user-ID-on-execution SUID ## newCreateFile or EditFile is follow under call Program
2000 set-group-ID-on-execution SGID ## newCreate File or Folder Group follow Parent Folder
1000 set sticky bit SBIT Group have access permission under directory but cannot delete.
<< File >>
r (read):可讀取此一檔案的實際內容,如讀取文字檔的文字內容等;
w (write):可以編輯、新增或者是修改該檔案的內容 << 但不含刪除該檔案 >>
x (eXecute):該檔案具有可以被系統執行的權限。
<< Folder >> 目錄主要的內容在記錄檔名清單,檔名與目錄有強烈的關連
r (read contents in directory): can use ls 查詢該目錄下的檔名資料
w (modify contents of directory): 建立 ,刪除,更名,搬移該目錄內的檔案、目錄位置
x (access directory): 使用者能否進入該目錄成為工作 .e. cd
/ (root, 根目錄):與開機系統有關;
/usr (unix software resource):與軟體安裝/執行有關;
/var (variable):與系統運作過程有關。
沒有留言:
張貼留言