LinHES Forums http://forums.linhes.org/ |
|
Quick question on adding users http://forums.linhes.org/viewtopic.php?f=11&t=20283 |
Page 1 of 1 |
Author: | miraclemaker [ Wed Sep 09, 2009 1:27 pm ] |
Post subject: | Quick question on adding users |
Hi there. I've just installed R6 and the basics seem to be working. I've added a new user using the adduser command and added it to the úsers' group. What do I need to do to allow me to log on to this account using ssh from another host? When I try it keeps refusing the password. Is there some other permission I need to set or should it just work? Many thanks! |
Author: | mihanson [ Wed Sep 09, 2009 2:59 pm ] |
Post subject: | |
What's the exact error you're seeing? Anyone but root and mythtv should be allowed to ssh in. You can try editing /etc/ssh/sshd_config and at the bottom you can add: Code: AllowUsers <your_user_name> then restart the ssh service: Code: sudo sv restart sshd
|
Author: | miraclemaker [ Wed Sep 09, 2009 3:12 pm ] |
Post subject: | |
Thanks for the reply. The message I get is "Access denied". I have added the username to the AllowUsers list in sshd_config like you said, and I still get the same error message. When I installed Linhes I checked the option that said "deny remote access to root account", could it be related to that? Many thanks again. |
Author: | mihanson [ Wed Sep 09, 2009 3:57 pm ] |
Post subject: | |
What are the contents of these two files:
/etc/hosts.deny |
Author: | langelgjm [ Thu Sep 10, 2009 6:42 am ] |
Post subject: | |
If it were something with /etc/hosts.allow or deny, I'd imagine he probably wouldn't even get an SSH prompt. "Access denied" is what I get when I try to log in with an incorrect password. Maybe this is a silly question, but did you ever set a password for your new user? You didn't explicitly say so... In any case, you might want to try resetting the password for this new user. As root, do Code: passwd newuser
And that should allow you to reset it to whatever you want. Then try logging in with ssh again. |
Author: | manicmike [ Thu Sep 10, 2009 3:28 pm ] |
Post subject: | |
Also, when you attempt to log in, use the "-v" option (assuming you're using a command line ssh client). Mike |
Author: | miraclemaker [ Sat Sep 19, 2009 9:05 am ] |
Post subject: | |
Thanks for the feedback guys and apologies for the delay in responding. It must have been an issue with the password - I did originally set a password on the new account when I created it, but I must have been entering it wrong, as when I reset it, the account worked with the new password. Thanks for the assist guys! My next question concerns Samba. I have been following the instruction on the wiki: http://www.knoppmythwiki.org/index.php? ... SambaHowTo but they don't seem to work with R6 - there is no entry for samba under /etc/init.d there is a folder for samba under /usr/lib/samba, does this mean it's installed, if so how do I start it? Thanks! |
Author: | miraclemaker [ Sat Sep 19, 2009 9:19 am ] |
Post subject: | |
Ah think I've found the solution here: http://knoppmyth.net/phpBB2/viewtopic.p ... ight=samba Thanks. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |