Active Topics

 


Reply
Thread Tools
Posts: 4 | Thanked: 1 time | Joined on Jan 2012
#1
Hi all,
is it allowed to give the user "user" a defined password or will this lead to issues?
Background: I am using ssh-server for file transfert and it would be nice to have the right permission instantly. Using root over ssh will cause problems if the user is goning to access them.

thanks
Erdie
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#2
Never seen any issues.
 
Posts: 123 | Thanked: 99 times | Joined on Sep 2010 @ Russia
#3
Just use ssh key for login.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
Code:
sudo gainroot
passwd user
Enter password twice for verification against typos.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#5
Originally Posted by ForeverYoung View Post
Just use ssh key for login.
Irrelevant to question - it doesn't allow to connect remotely to user, if '*' is set instead of password, or '!'.

Anyway, using '!' seems to allow connecting through ssh *without* password set for user. Yet, I haven't seen or heard about any issues, when real password is set. So, I think it answers OP question

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#6
Originally Posted by erdie View Post
Hi all,
is it allowed to give the user "user" a defined password or will this lead to issues?
Background: I am using ssh-server for file transfert and it would be nice to have the right permission instantly.
Allowed? Yes. Recommended? No (IMHO).

Adding a password to the user account increases the chance of your device being exploited by someone guessing or brute forcing the password, though how seriously you should take this potential threat is hard to determine without knowing your precise circumstances.

The best and most secure option is to unlock the user account ("passwd -u user" as root), leave the user account without a password (not a blank password, but no password) and then use only public/private keys for authentication when logging in as user.

Originally Posted by erdie View Post
Using root over ssh will cause problems if the user is goning to access them.
Since PR1.1, using ssh to login as root is no longer permitted, either with a password or public/private keys.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#7
Originally Posted by Milhouse View Post
Since PR1.1, using ssh to login as root is no longer permitted, either with a password or public/private keys.
Although I generally agree with Your post, this statement is plain wrong. I'm doing it everyday (PR1.3, now 1.3.1 and CSSU-T) - using public/private key, but password based login as root also worked.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#8
Originally Posted by Estel View Post
Although I generally agree with Your post, this statement is plain wrong. I'm doing it everyday (PR1.3, now 1.3.1 and CSSU-T) - using public/private key, but password based login as root also worked.

/Estel
I should have mentioned I am referring to MeeGo-Harmattan (N9[50]) in which case my statement is entirely correct. In terms of Maemo5/N900 however, you are correct there has never been any such root login restrictions. Perhaps the OP will enlighten us as to which system they are actually using.

Last edited by Milhouse; 2012-01-26 at 06:55.
 

The Following User Says Thank You to Milhouse For This Useful Post:
Posts: 4 | Thanked: 1 time | Joined on Jan 2012
#9
Thanks for your answers!
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:59.