Add SRI notes.
This commit is contained in:
parent
8cef11dff4
commit
968672c091
8
2/SRI/notes/ftp-server.txt
Normal file
8
2/SRI/notes/ftp-server.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
apt install proftpd ftp
|
||||||
|
id ftp
|
||||||
|
ftpasswd --passwd --name admin --home /srv/ftp --uid 124 \
|
||||||
|
--shell /bin/false --file /etc/proftpd/passwd.virtual
|
||||||
|
|
||||||
|
# In /etc/proftpd/proftpd.conf
|
||||||
|
AuthUserFile /etc/proftpd/passwd.virtual
|
||||||
|
RequireValidShell off
|
13
2/SRI/notes/quotas.txt
Normal file
13
2/SRI/notes/quotas.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apt install quotas
|
||||||
|
find /lib/modules/`uname -r` -type f -name '*quota_v*.ko*'
|
||||||
|
|
||||||
|
# In /etc/fstab:
|
||||||
|
s/errors=remount-ro/usrquota,grpquota/
|
||||||
|
s/1$/0/
|
||||||
|
|
||||||
|
quotacheck -cugm /
|
||||||
|
quotaon -ugv /
|
||||||
|
quotaoff -ugv /
|
||||||
|
setquota -u user block-soft block-hard inode-soft inode-hard /
|
||||||
|
# list all quotas
|
||||||
|
repquota -a
|
Loading…
Reference in New Issue
Block a user