View previous topic :: View next topic |
Author |
Message |
PCC322 n00b
Joined: 29 May 2019 Posts: 50
|
Posted: Tue Jul 09, 2019 6:53 am Post subject: [solved] user password not working despite several resets |
|
|
I have been unable to log into my non-root user account despite resetting the password several times from root. I just receive messages about login incorrect. I am not having any such problem logging in to root.
Last edited by PCC322 on Tue Jul 09, 2019 7:46 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30956 Location: here
|
Posted: Tue Jul 09, 2019 7:11 am Post subject: |
|
|
What return command grep <username> /etc/passwd? You can login from root with su - <username>? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
PCC322 n00b
Joined: 29 May 2019 Posts: 50
|
Posted: Tue Jul 09, 2019 7:25 am Post subject: |
|
|
fedeliallalinea wrote: | What return command grep <username> /etc/passwd? You can login from root with su - <username>? |
it is returning
Code: |
name:x:1000:1000::/home/name:/bin/bash/
|
is returning:
Code: |
Cannot execute /bin/bash/: Not a directory
|
|
|
Back to top |
|
|
freke l33t
Joined: 23 Jan 2003 Posts: 978 Location: Somewhere in Denmark
|
Posted: Tue Jul 09, 2019 7:36 am Post subject: |
|
|
PCC322 wrote: | fedeliallalinea wrote: | What return command grep <username> /etc/passwd? You can login from root with su - <username>? |
it is returning
Code: |
name:x:1000:1000::/home/name:/bin/bash/
|
is returning:
Code: |
Cannot execute /bin/bash/: Not a directory
|
|
Shouldn't that be Code: | name:x:1000:1000::/home/name:/bin/bash |
ie. pointing to a file instead of a dir |
|
Back to top |
|
|
PCC322 n00b
Joined: 29 May 2019 Posts: 50
|
Posted: Tue Jul 09, 2019 7:46 am Post subject: |
|
|
freke wrote: | PCC322 wrote: | fedeliallalinea wrote: | What return command grep <username> /etc/passwd? You can login from root with su - <username>? |
it is returning
Code: |
name:x:1000:1000::/home/name:/bin/bash/
|
is returning:
Code: |
Cannot execute /bin/bash/: Not a directory
|
|
Shouldn't that be Code: | name:x:1000:1000::/home/name:/bin/bash |
ie. pointing to a file instead of a dir |
I took out the last slash (backslash maybe?), both su and the normal log in are working now. This seems very strange as I had not touched /etc/passwd previously |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30956 Location: here
|
Posted: Tue Jul 09, 2019 7:57 am Post subject: |
|
|
PCC322 wrote: | I took out the last slash (backslash maybe?), both su and the normal log in are working now. This seems very strange as I had not touched /etc/passwd previously |
Probably when you created user with useradd command _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|