Output from /etc/passwd

nobody:p/hyihIrG/5hM:0:0:nobody for ftp:/:/bin/sh

Output from: /etc/group


The problem is "admin" user can login via telnet and ftp and "user" user can only login via ftp and "user1" can not login via both of these. I want to ask why admin is having access to all login channels and "user" to jxt ftp and "user1" to none of these. Now the question is Why??? Why this is so?

  • 2
    What implemetations of telnetd and ftpd do you have? Are there some restrictions in configuration files? Btw., if what you posted is the actual output of /etc/passwd, this is not what one should do - UID 0 is reserved for rootand '/' should not be the home of any user... – ridgy Feb 3 '17 at 18:47
  • 1
    Note that you should change your passwords after having posted their hash here. – Julie Pelletier Feb 3 '17 at 18:53
  • You are right uid is reserved for root...but this implementation is actual copy slightly modified for DES hashes of password. – Denzi Feb 3 '17 at 19:02
  • And you can also see from /etc/group that all the user are in root group too – Denzi Feb 3 '17 at 19:03
  • 1
    I have a feeling you are not showing us accurate information (copy error). You should show us your exact configuration and later change the passwords. Irrelevant spaces and missing information is a real problem. exact copy please – Julie Pelletier Feb 3 '17 at 19:21

What kind of error messages are you getting? It looks like user and user1 have a space at the beginning of the password field that could cause problems. You didn't say what Linux distro you are using. It is possible not having user1 in the root entry in /etc/group could also be a problem.

| improve this answer | |
  • Its Busybox linux modified for some embedded device – Denzi Feb 3 '17 at 19:14
  • Talking about error msg...its invalid user name or password – Denzi Feb 3 '17 at 19:15
  • User1 is present in /etc/group I missed while copying...now edited – Denzi Feb 3 '17 at 19:17
  • If the spaces are really at the beginning of the passwd field for user and user1 you should remove them. – farhangfarhangfar Feb 3 '17 at 19:22
  • There are no spaces...I know spaces can cause issues in matching hashes..this is not the issue – Denzi Feb 3 '17 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.