Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

Linux Networking

17K

Solutions

14K

Contributors

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

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

Sign up to Post

saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
    14072   16116   14072      16120  pty1      197609 23:24:55 /usr/bin/ps
S   14584       1   14584      10368  pty0      197609 22:48:56 /usr/bin/man
S   11244       1   11244      14032  pty0      197609 21:50:41 /usr/bin/cat
S    4288   14584   14584      13752  pty0      197609 22:48:56 /usr/bin/less
    16116   14124   16116       6224  pty1      197609 23:24:48 /usr/bin/bash
    14124       1   14124      14124  ?         197609 23:24:48 /usr/bin/mintty

saiganesh@LAPTOP-EJBON1NM ~
$ kill 16116

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


can you please advise why kill not working as above?
0
Upgrade your Question Security!
LVL 11
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

saiganesh@LAPTOP-EJBON1NM ~
$ mkdir gp

saiganesh@LAPTOP-EJBON1NM ~
$ cp * gp/
[b]cp: -r not specified; omitting directory 'gp'[/b]

saiganesh@LAPTOP-EJBON1NM ~
$ cd gp

saiganesh@LAPTOP-EJBON1NM ~/gp

Open in new window

why i am geting above error while copying all files to gp directory? please advise
i want to try rm and rmdir also
0
saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 3
-rwxrwxrw- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file
-rw-r---wx 1 saiganesh None 3 Jan 14 23:02 test3.file
-rw-r--r-- 1 saiganesh None 3 Jan 14 23:04 test4.txt

saiganesh@LAPTOP-EJBON1NM ~
$ ls *.txt
test4.txt

saiganesh@LAPTOP-EJBON1NM ~
$ ls *.file
test.file  test2.file  test3.file

saiganesh@LAPTOP-EJBON1NM ~
$ ls ?.file
ls: cannot access '?.file': No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
[b]$ ls ?.fil*
ls: cannot access '?.fil*': No such file or directory
[/b]
saiganesh@LAPTOP-EJBON1NM ~
$ ls ?est.fil*
test.file

saiganesh@LAPTOP-EJBON1NM ~
$ ls ?est*.fil*
test.file  test2.file  test3.file

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


i wonder why above highlighted one not working
please advise
0
saiganesh@LAPTOP-EJBON1NM ~
$ cat>test4.txt
eee
saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 3
-rwxrwxrw- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file
-rw-r---wx 1 saiganesh None 3 Jan 14 23:02 test3.file
-rw-r--r-- 1 saiganesh None 3 Jan 14 23:04 test4.txt

saiganesh@LAPTOP-EJBON1NM ~
$[b] chmod 642 test4.file[/b]
chmod: cannot access 'test4.file': No such file or directory

saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 3
-rwxrwxrw- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file
-rw-r---wx 1 saiganesh None 3 Jan 14 23:02 test3.file
[b]-rw-r--r-- 1 saiganesh None 3 Jan 14 23:04 test4.txt[/b]

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


when i tried as above it is not working in cygwin

when i tried here
https://www.tutorialspoint.com/execute_bash_online.php

it says
$bash -f main.sh
chmod: changing permissions of 'main.sh': Operation not permitted
how to see terminal in above site?

please advise
0
$ cd /home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ls -ltr
total 1
-rw-r--r-- 1 saiganesh None 5 Jan 14 21:54 test.file
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file

saiganesh@LAPTOP-EJBON1NM ~
$ chmod 0=w test.file
chmod: invalid mode: ‘0=w’
Try 'chmod --help' for more information.

saiganesh@LAPTOP-EJBON1NM ~
$ [b]chmod o=w test.file[/b]

saiganesh@LAPTOP-EJBON1NM ~
$ ls -l
total 1
-rw-r--[b]-w- 1 saiganesh None 5 Jan 14 21:54 test.file[/b]
-rw-r--r-- 1 saiganesh None 0 Jan 14 21:54 test2.file

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


as aboe i got write on others. But how to get both read and write to others on test,file

please advise
0
saiganesh@LAPTOP-EJBON1NM /bin
$ ls /bin/pwd
/bin/pwd

saiganesh@LAPTOP-EJBON1NM /bin
$ cd /bin

saiganesh@LAPTOP-EJBON1NM /bin
$ pwd
/bin

