An interesting FTP error in Solaris 10 -- root cannot access FTP

Source: Internet
Author: User

An interesting FTP error in Solaris 10 -- root cannot access FTP

System Environment:

Operating System: Solaris 10


Error:

[[Email protected]:/] # ftp 127.0.0.1

Connected to 127.0.0.1.

220 solaris187 FTP server ready.

Name (127.0.0.1: Root): Root

331 Password required for root.

Password:

530 login incorrect.

Login Failed.

Root users cannot access FTP. Other users can!


Case Analysis:

By default, Solaris is secure. The root user is forbidden to access FTP, which is restricted by the/etc/ftpusers file.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/3E/FE/wKioL1PIeCySidh-AADvRU06oMU341.jpg "Title =" ftp.png "alt =" wKioL1PIeCySidh-AADvRU06oMU341.jpg "/>

If the root user is removed from this file, the root user can access FTP, but this case still cannot be accessed!


Case Analysis:

1. If it is a configuration file restriction, it should be because the root user has no chance to enter the password and is directly rejected.

2. You can enter a password, indicating that the authentication identity is incorrect. It may be a password or a problem with the/etc/passwd file.


To solve the password problem, check the/etc/passwd file:


[[Email protected]:/] # Cat/etc/passwd

Root: X: 0: 0: super-user :/:Usr/bin/bash

Daemon: X: 1: 1 ::/:

Bin: X: 2: 2:/usr/bin:

SYS: X: 3: 3 ::/:

ADM: X: 4: 4: Admin:/var/adm:

LP: X: 71: 8: Line Printer admin:/usr/spool/LP:

Uucp: X: 5: 5: uucp admin:/usr/lib/uuucp:

Nuucp: X: 9: 9: uucp admin:/var/spool/uuucppublic:/usr/lib/uucp/uucico

Smmsp: X: 25: 25: Sendmail Message submission program :/:

Listen: X: 37: 4: Network admin:/usr/NET/NLS:

TPD: X: 50: 50: TPD Reserved UID :/:

Webservd: X: 80: 80: webserver Reserved UID :/:

Postgres: X: 90: 90: PostgreSQL Reserved UID:/usr/bin/pfksh

Svctag: X: 95: 12: Service tag uid :/:

Nobody: X: 60001: 60001: NFS anonymous access user :/:

Noaccess: X: 60002: 60002: no access user :/:

Nobody4: X: 65534: 65534: SunOS 4.x NFS anonymous access user :/:

Tom: X: 500: 500:/export/home/Tom:/bin/bash

Bob: X: 501: 500:/export/home/Bob:/bin/bash

It turns out that in the root user's entry, the shell part is missing a slash (/) before USR, so shell cannot be enabled!

Changed:

Root: X: 0: 0: super-user :/:/Usr/bin/bash

@ Now, the problem is solved!

This article is from the blog of "Tian Ke's blog", please be sure to keep this source http://tiany.blog.51cto.com/513694/1439803

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.