AD

telnet settings under linux

Check whether the installation of telnet
[Root @ wljs root] # rpm-q telnet
[Root @ wljs root] # rpm-q telnet-client
[Root @ wljs root] # rpm-q telnet-server

1, open services
[Root @ wljs root] # vi / etc / xinetd.d / telnet
Find yes into disable = yes to no
[Root @ wljs root] # service xinetd restart

Login:
Password:

Set telnet port
# Vi / etc / services

telnet 23/tcp
telnet 23/udp

Telnet root user login
[Root @ wljs / root] # vi / etc / pam.d / login
# Auth required pam_securetty.so # add this line of comments!


Users can not telnet system that can ftp

How to make the system user can not telnet, you can ftp!!

OS: Red Flag linux

Method 1:

1, New User

useradd test

passwd test

2, modify the test user's login shell

vi / etc / passwd

test: x: 515:515:: / home / test:: / bin / bash

To

test: x: 515:515:: / home / test:: / sbin / nologin

3, modify user attributes

usermod-s / sbin / nologin username user can ftp, telnet can not be

usermod-s / bin / bash username the user back to normal

Method 2:

1, adding custom shell

vi / etc / shells

Add a line in the final

/ Bin / testshell

Or

echo / bin / testshell>> / etc / shells

Note: You can define as "/ bin / abc", "/ bin / aaa", "/ bin / ccc" can be.

2, increasing user

useradd test

passwd test

3, modify the user's login shell test

vi / etc / passwd

test: x: 515:515:: / home / test:: / bin / bash

To

test: x: 515:515:: / home / test:: / bin / testshell
标签: quot quot, root user, red flag, aaa, rpm, ccc, test user, root service, home test, pam, shells, xinetd, flag linux, shell test, etc passwd, telnet client, client root, telnet settings, login shell, tcp telnet
分类: OS
时间: 2010-04-13

相关文章

  1. Vmware Virtual Machine Internet settings under linux

    Installation environment: 1, host system: windows xp ps2 2, the virtual machine system: redhat enterprise linu ...
  2. telnet installation under linux

    installation under linux telnet to prepare for the next: (not recommended here, telnet, because telnet uses cl ...
  3. password security settings under linux

    1, Linux system user account strategy Edit / etc / pam.d / system-auth to add the following statement. auth re ...
  4. Environment variable settings under LINUX

    System: SUSE Has on the environment variable is fear, especially on the environment variables take effect imme ...
  5. ip settings under linux

    redhat6 # IP configuration, including the subnet mask, see the situation change eth0 and 192.168.1.111 ifconfi ...
  6. How to exit a telnet session under Linux

    ctrl +], and then type quit
  7. Common network settings under linux command

    Temporary IP address: ifconfig <device-name> <ipaddress> netmask <netmask> up Add route: / S ...
  8. windows xp telnet virtual machine under Linux (RH9.0) - transfer

    host: winxp VMwarestation6.0 radhat 9.0 The following are specific steps: If the step by step, absolutely no p ...
  9. [Transferred] to write poorly and linux notes

    linux directory structure / Root / Bin common command binary file directory / Boot storage system start to rea ...
  10. telnet to allow root user login

    redhat how to allow root login through telnet 1. redhat linux system in order to activate the remote landing, ...
  11. linux study notes (change)

    linux directory structure / Root / Bin common command binary file directory / Boot storage system start to rea ...
  12. Linux will learn the 60 commands of the two

    ifconfig 1. Role ifconfig network interface used to view and change the address and parameters, including IP a ...
  13. Linux server configuration

    Linux server configuration [Catalog] One, Linux based network service configuration Second, NFS server with Th ...
  14. Linux must learn the 60 commands of the two

    ifconfig 1 role ifconfig network interface used to view and change the address and parameters, including IP ad ...
  15. adb命令.adb shell与Linux各种命令

    常用的ADB命令 1. 显示系统中全部Android平台: android list targets 2. 显示系统中全部AVD(模拟器): android list avd 3. 创建AVD(模拟器): android ...
  16. XManager Red Hat Enterprise Linux remote login

    XManager telnet Red Hat Enterprise Linux (RHEL) 1 Open the / etc / inittab file, into runlevel 5, or id: 5: in ...
  17. linux tips: Use the screen to manage your remote session

    These articles from http://www.ibm.com/developerworks/cn/linux/l-cn-screen/index.html Level: Intermediate Fiel ...
  18. Advanced Linux Programming Chapter: inter-process communication

    Five inter-process communication methods: Shared memory (shared memory): allows multiple processes to read and ...
  19. Linux Windows JDK1.6 installation and configuration

    <! - @ Page (margin: 2cm) P (margin-bottom: 0.21cm) A: link (color: # 0000ff) -> Configure JDK under win ...