Showing posts with label tasinato daniele. Show all posts
Showing posts with label tasinato daniele. Show all posts

Saturday, December 3, 2016

CENTOS 7 HP PROLIANT SMART ARRAY DRIVER

  1.     Enter BIOS (F9) and change SATA mode to b120i smart array raid controller.
  2.     Create an array from physical drives.
  3.     Check created logical volume as bootable.
  4.     Create the hpvsa driver flash-drive. Do this with DD in Linux or in Windows with Win32DiskImager. Make sure to download the latest version of the hpvsa driver.
  5. hpvsa-1.2.14-113.rhel7u2.x86_64 
  6.     Connect the flash-drive with the hpvsa driver to the server.
  7.     Boot from CentOS-DVD or make bootable usb centos 7
  8.     Wait for "Install OS..." screen and press Esc.
  9.     Type "linux modprobe.blacklist=ahci inst.dd" and hit Enter.
  10.     You will see a firmware error. Ignore it.
  11.     Select "r" to refresh the list. The hpvsa driver flash-drive should be in the list.
  12.     Install the driver.
  13.     Remove hpvsa driver flash-drive before continuing.
  14.     Allow OS installer to load. 
  15.     After selecting a langauge the array should be available for use.
If this suggestion solve your day please leave a short like or follow me. :) 

Wednesday, January 2, 2013

VSFTPD Bloccare limitare user alla home directory

Spesso quando configuriamo un daemon ftp su linux abbiamo la necessità di limitare l'accesso dei nostri utenti solamente alla rispettiva home directory.
Nel nostro caso consideriamo di usare vsftpd
In una configurazione minimale  ci troveremo nella situazione di avere un file vsftpd.conf del tipo



#--------------------------------------------------
# VSFTPD configuration file, powered by Brokenpipe
#--------------------------------------------------
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES

xferlog_enable=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES

idle_session_timeout=600
data_connection_timeout=120

ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to Ftp service. Powered by Brokenpipe

chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list


listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


Ed un file chroot_list di configurazione in /etc/vsftpd/  contenente gli utenti chrooted
ad esempio

 ftptestuser

E' importante ricordare se in vsftpd.conf settiamo:

chroot_local_user=YES
chroot_list_enable=YES

significa che di default TUTTI gli user saranno chrooted AD ECCEZIONE di quelli elencati nel file chroot_list

Invece se in vsftpd settiamo:
chroot_local_user=NO
chroot_list_enable=YES

significa che di default SOLAMENTE gli user elencati nel file chroot_list saranno chrooted



500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
allow_writeable_chroot=YES