-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User on #raspbian reported that he can't login #45
Comments
I've just tested it (again), with no configuration file, and it 'works for me'. |
"the openssh server is causing the login problem as it's disabling the password authentication when it gets installed." was reported last night. Could be a jessie issue? Apparently he could reproduce this with a full Raspbian image as well by upgrading openssh which effectively disabled password authentication for him. |
On Wednesday 16 April 2014 21:29:53 Toni Spets wrote:
From https://metadata.ftp-master.debian.org/changelogs//main/o/openssh/unstable_changelog (openssh (1:6.6p1-1)):
To say it simple, yes. |
In the scope of the project, it should most definitely be "fixed" in raspbian-ua-netinst installer script to switch that to "yes" with sed or something during installation. If someone has the time of course. |
On Thursday 17 April 2014 00:07:50 Toni Spets wrote:
Wouldn't it make more sense to fix it by creating a normal user instead? Another way to fix this would be to implement debconf preseeding. It's at the It should be fixed, but I'm more inclined to solve it in another way then to |
Maybe have the option to do so in the config then possibly? I don't always want any normal user during installation and I later secure ssh by changing sshd_config and removing root password if I so feel like. Though, you don't need to do everything according to my likings. It seems there are enough users that care that their voice is much more important. |
On Thursday 17 April 2014 00:07:50 Toni Spets wrote:
I am in favor of doing this as a quick hack for now, so that raspbian-ua- I still think my previous answer is the right one, but since it requires some |
The 'sed' hack can probably done in post-install.txt ... which would be the quickest way to fix it ... |
Workaround for jessie:
and then you can login as root on a jessie system. I'll leave this issue open, so the workaround is found more easily and until a proper fix is found and implemented. |
As a had problems to login after a fresh install, i tried your suggestions. I added the post-install PermitRootLogin workaround, but that had no effect, in the snapshot this was already set the right way. I still could not login. So it seems that some wrong pw is set during installation: Maybe this produces the wrong pw. Workaround: After all. As a workaround for not being able to login as Root: -) mount the SD-card on another (linux-) system With this changed system, a root Login should be possible. |
On Saturday 10 May 2014 00:59:45 johr wrote:
Can you explain to me what you mean by 'current snapshot (from 2014-05-04)'? |
I did a wget on 'https://github.com/hifi/raspbian-ua-netinst/archive/master.tar.gz' . Details: |
update.sh does indeed pull stuff from jessie, but unless you specify jessie in 'installer-config.txt', you're installing wheezy. |
OK. So packages from jessie are pulled during the build of the installer, but when running the installer (if release is not specified) the system is built using wheezy? The official release was my first try, but login was not possible. I specified the root-pw in the installer-config.txt but it seemed to be not used the correct way. preset=server |
Using the official release: So as it seems the workaround works for both the release and the current code (from my point fo view). |
On Sunday 11 May 2014 01:32:20 johr wrote:
Correct. To build the system cdebootstrap is used and the cdebootstrap package
Thanks for testing and reporting back. It's a good thing the results are |
I've just tested using the official v1.0 installer (.img.xz file) with your config ... and I'm able to login without any issues or applying workarounds. On what OS are you transferring the image to your SD card and creating/modifying the installer-config.txt file? Someone has reported differences between linux and windows. |
Cause it works if I'm setting the password manually there has to be a problem during the install at the point when the root-pw is set. You might be right, that the issue is caused by using a windows-system. I created the installer-config.txt on windows and set the root-pw there. Then I copied the files to the SD-card. As a know window encodes a 'newline' as 'carriage-return'+'line-feed'. Maybe the additional character causes the pw to be used 'raspbian'+'line-feed'? A simple test would be: If this is the reason that the login does not work and windows (resp. Mac) should be supported too, there has to be some conversion of the install-config.txt, post-install.txt to make them work on a linux-system. Regardless where the files come from (windows, linux). |
On Sunday 11 May 2014 12:42:50 johr wrote:
Awesome, thanks :-) Have you always specified the root-pw in installer-config.txt?
The goal is to support windows, mac and linux. |
The first test: So my proposed workaround reduces to: The next test (post-process installer-config.txt on a linux system) will follow. |
Phew, that's quite a relief! |
I added the root-pw again (on a windows system), preset=server^M Then I deleted the ^M and put the SD-Card in the Raspi. So if the installer-config.txt is edited on windows than there are 3 possibilities: |
This is awesome, thank you very much 👍 |
unix. Hopefully this fixes the issues reported by johr in issue debian-pi#45 and issue debian-pi#50 reported by Limpster.
@johr Can you ran a new test for me? And then create your config files on windows like you did before and install the system. With a little luck this should fix the issue. (I use my own fork to mess around. When I think the changes are good enough, I commit them to the official repo) |
I did the test (using the built installer): 👍 My next steps for building the system is installing various packages and then removing the installer files. So if you don't mind I would like to ask you (in this thread) which files I need to remove, so no 'accidentally' reinstallation can happen. |
On Tuesday 13 May 2014 12:08:42 johr wrote:
Awesome :-)
I actually have no idea how to trigger a reinstall. |
Hi @johr, |
OK, thanks. I read the docs and looked at the installed system. in /boot: |
That sounds about right :-) |
A regular user of raspbian-ua-netinst reported on the IRC channel that he couldn't log in with the latest installer. Even if he did specify the root password the login was refused on first boot.
The text was updated successfully, but these errors were encountered: