Add SRI notes.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-11-14 15:36:56 +01:00
parent 8cef11dff4
commit 968672c091
2 changed files with 21 additions and 0 deletions

View 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
View 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