I need your kindly help on automating the process of changing the USERNAME value listed below for every username I have on a txt file. The txt file includes a list of usernames for our Linux Open-SSH SFTP server. Basically, below commands need to be applied for every username listed on the txt file just to change the USERNAME value each time for a different username. Any idea how to do that? it might be an easy one but, would be great if you could assist.
chown root /home/USERNAME
chmod 755 /home/USERNAME
chown USERNAME /home/USERNAME/SFTPWRITE
chmod 755 /home/USERNAME/SFTPWRITE
setsebool –P ssh_chroot_rw_homedirs on