I want to disable rsh in my unix box for security issues , but after do that i have to check if any service use it to handle it , so that anyone know how i can list all services or application use rsh ?
How i can check which services use rsh in unix-aix?
1.6k Views Asked by Eng Al-Rawabdeh At
2
There are 2 best solutions below
1
Ken Cheung
On
When you rsh from host A to host B, you should see such a login on host B's access log (wtmp / btmp).
If you want to discover this only on host A, it seems that you need to scan through all your services / cron job / etc and inspect one by one.
If you're sure the rsh fires frequently enough (e.g. not only once per year), mirror the network port on the switch (which connects to host A), capture the packets and see where it goes.
Related Questions in BASH
- How do I recursively find and replace only in files named index.php on Linux webserver?
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- Multiple commands with find and xargs, also accounting for special characters
- How to split a directory into parts without compressing or archiving?
- concat a lot of files to stdout
- Honoring quotes while reading shell arguments from a file
- No laravel sync folders in homestead vagrant on windows
- Grouping commands in curly braces and piping does not preserve variable
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Evaluating condition of if statement in awk using a second file
- How to customise bash completion to pick only a custom set of commands?
- Bash regular expression execution hangs on long expressions
- Bitwise OR in bash arguments with square brackets
Related Questions in SHELL
- passing text with \n as one argument in shell
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- schedule and automate sqoop import/export tasks
- How can launch an external process from java and still be able to interact with this process?
- Linux find files where mtime and ctime are not equal
- Find all files contained into directory named
- Quick way to remove all folders titled CVS in a directory and it's subdirectories?
- shell process not exiting on `exit` inside `$()`
- How to set environment variables with a forward slash in the key
- System 'bash -ic' stuck when I hit ctrl+c
- bash functions returns "command not found"
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- retrieve plaintext password from file using bash command
Related Questions in UNIX
- passing text with \n as one argument in shell
- C std library don't appear to be linked in object file
- How to split a directory into parts without compressing or archiving?
- Momentjs get current GMT unix time
- Timing packets on a traffic server
- man pages for c variable types
- Blocking in pthread_join()
- PWX-00001 Error opening repository "dtlmsg.txt". RCs = 268/150/2
- Unix c program to calculate pi using threads
- How to perform parallel processes for different groups in a folder?
- Set aliases globally for all users
- wmic csproduct get UUID equivalent for Unix and Mac?
- Send alert for 80% threshold comparing two values from Disk partition
- Unix - Tail Utility would open the file or not
- Redirect Outward of unix os commands to html page
Related Questions in COMMAND-LINE
- How can I pass variable to ansible playbook in the command line?
- Find all files contained into directory named
- How to add documentation or comment in RakeFile
- Setting the place Python Looks for Files in CMD
- How to run ".iim" file with Google Chrome from commandline?
- Modify Control C Command Signal to Allow Input
- How to create a new file where each new line contains some text and quoted line/step number?
- Create text file using echo in command prompt
- Command line arguments are not passed in Windows 7 - Java
- does a publicly available partial solution exist to parse *nix-style command line options without pre-knowledge of the keys?
- How to call getPackageManager() from Android command-line executable
- Compare 2 text files and display the difference between them (PowerShell or CMD)
- PsExec returning "the system cannot find the file specified"
- What is the difference between "echo" and "echo -n"?
- How do I fix this error? Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'?
Related Questions in RSH
- BASH - Getting an rsh command to return a value or to timeout
- Run command using rsh on a remote computer
- TCP establishment delays for 3 seconds
- os/exec to run shell cmd "rsh" bug
- python subprocess - get exit status of command run on different machine using rsh
- When I transform my c program in a daemon rsh stay blocked in ubuntu system manager
- using subprocess.popen with ssh - python
- How to determine current remote connection type? (rsh or ssh)
- Nivo Slider doesn't work on webkit browsers with Really Simple History (RSH)
- Python subprocess.run CalledProcessError while running rsh
- remote shell call with awk from perl script
- rsh is removing double quotes
- How i can check which services use rsh in unix-aix?
- What are the advantages of rsh versus Perl's Expect.pm?
- RSH & REXEC from Windows 2008 Server to AIX Unix Box
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Almost nothing uses rsh. Some systems will do remote backups by using
rshto dump to a remote tape drive by running rmt(8). But if your system was being used by remote clients to do tape backups, you would already know. Aside from that there will be nothing.In your position I would simply disable the service. No Unix systems designed for production work should ship with
rshenabled these days anyway.If you are very cautious you can modify your
inetd.confentry forrshby using something like tcpwappers so that attempts to usershproduce a log message to the system log. You can also use tcpwrappers to either allow the request after issuing the log message, or drop the connection.