Linux

65K

Solutions

32K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

I would like to request an assistant.

I would like to make a redirect using .htaccess .

The condition that i would like to combined are as follows :

1. redirect any access from /supporttickets.php to https://support.domain.com

2. redirect any access from  /submitticket.php to  https://support.domain.com/Tickets/Submit

3. redirect any access from   /contact.php to https://www.domain.com/contact.php

4. redirect any access to "billing" folder to https://billing.domain.com

5. IGNORE all above rules if the access file are "fpx_indirectcallback.php" or "fpx_directcallback.php"


Appreciates anybody assistant on this issue.
0
Ultimate Tool Kit for Technology Solution Provider
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

We have a few Ubuntu 16.04/18.04 servers and some CentOS 6 and 7 servers at our site that we'd like to lock down to only allow logins from users on our Active Directory domain controller via LDAP. The domain controllers are both Windows Server 2016. We have multiple techs that need access to the servers, but only a few that should have full sudo abilities. Can someone share some step by step details in implementing this on these servers and how to make sure only certain AD accounts are allowed sudo abilities?

Thanks!
0
I need to replace a line in a configuration file and want to make sure it's done safely since it needs to be done on several systems.

The line in the file is:
*.emerg                                                 *

Open in new window

I want to replace the end of line * on only lines that start with *.emerg with :omusrmsg:* so it looks like this:
*.emerg                                                 :omusrmsg:*

Open in new window

This sed command seems to work, but was curious if there was a more full proof way to do it:
sed -i '/^\*.emerg/s/\*$/:omusrmsg:*/' config.conf

Open in new window

0
I have a Red Hat 7.1 server.  I cannot FTP into the RH7.1 server I get a message 530 Login incorrect.
I can receive files if I use FTP from the RH7.1 server but I cannot SEND files from the RH7.1 server.
When attempting to send files from the RH7.1 server a zero length file is put on the receiving server but no data is ever copied to the receiving server and the FTP process on the RH7.1 server hangs.

This is on an internal network with no outside connections so security is not a concern here.
I also tried sftp with no success.

Any suggestions would be greatly appreciated.

TIA,
Dan Kaib
0
Hello Experts,

I'm trying to install Java 8 on my Ubuntu 16.04 machine.

I'm very new to linux.

I'm presented with the following screens but I don't know what how to select 'Yes' to accept the agreement.

Very simple question, I know, but I really don't know.



0
using vi command i opened
log123.log file in putty



now i need to search on word  nullpointerexception in the file

how to search above word in that opened file
0
Dear Experts

We would like to restrict users from internet (though they have login for the application server)  our objective is  users who have application login access  should still be allowed based on their mac address,  first level at our firewall check mac id allow or reject then second level application level authenticate , we are completely okay to allow the users who work from remote office which has strong firewall but the same users from their home or internet then mac id to be checked and it is not from the accepted mac id then it should deny the access . application is webbased linux , apache and mysql .below are my doubts
  I have been as asked this to implement however I am not sure the users who access this application is from their office  behind the firewall and they will have to pass their firewall in this case will it be still possible to validate user mac addess and grant or reject access from our firewall,  is this possible ,  through vpn is fine but what if vpn details are known to others and if they access from their systems hence mac restriction is been asked, can you please suggest control based on mac is it good to go or is there better solutions , thanks in advance.
0
At work I have a separate Unix password for unix systems. I reset my password
through a utility that gives me a temp password. Then I

sudo passwd

and change the password. I log out and log back in with the new password a few
seconds later. Success! But then a few hours later I try to log in with the new password
and it's no longer working and I have to go through the password reset process.

Anyone have a hunch what's going on?
0
Hi Experts,

      I have two containers running on dockers.  

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/ntdl# docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                  NAMES
596874f0eedb        dcf3be75c970        "start"             8 days ago          Up 8 days           0.0.0.0:8009->80/tcp   iiif
91c61a7ea455        8a38b977270d        "start"             8 days ago          Up 8 days           0.0.0.0:8008->80/tcp   ntdl

Open in new window


wagtail(Django)  (ntdl )application on port 8008
wagtail application similar to django applicationimage server running independently on 8009
IIIF IMAGE Serverwagtail (ntdl) without zoom image not communicating with iif image server
wagtail application not talking to iiif image server
without zoom image from image server
console logs details
console log on browser windowconsole logs
::net ERR_CONNECTION_REFUSED for accessing iiif_image server.  

nginx is installed with wagtail ntdl application
Please help me in resolving this issue.



With many thanks,
Bharath AK
0
I added this alias in my .bashrc file so it looks like this:

alias gh="grep \"hello world\" /folder/"

Open in new window


but when I type 'gh' into the command line I get the error:

