Check mode
getenforce
Restore SELinux context recursively
sudo restorecon -R -v /mypath
Or define explicitly bin_t for the script
sudo semanage fcontext -a -t bin_t "/mypath/psft-appserver-APPDOM.sh"
sudo restorecon -v /mypath/psft-appserver-APPDOM.sh
Check SELinux context only for some files
ls -Z/-Zd /mypath/myfile
sudo firewall-cmd --list-all
sudo firewall-cmd --zone=public --add-port=443/tcp --permanent
sudo firewall-cmd --zone=public --add-forward-port=port=443:proto=tcp:toport=8443 --permanent
sudo firewall-cmd --reload
sudo sysctl -n net.ipv4.ip_forward # if 0, that means it's not active
echo "net.ipv4.ip_forward = 1" | sudo tee /etc/sysctl.d/99-forward.conf
sudo sysctl -p /etc/sysctl.d/99-forward.conf
sudo dnf install -y cifs-utils samba-client
sudo mount -t cifs -o username=yourwindowsusercode,uid=yourdefaultunixusercode,gid=yourdefaultgroupecode,file_mode=0664,dir_mode=0775,vers=3.0 //yourwindowsserver.yourdomain/yourshare /yourmountfolder
OR
sudo dnf install -y rclone fuse
rclone config
n) New remote
name> yourrclonealias
Storage> smb (50 / SMB / CIFS)
host> yourwindowsserver
user> yourwindowsusercode
pass> yourpassword
mkdir ~/yourmountfolder
rclone mount yourrclonealias: ~/yourmountfolder--vfs-cache-mode writes --daemon
rsync -avz --inplace --no-perms --no-group --no-times /anotherlocalfolder/ /yourmountfolder/
If it failed, to continue:
rsync -avz --size-only --partial --progress --stats --inplace --no-perms --no-group --no-times /anotherlocalfolder/ /yourmountfolder/
shopt -s direxpand
Activer à la mano le mode userspace de systemd pour certains utilisateurs