среда, 26 мая 2021 г.

How to enable smb1 ubuntu 20.04 samba 4.11.


In smb.conf in "global" section add two strings:


server min protocol = NT1

ntlm auth = ntlmv1-permitted


вторник, 21 февраля 2017 г.

Samba. Link from share to another share.

[global]
unix extensions = no

[share]
follow symlinks = yes
wide links = yes



понедельник, 20 февраля 2017 г.

centos 6.5 and e1000e driver problem of Intel 82574L network card (Supermicro server)

Three ways how fix it:
1. need upgrade driver https://sourceforge.net/projects/e1000/files/
2. add pcie_aspm=off kernel option in grub.conf
3. install new driver from elrepo - kmod-e1000e.x86_64

rsyn over ssh without password

ssh-keygen -f ~/.ssh/id_rsa -q -P "" and
cat id_rsa.pub >> authorized_keys on target server

среда, 16 ноября 2016 г.

resizing lvm partition after cloning hdd


1. deactivating
vgchange -a n my_volume_group

2. resize with parted

3. activating
vgchange -a y my_volume_group

4. pvresize pv_partition

5. lvextend -L +100%FREE lv_partition

6. resize2fs /dev/vg_partition/lv_partition

resizing lvm partition


1. deactivating
vgchange -a n my_volume_group

2. resize with parted

3. activating
vgchange -a y my_volume_group

4. pvresize pv_partition

5. lvextend -L +100%FREE lv_partition

6. resize2fs /dev/vg_partition/lv_partition

понедельник, 11 апреля 2016 г.

fixing "oops cannot change directory vsftpd" (Centos)

Open console an enter:
setsebool -P ftp_home_dir on

or if you want always allow full access:
setsebool -P allow_ftpd_full_access 1