maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Cannot change default root password after Open SSh install (https://talk.maemo.org/showthread.php?t=53198)

drangina 2010-05-20 19:26

Cannot change default root password after Open SSh install
 
I installed Open SSH server and client. During installation i did not set any password. I just let it install like this.

Then through X term i tried to change a new password and it shows succeeded. i tried three times with new password with success

Now when i am trying to log in through winscp it cannot log me in with new password but when i try to log in with default password 'rootme' it logs me in.
I even reinstalled Open SSH but this time it did not ask me for any password during installation.

What is the solution?

Pretoriano 2010-05-20 20:27

Re: Cannot change default root password after Open SSh install
 
I don't know if i'm understanding, but if you want to change the root password, enter as root in terminal and type "passwd"

drangina 2010-05-20 21:04

Re: Cannot change default root password after Open SSh install
 
alright i solved it
earlier i was changing user password only by typing

passwd user

but when i typed
passwd root

it gave me option to change my root password.

rich c 2010-05-20 21:36

Re: Cannot change default root password after Open SSh install
 
Personally, I disallow remote root logins. Much better to login as user and then become root. From a security point of view.

drangina 2010-05-21 13:20

Re: Cannot change default root password after Open SSh install
 
Quote:

Originally Posted by rich c (Post 668458)
Personally, I disallow remote root logins. Much better to login as user and then become root. From a security point of view.

Can you explain how can i log in through SSH as user not as root

bmouring 2010-05-21 21:09

Re: Cannot change default root password after Open SSh install
 
Quote:

Originally Posted by drangina (Post 669249)
Can you explain how can i log in through SSH as user not as root

Some basic steps and their reasons:
  • Add a password for the user account ("user"), it sounds like you may have already done this, you may want to have a different password than the root password, however.
    Code:

    //as root
    passwd user
    //enter a new password

  • Open and edit the sshd configuration file (exists at /etc/ssh/sshd_config)
    Here, we want to either disallow root logins:
    Code:

    ...
    PermitRootLogin yes
    ...
    //Change this to "no" to prevent root logins

    ... or specifically spell out which users are allowed to login
    Code:

    ...
    AllowUsers user
    //This line doesn't exist in the installed config file, so it'd need to be added
    ...

    Either of these (or both) should net what you want.
  • Once you've made the changes, restart the sshd daemon, eitehr by using the handy sshd status application or, again, as root
    Code:

    /etc/init.d/ssh restart

That should get you on your way.

giannoug 2010-05-21 21:11

Re: Cannot change default root password after Open SSh install
 
The user account can simply become root by typing sudo gainroot, so I don't think that it is a big security hole :p The intruder can see your files in user and root accounts.


All times are GMT. The time now is 14:33.

vBulletin® Version 3.8.8