> gh
bash: gh: command not found

Open in new window


Am I missing something?
0
Get your problem seen by more experts
LVL 12
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Hi,

Right now want to setup MySQL cluster and MariaDB Galeria Cluster to test the product on how well it function, so in order to prepare for it.

1. How many redhat linux nodes on testing each of this?
2. Anything else needed?
3. no shared storage is needed as actually the testing should not have shared storage and we should try horizontal scale out.
4. anything we should test on  cluster ?
5. can we use only node with 1 x network card to install ProxySQL and test it?
1
Hi,

Right now want to setup MySQL cluster and MariaDB Galeria Cluster to test the product on how well it function, so in order to prepare for it.

1. How many redhat linux nodes on testing each of this?
2. Anything else needed?
3. no shared storage is needed as actually the testing should not have shared storage and we should try horizontal scale out.
4. anything we should test on  cluster ?
5. can we use only node with 1 x network card to install ProxySQL and test it?
0
This is to migrate the existing SuSE Linux Enterprise server 11 (think with SP1) to another newly-setup SuSE Linux Enterprise 11 with SP4. This existing server is hosting apache, and supporting an oracle via PHP. The main thing is, we also have to configure the new SuSE to have PHP supporting Oracle with the following working descriptions from the application owner as follows,

           - Apache connecting to PHP accessing a Oracle table through Oracle instant client

with this requirement:
1)      the PHP has to be compiled to enable Oracle instant client
2)      apache has to have the connector configured (not shown here ) and recompiled

So far, on this new SuSE, a apache and associated modules were installed. When typing "rpm -qa |grep apache", the results shows,

      apache2-prefork-2.2.10-2.18
      apache2-utils-2.2.10-2.18
      apache2-mod_python-3.3.1-147.19
      apache2-mod_php5-5.2.6-50.17
      apache2-2.2.10-2.18
      apache2-mod_perl-2.0.4-40.19

How should we proceed from here?

thanks in advance.
0
When we upgrade SSHD to a new version, we got with the issue of $HOME/.ssh/known_hosts, that issue on multiples connection problems, failed scripts that uses ssh protocol because SSHD daemon's keys were changed during the upgrade. We know SSH clients connects first time, and then update their known_hosts manually, but there're some scripts that fail because they're not ready to update their known_host.
My question is.
Once I have upgraded SSHD server, is there any way to keep sshd keys to avoid these client's known_host  issue?
0
Hello Fellow Experts,

I'm trying to get PHP PDO to work with an MS SQL database.  PHP returns a "driver not found" error. I've tried copying the "sqlSvr" driver files to the extensions folder and editing the ini file as suggested by various forums and tutorial, but the error still shows up.  

This needs to be done both on my local Windows Xampp (PHP v5.6) installation and on the remote Linux server (PHP v5.3).  Niether works, what am I possibly missing?

Also, where do the extensions go on the Linux server? Can I just create an "ext" folder in the remote server's "root" folder?  The folder structure looks different on the remote server; there isn't an "ext" folder like in my Xampp environment.

Thanks.
0
Hi Experts,
As part of my automated verification task using ssh on remote server

1. Would like to (cat) display the content of a property file on the linux server.
2. So we dont login to each target server and check the value.
3. Instead by executing ssh user@server1 "cat /path/to/property/file" would display the content.
4. Since i also have password in the property file...would like to mask it with 'xxxxxxxx' e.g not showing the actual value.

pls help how to show the content of a file but mask only the password value

Sample file content
hostname=server1
db_sid=oracledb
db_username=scott
db_passowrd=tiger
target_script_dir=/u01/app/oracle/scripts
target_db_client_home=/u01/app/oracle/db/client_1

Open in new window



Expected output display
hostname=server1
db_sid=oracledb
db_username=scott
db_passowrd=xxxxxx
target_script_dir=/u01/app/oracle/scripts
target_db_client_home=/u01/app/oracle/db/client_1

Open in new window

0
what are the best ways to migrate or move Zimbra 8.6 on RedHat Linux 6.6 to Zimbra 8.8

current usage: authentication is LDAP, cbpolicyD,fail2ban, spamfiltering is in cloud level

it is possible to install a latest version of CentOS. but what is the best choice? CentOS or Ubuntu ?

thanks,
0
Hello Expert,

I want to read o/p from a java process using following cron job, when i tried to use below script its o/p not written into the ScheduleDevice.log.
Could you please guide me why it throwing empty o/p  inside log.

Script  /usr/local/cronjobs/Java-Files/ScheduleDevice.sh
---------
#!/bin/bash

java -cp ".:mysql-connector (1).jar:org.eclipse.paho.client.mqttv3-1.1.0.jar" ScheduleDevice