saiganesh@LAPTOP-EJBON1NM /bin
$ ls
'[.exe'                      fold.exe           ps.exe
 addftinfo.exe               gawk.exe           ptx.exe
 apropos                     gawk-4.2.0.exe     pwd.exe
 arch.exe                    gdiffmk            readlink.exe
 ash.exe                     getconf.exe        readshortcut.exe
 awk                         getent.exe         realpath.exe
 b2sum.exe                   getfacl.exe        rebase.exe
 base32.exe                  getopt.exe         rebaseall
 base64.exe                  gkill.exe          rebaselst
 basename.exe                grap2graph         rebase-trigger
 bash.exe                    grep.exe           refer.exe
 bashbug                     grn.exe            regtool.exe
 bunzip2.exe                 grodvi.exe         rename.exe
 bzcat.exe                   groff.exe          renice.exe
 bzcmp                       grolbp.exe         reset
 bzdiff                      grolj4.exe         rev.exe
 bzegrep                     grops.exe          rm.exe
 bzfgrep                     grotty.exe         rmdir.exe
 bzgrep                      groups.exe         run.exe
 bzip2.exe                   gunzip             runcon.exe
 bzip2recover.exe            gzexe              rvi
 bzless                      gzip.exe           rview
 bzmore                      head.exe         

Open in new window

0
hi,

i have installed cygwyn and practicing on my local windows laptop
https://cygwin.com/install.html

i gave commands as below


saiganesh@LAPTOP-EJBON1NM ~
$ whoami
saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ls

saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$  cd /

saiganesh@LAPTOP-EJBON1NM /
$ ;s
-bash: syntax error near unexpected token `;'

saiganesh@LAPTOP-EJBON1NM /
$ ls
bin       Cygwin.bat  Cygwin-Terminal.ico  etc   lib   sbin  usr
cygdrive  Cygwin.ico  dev                  home  proc  tmp   var

saiganesh@LAPTOP-EJBON1NM /
$ cd home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ cd ..

saiganesh@LAPTOP-EJBON1NM /home
$ ls
saiganesh


saiganesh@LAPTOP-EJBON1NM /home
$


my question is when i gave cd .. it supposed to go to home right and when i said ls it should have said home instead of saying saiganesh
please advise
0
Hi,
I'm comparing these two lines in the audit.rules files.

-a always,exit -F arch=b32 -S clock_settime -F a0=0 -k time-change

Open in new window

-a always,exit -F arch=b32 -S clock_settime -k time-change

Open in new window


Could you please tell me the what -F a0=0 stands for?
Thank you
Carlettus
0
i install ssh in ubuntu. i start services and it's  runnig. idisabled firewall. i add keygen in authorized_keys.
ssh <ip_host> says  Permission denied (publickey).
0
BACKGROUND:
A ways back, I'd set up nameservers on my VPS (let's call them 'ns1.mydomain.com' and 'ns2.mydomain.com').  I host a couple of dozens websites on that VPS.

For all of my domains, on the domain registrar's site, I'd set the Nameservers for that domain to Custom Nameservers:  'ns1.mydomain.com' and 'ns2.mydomain.com'.

Recently, I had to ask my VPS provider to create a new server for me (let's call it 'newVPS'), leaving my previous VPS (let's call it 'oldVPS') active so I could migrate or re-create accounts and contents from the oldVPS to the newVPS.

Both the oldVPS and newVPS use WHM/CPanel admin interfaces.  
The oldVPS is setup as (cut and pasted from the WHM panel banner): 'CENTOS 6.9 i686 virtuozzo – oldvps  WHM 56.0 (build 52)'
The newVPS is setup as (cut and pasted from the WHM panel banner): 'CENTOS 7.4 virtuozzo [newvps]  v68.0.21'

My understanding (which is limited in these areas) is that the nameservers I setup on my VPS have to be associated with one of the domains I own/host on that VPS.

The nameservers which I had previously setup on oldVPS were associated with 'mydomain.com' one of the domains/accounts hosted on oldVPS.  

For simplicity, I'm thinking of creating new nameservers on newVPS and associate them with 'myotherdomain.com', another domain/account to be hosted on newVPS.

QUESTION:
How do I create my new nameservers on newVPS, say 'ns1.myotherdomain.com' and 'ns2.myotherdomain.com', presumably from newVPS's WHM (I'm …
0
Free Tool: SSL Checker
LVL 11
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

i have 2 ubuntu servers on in home and one on a remote server and both are running ubuntu server 16.04

i followed this guide to install and configure strongswan https://raymii.org/s/tutorials/IPSEC_vpn_with_Ubuntu_16.04.html

it worked fine on my localserver but not on the remote server even when accessing the my localserver remotely it works just fine

i am stuck .. im not sure what i am doing wrong .. hoping someone on here can help- my host says that my ubuntu install is mostly* stock with little to no mods - though ive noticed some file permissions where changed

https://imlost.me/server.txt https://imlost.me/client.txt
0
A customer wants to have users register, manage profile, reset password and this is possible using B2C.

What I'd like to know is, whether it is possible to integrate all this functionality in an existing web application and perform REST APIs to Azure B2C?
0
We have an old Asterisk (v.2.x) phone server in our office.  I'm new to the system and need to change an extension number from a rapid busy signal to a working extension.  Also, we have several extension that simple hang-up when dialed (no tones of any sort).  How do we edit those extensions?

I'm new to Linux, but I've figured out how to browse directories and edit conf files.
0
hi,

we have about 3 users say user1, user2, user3 on the weblogic server. The application logs and server logs getting filled up every 3 weeks or so causing server to choke. How to write a script to clean automatically those application log and server log folder contents automatically say every week on friday midngiht at 11 PM

please advise
0
I am getting this error message, when I was trying to run rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm on Red Hat Linux 7.4 (Kernel version: 3.10.0-693.1.1.el7.x86_64). Can some one let me know what is problem and what should be the proper procedure to fix it. Here is the output mentioned below,

#rpmbuild --rebuild lin_tape-3.0.23-1.src.rpm
Installing lin_tape-3.0.23-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sCvFVM
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.23
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.23.tgz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-3.0.23
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KGligF
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.23
++ echo x86_64-redhat-linux-gnu
++ cut -f 1 -d -
+ p=x86_64
+ '[' x86_64 == i386 ']'
+ '[' x86_64 == i586 ']'
+ '[' x86_64 == i686 ']'
+ '[' x86_64 == ppc64 ']'
+ '[' x86_64 == powerpc ']'
+ '[' x86_64 == powerpc64 ']'
+ '[' x86_64 == s390 ']'
+ '[' x86_64 == s390x ']'
+ '[' x86_64 == ia64 ']'
+ '[' x86_64 == x86_64 ']'
+ proc=AMD
+ make KERNEL=3.10.0-693.1.1.el7.x86_64 PROC=x86_64 SFMP=0 driver
make: Nothing to be done for `driver'.
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hQeoFx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/lin_tape-3.0.23-1.x86_64 '!=' / ']'
+ rm -rf …
0
I'm trying to run x11vnc with the --passwdfile option. This option sends a challenge string to the VNC client. The client opens a dialog on the user's screen asking for a password. The client then sends the response string back to the VNC server. The VNC server calls the program referenced by the --passwdfile parameter with this string in the following format:

