Skip to main content

Enabling FTP and Telnet on Red-hat Clones

Enabling Telnet and FTP Services

To enable the telnet service, login to the server as the root user account and run the following commands:
# chkconfig telnet on
# service xinetd reload
Reloading configuration: [  OK  ]

Vsftp can be started from /etc/init.d/vsftpd as below:

# /etc/init.d/vsftpd start
Starting vsftpd for vsftpd:         [ OK ]
If you want the vsftpd service to start and stop when recycling (rebooting) the machine, you can create the following symbolic links:
# ln -s /etc/init.d/vsftpd /etc/rc3.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc4.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc5.d/S56vsftpd

Allowing Root Logins to Telnet and FTP Services

Now before getting into the details of how to configure Linux for root logins
BEWARE - Keep in mind that this is VERY BAD for your server security. Make sure that you NEVER configure your production servers to allow root login for FTP/Telnet.

Configure Telnet for root logins

Edit the file /etc/securetty and add the following to the end of the file.

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
This will allow up to 10 telnet sessions to the server as root.
Configure FTP for root logins

Edit the files /etc/vsftpd/ftpusers and /etc/vsftpd/user_list and remove the 'root' line from the files.

Borrowed from http://www.idevelopment.info/data/Unix/Linux/LINUX_TelnetFTPAsRoot.shtml

Comments

Popular posts from this blog

Take Action: Add Your Voice to Keep the Internet #Freeandopen - by Google

Tell the world's governments you support a free and open web at http://www.google.com/ takeaction . Starting December 3rd, the world's governments are meeting behind closed doors at the ITU to discuss the future of the Internet. Some governments want to use this meeting in Dubai to increase censorship and regulate the Internet.   Tell the world's governments you support a free and open web at http://www.google.com/ takeaction . Then spread the word with #freeandopen. It is ours and it is free. A free and open world   depends on a free and open web. And a free and open web depends on me.

Create Great looking diagrams - Gliffy.com

I was looking for an online diagram creating tool. Came across Gliffy.com where I could create actually great looking diagrams without much of learning curve. The tool is 1. Very easy to use 2. Has drag and drop of elements to your diagram 3. Collaboration (which I have not tested). 4. Works from anywhere on a browser with Internet connection (I used it in Google Chrome on Linux Mint 10) When you click on the "Try it now" a new screen will open as below. You can either create a blank page to create a diagram from scratch or select from a bunch of samples and work on them to create one for your requirement. There are options to export the diagrams you created to SVG, JPEG, PNG and XML format once you register for free on the website. Once you register you can save the diagrams that you created in the site itself and retrieve it at a later time by logging into the website. I made three diagrams and it was real easy and simple. The site has two kind of pa

Nodejs and NPM setup on Linux Mint

To install current version of Node js on Linux Mint or any Ubuntu derivatives 1. Install Node      $ curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - 2. Check Node version     $ node -v         vxx.xx.x    $ npm -v         x.x.x 3. Verify the Node installation      var http = require('http');      http.createServer(function (req, res) {      res.writeHead(300, {'Content-Type': 'text/plain'});      res.end('Hello World...!!!');      }).listen(3001, "127.0.0.1");      console.log('Server running at http://127.0.0.1:3001/');     open your browser and type the URL  http://127.0.0.1:3001/    You can see the me ssage “Hello World…!!!” Source:  1. https://github.com/nodesource/distributions/blob/master/README.md 2.  https://medium.com/@shivraj.jadhav82/nodejs-and-npm-setup-on-linux-mint-19-696023d50247