the_output=`java -cp ".:mysql-connector (1).jar:org.eclipse.paho.client.mqttv3-1.1.0.jar" ScheduleDevice`

echo "$the_output"

while read line; do echo "LINE: '${line}'"; done < <(echo "$the_output")

crontab -l
--------------
*/5 * * * * /usr/local/cronjobs/Java-Files/ScheduleDevice.sh >> /usr/local/cronjobs/Java-Files/ScheduleDevice.log


ScheduleDevice.log  file 0/p

LINE: ''
The Java O/P is
Script Executed Successfully at Fri Jun 29 20:50:02 IST 2018

LINE: ''


Normal o/p when executing using below script in ad-hoc

[root@vps1 Java-Files]# ./ScheduleDevice.sh

The Java O/P is
Script Executed Successfully at Fri Jun 29 20:51:56 IST 2018

Before start of all threads
2018-06-29
20:51
List of pendingSchedules
Finished all threads
Finished all threads
LINE: 'Before start of all threads'
LINE: '2018-06-29'
LINE: '20:51'
LINE: 'List of pendingSchedules'
LINE: 'Finished all threads'
LINE: 'Finished all threads'
0
This is using a SuSE enterprise linux 11 sp3 server. This is a application using java. The problem is on the memory, only little memory available out of 64 GB. If we do a " top", we found that quite a number of java processes taking the memory. Besides 64 gb ram, we also used the exact 64 gb swap. We found that swap memory still largely not in use. Please see the attached file for the result of top command.

What is puzzling us is, another system with the identical hardware, specs, os, and load, doesn't faced the same issue as this system did. How to make more memory available especially for the physical RAM?

Thanks in advance.
exchange_top---Copy.xlsx
vmstat_free-m.PNG
0
Managing Security & Risk at the Speed of Business
Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

This is using a physical SuSE Enterprise Linux 11 SP3 server, with 64 GB RAM installed. However, recently we found that the system is always used up to 50 GB of RAM. In order to find what processes are occupied this memory, I ran top command, shift+F, and then select o (to sorting with VIRT). I am quite satisfy with top results. From the top, quite a number of "java" processes in display. btw, how can i print out this result. I ever tried "top -b > /root/top_results.txt", I have to ctrl+c and i can see that the results are the results of the top command.

Thanks in advance.
0
Linux admin supporting Macs.  I have a good Linux helpdesk candidate that will be require to support Macs in the future as well.  Would that be a huge knowledge curve for a good Linux admin to support Macs?  He claims almost 0% mac knowledge.
I know Linux guys very intuitive supporting Networking stuff (Cisco, etc.)  Not sure about Mac OS tho.
0
Hi, when I finished installing OpenSSH, I got the following warning:

Permissions 0640 for '/etc/ssh/ssh_host_ecdsa_key' are too open.

Could you please give me the command line to safely change and set the proper permissions for this folder and its files?

Server: Red Hat Enterprise Linux Server 7.5

Thanks

Jorge Batres
0
I would like to get a file sharing web app (running as a Docker container) operating called 'YouTransfer'. It fits what we need as a firm for a simple drag and drop document sharer with clients over the web (from our own private network) instead of large attachments being emailed. Basic details of the product are here, alond with the most basic setup instructions: http://www.youtransfer.io/

I've setup VMware's Photon OS, and as far as I can see I have got the YouTransfer container running within the Docker container environment. The bit I'm stumped on is setting up the folder locations for where the files are stored. This is probably my ignorance in the syntax for detailing paths under a Linux OS, but the specific part I don't get I've emboldened below (and tried everything I can think of to get it working):

docker run -d
-v [path_to_upload_folder]:/opt/youtransfer/uploads
-v [path_to_config_folder]:/opt/youtransfer/config

-p 80:5000
remie/youtransfer:stable

I would hope this is a simple one that someone can help me with!

Many thanks :-)
0
This is running check_mk monitoring software on one of the SuSE enterprise linux 11 sp4. Recently, found that the system cpu utilization is always stay at higher level, and a "top" command shown that %us and %sy are still reasonable. However, a check_mk process -cmc always occupied 95+%. Does this means that cmc is always "preoccupied" with such as high percentage of CPU utilization?

Thanks in advance.
top.docx
0
I'm looking for a tool / script to search several folders.

I want to create a .txt report with all the folders that

DO NOT CONTAIN

a file called 19.jpg?

I have access to

windows powershell, command prompts, telenet, and ssh and telnet on a mac.

The files are hosted on a qnap multimedia server which is a linux operating system.
0

Linux

65K

Solutions

32K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

Vendor Experts

Naveen SharmaKernel Data Recovery Learn more about Kernel Data Recovery
Sandeep KumarKernel Data Recovery Learn more about Kernel Data Recovery