A two-byte length (in this case 16), followed by the challenge string (16 bytes), followed by the response string (16 bytes). What I get back, in hex is:
 0: 0A 6E 65 78 74 0A 31 36 0A 23 36 F4 E1 03 EE 30    .next.16.#6....0
10: 16 85 FC E9 4C F1 F5 16 5C 2C D5 5C 93 C2 21 29    ....L...\,.\..!)
20: 3A DF C2 A2 7C E9 1F 1A D7                         :...|....

Open in new window

The <newline>next<newline> can be ignored as this is debug stuff from my script. The strings are:
Challenge:
23 36 F4 E1 03 EE 30 16 85 FC E9 4C F1 F5 16 5C

Response:
2C D5 5C 93 C2 21 29 3A DF C2 A2 7C E9 1F 1A D7

Open in new window

The manpage defines the response string as, "client's response (i.e. the challenge string encrypted via DES with the user password in the standard situation)." I have no further information or documentation. I assume one must use the challenge string to decode the response string and get the user-entered password, but I've no idea how to do that.
0
hi

How to Make The Text Cursor Automatically when i'm on console text ?
I use directly on boot the tty console and desactivate graphical mode.

Thanks for your reply,

someone talk me about : /etc/inittab, or /etc/fstab
But i don't think it's good idea to modify 2 by 5
0
I am using rubinus 3.86 and CentOS7(x86_64).
The installation directory is / var / home / ap / rubinius.

I attempted to install nio4r using the gem command and it failed.
The log at that time is as follows.

It is described as "method_missing", but what does it mean?

cat /var/home/ap/rubinius/gems/extensions/x86_64-linux/2.3/nio4r-2.1.0/gem_make.out

