Newest linux Questions

Q&A for system and network administrators

Unable to confirm timezone while setting crontab for different unix users

On our production server, UCT timezone has been set for server i.e. for root user but for local technical user different timezone is set in .base_profile. I want to set cron as per CET but server ...

rhel7 pxe boot issue with dhcp gets wrong address

I am trying to setup a new PXE boot setup and all seems to be okay, but when it tries to get kickstart file, it says network unreachable enter image description here when I am looking at dhcp logs ...

My .htaccess causes a 522 Cloudflare error

I know this might be a broad question, but I really have no option but to ask it this way. My htaccess file is always causing a 522 cloudflare error and I believe it's because of my htaccess file ...

Manually specifying routing for an OpenVPN client [on hold]

I've set up an OpenVPN client on Raspbian which is working as expected and services on that machine are tunnelled through the VPN (on interface tun0). Unfortunately the default settings provided ...

Connection refused when trying to configure Chef Server 12 on RedHat 7

I am trying to set up a Chef Client on a VM to be configured to communicate with my Chef Server. The OS of both servers is RHEL 7.3. I run this command from a server I want to be a chef-client: ...

sss_useradd vs useradd with SSSD

I am currently using sssd to authenticate users to active directory. However, I still need to be able to add local users. I noticed SSSD has a local provider and also as a tool to add local users to ...

Apache - High Availability

I'm looking for a way to setup Apache as high-availability. The idea is to have a cluster of 2+ Apache servers serving the same websites. I can have the IP address of each server set up with round-...

Same domain emails are bouncing back others are working fine

I have moved recently my website to a VPS everything working well except for the email. Emails are delivering well on any domain other than the domain where website is hosted. E.g. emails are sent ...

How to defeat NMAP's TCP/IP fingerprinting method for OS-detection

I want to evade nmap's TCP/IP fingerprinting, which it uses to detect the OS on a machine. I read A practical approach for defeating Nmap OS-Fingerprinting which explains how this can be done. It also ...

NAT with iptables - weird behavior

I'm noticing a weird behavior in NAT with iptables. I have the following scenario: Internet ---- [xenbr0] Server [xapi2] ----- VMs The VMs are in the 192.168.0.0/24 subnet. I have NAT with iptables ...

Auto split large files with bash in a directory

I need to cron a bash which should split files larger than 50 GB in a certain directory (not recursively) in linux. Can someone please guide me. Like: find . -maxdepth 1 -type f -size +49G -exec ...

Detect bots with bash/shell [duplicate]

i should parse some log file to detect bots. I have two tasks: - user has made auth in, user changed password, user has made auth of within same second - actions (has made auth in, change, has made ...

Cron backup tasks

I have been disconnected from the topic for a long time. Some time ago, I was used to use crontab in order to perform a task each some time. I need to perform a shell script each 30 minutes: #!/bin/...

Using Putty to proxy through reverse SSH tunnel

I have a remote machine remotePi which uses autossh to maintain a reverse tunnel to a local machine localPi. When SSH'd into localPi, I can reliably ssh into the remotePi using localhost:3333. Now I ...

Restore VM from Base VMDK and snapshots created by Virtualbox on a headless ubuntu Server [migrated]

I wanted to resize an 80GB vmdk on an ubuntu server. I used VBoxManage clonehd /path/to/file.vmdk" --format vdi VBoxManage modifyhd "/path/to/file.vdi" --resize 256000 VBoxManage clonehd "/path/to/...

How to connect to remote server?

I want to connect to a remote server. Before this command worked perfectly : ssh -i vpsMain root@163.xxx.xxx.xxx I need to connecto a other server on this VPS and beacause I've this error when I ...

DB2 and Linux remote server replication

I'm using DB2 10.5 and SLES 11 SP4. My Question is, how would I replicate a remote server's db without having to ssh in and manually export/import.

Cannot see mounted CIFS directory from FTP client

I've mounted the directory from windows server into my linux home directory using mount CIFS mount -t cifs -o user=user,gid=1001,uid=1001,rw //ipaddress/dir /home/user/target-dir/ Now I want to ...

Find / Rename command not catching the filenames I want it to find

I have these two files in my home directory - hello_newest.txt goodbye_newest.txt I want to rename them so that the "newest" part of the filename is removed completely, so that they would recome ...

Group members cannot upload files

I have an interesting problem involving group permissions and possibly the setgid bit. A set of directories is set as the following: drwxrwsr-x 2 smith web-ww2 18 Oct 4 12:05 grids drwxrwsr-x 16 ...

Using FilesMatch to target ALL files

I've tried unsuccessfully to use the Apache FilesMatch directive to process all files as PHP. Using this <FilesMatch "\.html$">, I'm able to process specific file extensions as PHP, but I'm ...

Enable confirmation for commands with force flag

Is there any option to enable confirmation for the rm -rf . We had an alias setup for rm=rm -i so whenever we delete a file it asks for confirmation but when -f flag is supplied it will not asks for ...

Made condition to detect bots [duplicate]

I have a short log, where several columns - date, time, ip, name of user and operations, what user did Friday, 10 October 2012 13:15:39 +0300|192.168.110.5|rock| - |user has made auth in| - Friday, ...

NGINX+PHP-FPM: Is it possible associate php-fpm PID to access log entry?

We have been using NGINX and php-fpm. We've been noticing that some requests are hanging up for a long time (10+, 20+ minutes...) via top command. Also, some suspect requests (I mean bots) were ...

linux cron error setreuid failed resource temporarily unavailable

I just scheduled my java program to works every 15mins on crontab. but it didn't work with crontab so I checked cron logs from /var/log/cron and it gave an error message as my title. With my googling ...

How to mount host folder to guest, while keeping the contens in guest folder? [on hold]

Sorry for the confusing title, I tried to make sense of it but it didn't work. Say, I have a windows folder called 'share' in 'C:/share' and in linux I have a folder in /var/www normally, if there ...

System reboots when I use smartctl with Adaptec RAID controller

We have a system normally running Windows 2008 (original release). It sometimes experiences strange STOP talking about memory paging issue. Evaluating this case we tested memory (~10 memtest passes), ...

Why multiple instances on single server is better than single intance on single server?

Want to understand why cluster with multiple instances on single server is better than single instance on single server. Assuming linux server with 16GB RAM and for java application.

Is it possible to connect to a database on an alternative server?

I have a server in one country, but most visits to my site come from another country (e.g., my server is in Germany but my site users are in the USA). This means that the ping time for my users is ...

How to temporarily run a secondary SSH server on a separate port

How do you run an SSH daemon on a different port other than the standard 22? I screwed up something with my SSH configuration on a cloud VM, so that now SSH always prompts me for a password. My early ...

How could one add bridge to yet another bridge?

Ubuntu 16 LTS. Asked here, because the question is not really specific to GNU/Linux distributions, as the same concepts exist in another OSes. I added 4 dummy interfaces: modprobe dummy ip link add ...

How do you manage your server infos(IP/Name) [on hold]

In my company, on one know the exact server infos. An excel file is used to maintain all server lists(hostname/ip), but does not update on time. Someone may create several servers but forgot to add ...

Linux - Disk / Filesystem as a LRU Cache (with transparent expiry)

I have a case where I'd want to use local disk as a LRU cache for (hot) files from a separate web service (something like S3). If the file doesn't exist on disk, the file is read over the internet, ...

Blocking a process to access certain urls

I would like to configure the firewall to block certain domains for a particular process. But these blocked domains should be available for use by other processes. How can I achieve this ?

Monitoring Page-out rate in Unix

I want to understand how important it is to monitor Page-out rate while monitoring memory on a Unix server? Does a high page-out rate clubbed with high physical memory usage, indicate that the memory ...

502 Bad Gateway error on specific pages + certain images not loading

I get a 502 Bad Gateway error when trying to go to www.rosemaryandco.com/admin. I've to put the extra / in order to access the CMS behind the website. This wouldn't be much of a problem, but the ...

How to debug services in Debian if they fail to start

I have a new Debian unstable based distro with apache2 on it. Apache itself is working fine. If i use sudo service apache2 start it comes up and everything goes well. But the service for it fails ...

Why are Centos 7 kernel updates not flagged as security updates?

I have a Centos 7.2 box. If I run a "yum check-update --security" command, I get... ... --> kernel-3.10.0-514.2.2.el7.x86_64 from updates excluded (updateinfo) --> kernel-tools-3.10.0-514.2.2....

Server without connection limit [on hold]

I am looking for server without connection time limit or with limit bigger than 2 minutes. Do you have any good recommendation? Low price is advantage.

Router port forwarding setup d-link [on hold]

I'm not very good at networks, and probably it's a very stupid question, but I've been trying to find answer for last 1.5 hours. I have D-link dir-320 router and an php simple server (php -S 127.0.0....

How to connect your network printer via another computer?

My need is a little strange, maybe. I have a proxy server A with IP 210.11.11.1 and a network printer B with IP 210.11.11.2 in the same room. I have a computer C with IP 202.33.33.1 in another room。C ...

HTTPS over third-party SSH tunnel. Is it safe?

I just get a Linux server from a third-party. Then I create a SSH tunnel via SecureCRT: https://www.vandyke.com/support/tips/socksproxy.html , where the Linux server is used as the Gateway Server. ...

Re-building new LDAP from old one?

OS is CentOS7. LDAP is OpenLDAP. I have a situation concerning old LDAP. Is it possible to bring it up, as there are some files I need to get to. So, lets summarize, I have backup of whole old ...

HTTPS Configuration for supervisord

I've been browsing the web for articles that describe how to do it, but I couldn't find anything. The develop documentation only makes mention of a HTTP server. Nothing about enabling or configuring ...

Script to search bots from log file

I have a little log-file, where i should find the bots. File: Friday, 10 October 2012 13:15:39 +0300|192.168.110.5|rock| - |user has made auth in| - Friday, 10 October 2012 13:15:39 +0300|192.168....

How do I hide “index.php” from URL on HAProxy

Here I have install HAProxy-1.7 on linux machine and backend forward request to varnish cache server then apache2 web server handle. All application install on single machine. Flow: ---443--> | ...

Deleted bash, how do I recover?

I deleted /bin/bash. I had terminal open, but it auto-closed later. I am a normal user in sudo group. What do I do? I'm panicked. Can I change file permission of /etc/passwd with Python / Perl and ...

How to use a bash script as a user's shell in centOS 7?

I have user test and I want to provide a bash script as a login shell for this user. I was able to do it on centOS 6 easily by using the command usermod -s /pathtomyscript.sh. But in centOS 7 I am ...

If I restart xinetd service , does it impact the currently active FTP connections?

In my Linux system FTP server is running from xinetd . I want to make a configuration change inside the /etc/xinetd.d/ directory for the FTP server launch , with respect to the arguments passed to the ...

Where to find Openldap Cisco Anyconnect schema?

How do I find the cisco.schema schema file in a Debian Jessie system? Which packages I do need to install? Ideally with a readme file for the schema as well.
Translating... 0%