To increase the security of an HP-UX 11.31 system, it is required to convert a not trusted system to a trusted system. You can’t implement all the security measures like password policy etc. on a not trusted system. You may convert a not trusted HP-UX system …
Not Trusted System To check whether an HP-UX system is trusted or not, you may run the below command: # /usr/lbin/getprdef -rSystem is not trusted. The output of the above command shows that the system is not a trusted system. Here, I have run the above …
There are two types of authentications that are being used in UNIX systems for SSH connections. The first one is in password-based authentication and the second one is in public key-based authentication. In public key-based authentication, we used a key pair for SSH convection and there …
Problem Getting below error after connecting to SFTP server: # sftp sftp_user1@dbappweb.com sftp_user1@dbappweb.com's password: Connected to dbappweb.com. sftp> ls remote readdir("/incoming"): Permission denied Reason I was getting the “Permission denied” error because SELinux was enabled on the SFTP servers and it was enforcing. The status …
Chroot SFTP in Linux Sometimes we need to transfer or access some files on a server through SFTP. In these cases we need to restrict the users so that they can access the files in their home directories only, other directories or files of the server …
Check the /etc/login.defs file to check the applied password policy, here it is showing that password expiry days define as 99999 i.e. it will never expire. # cat /etc/login.defs . . . # Password aging controls: # # PASS_MAX_DAYS Maximum number of days a password may …
April 25, 2018
Linux, Web Servers
Problem We need to show the maintenance page to the outside users of our application/website during the deployment of codes or hardware maintenance. We can show the maintenance page or downtime message to the users by making some changes to apache configuration files. But for internal testing, …
Problem I tried to copy a file from one Linux server dbappweb to another Linux server dbappweb1 but got the error ‘Permission denied’. I tried to copy the file using the SCP command over ssh. # scp -p PKIServer.zip user1@dbappweb1:/home/user1/ user1@dbappweb1's password: scp: /home/user1/PKIServer.zip: Permission denied Reason I got …
February 8, 2018
Linux, Web Servers
Problem I have installed Apache 2.2.3 on my web server. After installation, I made some changes in httpd.conf file and created the required directory for DocumentRoot but when I tried to start the HTTPD service I got the below error: # service httpd start Starting httpd: Syntax …