current directory: /var/home/ap/rubinius/gems/gems/nio4r-2.1.0/ext/nio4r
/ var / home / ap / rubinius / bin / rbx -r ./siteconf20171112-15122-n0ryc2.rb extconf.rb --with-ldflags = - L / var / home / lib / gcc5 / lib64
checking for unistd.h ... yes
checking for sys / select.h ... yes
checking for poll.h ... yes
checking for sys / epoll.h ... yes
checking for sys / event.h ... no
checking for port.h ... no
checking for sys / resource.h ... yes
                  main # Rubinius :: Loader at core / loader.rb: 861
                script # Rubinius :: Loader at core / loader.rb: 679
           load_script. Rubinius :: Code Loader at core / code_loader.rb: 590
           load_script # Rubinius :: Code Loader at core / code_loader.rb: 505
            __script__ # Object at extconf.rb: 21
   << (method_missing) # Kernel (NilClass) at core / zed.rb: 1413

undefined method `<< 'on nil: NilClass. (NoMethodError)

An exception occurred running extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and / or headers. Check the mkmf.log file for …
0
winscp wht is difference between location profiles and bookmarks

/crm/home/xyz2abc/exp/net/ccfg/crm

i have above book mark
i have to give a name to it saying "server1 config property file path"
i see rename option under location profiles not under bookmarks
but location profile again shows local directory and remote directory
what that means?

i am confused
https://winscp.net/eng/docs/ui_locationprofile
also under book marks what is difference between site book marks and shared book marks

https://winscp.net/eng/docs/ui_opendir

please advise
0
Restore individual SQL databases with ease
LVL 1
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

hi,

i created aaa file under gp foler under root of tutorialpoint



sh-4.4$ /bin/bash                                                                                                                                                                            
bash-4.4$ [wd                                                                                                                                                                                
bash: [wd: command not found                                                                                                                                                                
bash-4.4$ pwd                                                                                                                                                                                
/home/cg/root                                                                                                                                                                                
bash-4.4$ mkdir gp                                                                                                                                                                          
bash-4.4$ pwd                                                                                                                                                                                
/home/cg/root                                                                          …
0
hi,

what is difference between mv vs cp

when we use which one. any advantage of using one over other

please advise
0
hi,

what is difderence between ls -R vs ls -r

please advise
0
I have a main office running OpenVPN on Untangle v9.4 (I know, but they don't want to spend the money to upgrade and reconnect all of the offices) The remote offices are all on different subnets, and I have no problem reaching the main office by IP address or hostname from the remote office computers. From the main office, I am unable to ping or communicate with any of the remote offices. There are no issues with the main office connecting to the internet, but I am unable to communicate with the connected networks. The OpenVPN connectivity at each office is using a Ubiquiti Edgerouter-X with the config file imported and I use my laptop to support the various offices via a software client OpenVPN connection. When I connect to the OpenVPN server at the main office using my laptop, I am able to ping, use RDP, whatever, I can even use NSLOOKUP from the DC in the main office as the server and get the IP Addresses for the systems in the remote offices. Trying to run a tracert from the cli on the DC server in the main office gives me a first hop that is the LAN address of the Untangle box, but times out on every other hop. This looks like a route issue to me, but I haven't been able to add a static route in any form that allows me to communicate with the remote networks. Help!
0
Between Squid Proxy and Apache Traffic Server (ATS) - which one is the better forward proxy server for 5000 concurrent connections to Social Media (non-video, no file downloads) sites (Linkedin, Quora, Facebook, Instagram, Pinterest, Twitter). Due to the personalized & unique nature of user's newsfeeds, I don't believe the caching feature will be that useful for acceleration for this scenario.

Do both solutions require the same resources? Will both solutions easily scale for future growth?

From most posts that I've read, or IT social circles, Squid appears to be more popular, however after seeing the benchmarks at the end of this presentation, my curiosity is open to ATS:

ATS vs Squid Proxy Benchmarks
0
Hi there,

we want to choose the right NIC mode and configuration for having maximum performance, throughput and bandwidth over our 2x10 Gbit set up (and maybe 4x10Gbit in the near future). Ideally we d like stay close to 20Gbps throughput.

The question is what mode to use, NIC bonding or teaming? And we also need some easy set up guidance in order to set it up so please propose any valid tutorial or article you might know it is worth looking.
0

Linux Networking

17K

Solutions

14K

Contributors

The variety of Linux distributions creates myriad issues relating to configuration and operations when computers are networked, not the least of which is the use of various network management applications, some of which are included with specific distributions, while others are standalone applications.

Top Experts In
Linux Networking
<
Monthly
>