Forum
« (Solved) New install, root login only! »

Welcome Guest. Please Login or Register.
May 25, 2013, 10:58pm



Return to or visit the SalineOS webpage

Forum :: General :: Installation and Setup Support :: (Solved) New install, root login only!
Page 1 of 2 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: (Solved) New install, root login only! (Read 1,756 times)
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 (Solved) New install, root login only!
« Thread Started on Mar 24, 2011, 10:41am »

Hi, I finally decided to install Saline, but the login screen will only allow root login, my user name and password just returns back to login screen.

I've changed my password, and even created a new user, but still only root login.
I have tried many distros but this is a first time I've had this happen.

Full re-install gave same results, so any advice?

I've just noticed, if I enter my correct password, the screen goes blank for a second and the returns to the login screen, but if I enter an incorrect password the screen does not blank, it just goes back to username.

I don't know if that makes a difference.
Thanks
« Last Edit: Mar 24, 2011, 3:35pm by drudge »Link to Post - Back to Top  IP: Logged
beardedragon
Global Moderator
*****
member is offline

[avatar]



Joined: Feb 2011
Gender: Male
Posts: 860
 Re: New install, root login only!
« Reply #1 on Mar 24, 2011, 11:28am »

When you were installing, do you remember if you used the same password for Root as you did for your username? Other distros use the one password, only, for user and root.
BTW welcome to Saline OS.
Link to Post - Back to Top  IP: Logged

Robert Collard, Madison, WI
HP s5710f, 2x AMD Athlon II 260@3.2Ghz 3GB RAM, 640GB HD
Debian 7.0 XFCE-4.10 3.2.0-4-amd64

If you are satisfied with the results, please Edit your first post and add [Solved] to the Subject line.
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 Re: New install, root login only!
« Reply #2 on Mar 24, 2011, 11:48am »

Yes, I'm sure I used different passwords.

I've just tried the login screen again, if I enter an incorrect password for root, the screen simply goes back to username request without going blank first.

When I enter my correct user password the screen still goes blank for a second before returning to the login screen, so it is checking 'something' but there are no error messages.

I am wondering if maybe an error message may be logged somewhere that I could check?

Just checked something else! Although I'm not sure about the correct terminology

If I enter "killall slim" at a terminal to exit all graphic 'stuff', I can then login with my username and password to the text 'stuff', but get a warning "No directory, logging in with Home=/".
I don't know if I can get into a desktop from there?

The installation I have made is on seperate partitions for / and home.
Home has been created.

Hope this might shed some light.
« Last Edit: Mar 24, 2011, 12:02pm by drudge »Link to Post - Back to Top  IP: Logged
beardedragon
Global Moderator
*****
member is offline

[avatar]



Joined: Feb 2011
Gender: Male
Posts: 860
 Re: New install, root login only!
« Reply #3 on Mar 24, 2011, 12:00pm »


Mar 24, 2011, 11:48am, drudge wrote:
Yes, I'm sure I used different passwords.

I've just tried the login screen again, if I enter an incorrect password for root, the screen simply goes back to username request without going blank first.

When I enter my correct user password the screen still goes blank for a second before returning to the login screen, so it is checking 'something' but there are no error messages.

I am wondering if maybe an error message may be logged somewhere that I could check?

It is not asking for your Root password, but, your User Name password.
Link to Post - Back to Top  IP: Logged

Robert Collard, Madison, WI
HP s5710f, 2x AMD Athlon II 260@3.2Ghz 3GB RAM, 640GB HD
Debian 7.0 XFCE-4.10 3.2.0-4-amd64

If you are satisfied with the results, please Edit your first post and add [Solved] to the Subject line.
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 Re: New install, root login only!
« Reply #4 on Mar 24, 2011, 12:04pm »

Sorry I was just modifying my previous post if that info helps.
Yes, I'm using the correct passwords
« Last Edit: Mar 24, 2011, 12:08pm by drudge »Link to Post - Back to Top  IP: Logged
beardedragon
Global Moderator
*****
member is offline

[avatar]



Joined: Feb 2011
Gender: Male
Posts: 860
 Re: New install, root login only!
« Reply #5 on Mar 24, 2011, 12:07pm »


Mar 24, 2011, 12:04pm, drudge wrote:
Sorry I was just modifying my previous post if that info helps

It's asking for your User Name Password. Not Root.
Link to Post - Back to Top  IP: Logged

Robert Collard, Madison, WI
HP s5710f, 2x AMD Athlon II 260@3.2Ghz 3GB RAM, 640GB HD
Debian 7.0 XFCE-4.10 3.2.0-4-amd64

If you are satisfied with the results, please Edit your first post and add [Solved] to the Subject line.
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 Re: New install, root login only!
« Reply #6 on Mar 24, 2011, 12:10pm »

Yes, I'm entering the correct password, I can user login into the text screen with the warning I had mentioned
Link to Post - Back to Top  IP: Logged
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 Re: New install, root login only!
« Reply #7 on Mar 24, 2011, 12:59pm »

I have worked around the problem by re-installing again (3rd time), this time installing / and home to the same partition (that's the only difference), user login now works correctly.

Not really solved, but I'm happy.
Link to Post - Back to Top  IP: Logged
beardedragon
Global Moderator
*****
member is offline

[avatar]



Joined: Feb 2011
Gender: Male
Posts: 860
 Re: New install, root login only!
« Reply #8 on Mar 24, 2011, 1:05pm »


Mar 24, 2011, 12:59pm, drudge wrote:
I have worked around the problem by re-installing again (3rd time), this time installing / and home to the same partition (that's the only difference), user login now works correctly.

Not really solved, but I'm happy.

Glad to hear about the workaround. I was waiting on the Cavalry (Someone with the solution) I knew the problem was the moving "Home" but, I don't know how to fix it. The solution may come later.
Link to Post - Back to Top  IP: Logged

Robert Collard, Madison, WI
HP s5710f, 2x AMD Athlon II 260@3.2Ghz 3GB RAM, 640GB HD
Debian 7.0 XFCE-4.10 3.2.0-4-amd64

If you are satisfied with the results, please Edit your first post and add [Solved] to the Subject line.
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New install, root login only!
« Reply #9 on Mar 24, 2011, 1:22pm »

I am glad you got yourself logged in. Sounds like an issue mounting /home at boot. If you wouldn't mind supplying me information on how you setup your partitions the first couple times that would be helpful. I will try and reproduce this on my machine and find an underlying cause.

Did you let the installer format /home and if it wasn't formatted are you sure you didn't use the same user name as another distribution that uses that partition? The only time I have seen the error you are describing is when the /home partition didn't have enough space to login. But, I am pretty sure using the same user name as another distribution on home will cause this as well. The installer may fail to setup write permissions to the folder if it already exists.
Link to Post - Back to Top  IP: Logged
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 Re: New install, root login only!
« Reply #10 on Mar 24, 2011, 1:51pm »

Thanks beardedragon for trying to help.
Hi Anthony Nordquist, thanks for a great distro.

This was installed to replace cruchbang (also based on Debian 6), partitions were already ext3, home was formatted again by Saline as far as I'm aware.

I have 2 hard drives, the first has 4 partitions, I always keep the same setup.

sda1 MS XP ntfs 80Gb
sda2 / ext3 15Gb
sda3 swap 2Gb
sda4 home ext3 210Gb

That was my original problem setup, I now have Saline installed entirely on sda4.
The second hd sdb is just data storage, 2 partitions ext3

Hope this helps.
« Last Edit: Mar 24, 2011, 2:00pm by drudge »Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New install, root login only!
« Reply #11 on Mar 24, 2011, 3:15pm »

Figured this one out, I will be working up some patches to the installer with upstream. The installer is passing "" as the filesystem type of /home to fstab of the installed system. You can fix this by logging in as root and editing /etc/fstab. You will find an entry something like below.

# /dev/sda3 home
UUID= /home relatime 0 0

It should be (replace ext4 with ext3 if the filesystem of home is ext3)

# /dev/sda3 home
UUID= some-really-long-UUID /home ext4 relatime 0 0
« Last Edit: Mar 24, 2011, 9:38pm by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
drudge
New Member
*
member is offline





Joined: Mar 2011
Gender: Male
Posts: 11
 Re: New install, root login only!
« Reply #12 on Mar 24, 2011, 3:34pm »

Many thanks for that.
Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: (Solved) New install, root login only!
« Reply #13 on Mar 24, 2011, 3:45pm »


Mar 24, 2011, 3:34pm, drudge wrote:
Many thanks for that.


Thank you for reporting this :) I do bare metal installs of all my images for testing purposes. Seems I never bothered to do an install with a separate /home partition outside of VirtualBox though :-[ This is a perfect example why I/everyone should always test everything outside VirtualBox as this bug doesn't exist within VirtualBox installs.

Seems I maybe wrong on the cause of this. I will be looking into this some more and will work something out.
« Last Edit: Mar 24, 2011, 4:17pm by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: (Solved) New install, root login only!
« Reply #14 on Mar 24, 2011, 11:47pm »

This issue is caused by the line that creates the directory that /home gets temporarily mounted to for install is skipped if you chose noformat. This means that the mount fails and since the partition isn't mounted it doesn't generate a UUID and the filesystem type comes up as "".

You can fix fstab manually by logging in as root and changing the entry in /etc/fstab To find the UUID of your partition input the following into the terminal as root blkid /dev/sdaX , replacing X with the appropriate number for your home partition. The command cat /proc/partitions will output a list of partitions on your machine.

In /etc/fstab you will find an entry like this:

# /dev/sdaX home
UUID= /home relatime 0 0

It should be (replace ext4 with ext3 if the filesystem of home is ext3)

# /dev/sdaX home
UUID= some-really-long-UUID /home ext4 relatime 0 0

I will have to rebuild images with a patched installer to get this issue resolved.
Link to Post - Back to Top  IP: Logged
Page 1 of 2 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]



Anthony Nordquist, on behalf of the SalineOS project, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. As such, if you click the above banner and then make any purchase including digital downloads, a small percentage will be paid to the SalineOS project.
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile