LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu 12.04 LTS, unable login as administrator after reinstallation (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-12-04-lts-unable-login-as-administrator-after-reinstallation-4175585398/)

dorsio 07-24-2016 07:32 AM

Ubuntu 12.04 LTS, unable login as administrator after reinstallation
 
Ubuntu 12.04 LTS: after reinstalling system unable login as administrator, only allows enter as a guest. Reinstall was done to '/' Ubuntu partition, no formatting, with the same name & pass as in original installation. I used this Guide to reinstall Ubuntu.

Keruskerfuerst 07-24-2016 07:45 AM

You should format all partitions except /home.

dorsio 07-24-2016 08:39 AM

Quote:

Originally Posted by Keruskerfuerst (Post 5580549)
You should format all partitions except /home.

But reinstallation solved the issue I had before, now all is worked. I need solve this problem with login.

TB0ne 07-24-2016 09:44 AM

Quote:

Originally Posted by dorsio (Post 5580568)
But reinstallation solved the issue I had before, now all is worked. I need solve this problem with login.

You only had a 'problem', because you corrupted your filesystem, and didn't let the fsck run until completion. A re-install formatted your drive..it didn't 'solve' the issue, anymore than buying a new car will 'fix' another broken car you have.

Also, you're installing 12.04?? Why? The latest is 16.04..you're FOUR major versions behind on a new installation. The best thing you can do is to boot to single-user mode, make a copy of all your data on /home, and wipe/reload to the LATEST version of things. Installing an old OS is pointless..you're just asking for headaches.

dorsio 07-24-2016 10:03 AM

Quote:

Originally Posted by TB0ne (Post 5580586)
You only had a 'problem', because you corrupted your filesystem, and didn't let the fsck run until completion. A re-install formatted your drive..it didn't 'solve' the issue, anymore than buying a new car will 'fix' another broken car you have.

Also, you're installing 12.04?? Why? The latest is 16.04..you're FOUR major versions behind on a new installation. The best thing you can do is to boot to single-user mode, make a copy of all your data on /home, and wipe/reload to the LATEST version of things. Installing an old OS is pointless..you're just asking for headaches.

I sticked to 12.04 LTS just because Dell support site specified 12.04 LTS as supported Linux version. No other Linux vers. was specified. On which step the filesystem was corrupted, as you mention? I just followed Ubuntu installation wizard steps. I had issue with missing audio before reinstallation, after reinstall Ubuntu, uadio was restored, and video playback also works, without installing additional drivers. In original installation, video playback by default not worked, so it was necessary to install additional Adobe Flash plugin.

TB0ne 07-24-2016 10:33 AM

Quote:

Originally Posted by dorsio (Post 5580594)
I sticked to 12.04 LTS just because Dell support site specified 12.04 LTS as supported Linux version. No other Linux vers. was specified.

..and that matters how, exactly??? Are you going to call Dell for Linux support? Because if so, you need to then call Dell for an OFFICIAL installation disc, and let THEM do the installation to be under official support. Otherwise, there is NO POINT in loading an old system. Also, you can use pretty much ANY Linux distro on ANY laptop, just as easily.
Quote:

On which step the filesystem was corrupted, as you mention?
In your OTHER thread where you tried to run fdisk to fix it (?), then just decided to reload.
Quote:

I just followed Ubuntu installation wizard steps. I had issue with missing audio before reinstallation, after reinstall Ubuntu, uadio was restored, and video playback also works, without installing additional drivers. In original installation, video playback by default not worked, so it was necessary to install additional Adobe Flash plugin.
All this is immaterial. You're not actually solving your problems by reloading an OS, anymore than you're fixing your leaking roof by buying a new house. If you want to reset your administrator password, did you try putting "forgot root password ubutun 12.04" into Google, and reading the VERY FIRST HIT, which is from the official Ubuntu documentation[/B]? And if you're under 'support' with Dell, have you asked THEM??

offgridguy 07-24-2016 10:50 AM

Quote:

Also, you're installing 12.04?? Why? The latest is 16.04..you're FOUR major versions behind on a new installation. The best thing you can do is to boot to single-user mode, make a copy of all your data on /home, and wipe/reload to the LATEST version of things. Installing an old OS is pointless..you're just asking for headaches.
This is good advice.:thumbsup:

dorsio 07-24-2016 11:30 AM

Quote:

Originally Posted by TB0ne (Post 5580605)
In your OTHER thread where you tried to run fdisk to fix it (?), then just decided to reload.

No, this is not the problem I've encountered. I asked because I wanted to know how to check file integrity, just to be on safe side.
Quote:

Originally Posted by TB0ne (Post 5580605)
If you want to reset your administrator password, did you try putting "forgot root password ubuntu 12.04" into Google, and reading the VERY FIRST HIT, which is from the official Ubuntu documentation[/B]?

But I don't said that I forgot my root password, I don't forgot it, Ubuntu don't allow login as admin, once I login it keeps me back in to login screen.(the screen flashes to console, then I'm thrown back to the login splash). If even I mistype pass, error is always visible.
Surely I expected that most likely I will the range of issues with Ubuntu that come preinstalled with laptop, but not so many, and not from the outset. And it will take ages to find the faulty configuration file.

TB0ne 07-24-2016 12:04 PM

Quote:

Originally Posted by dorsio (Post 5580621)
No, this is not the problem I've encountered. I asked because I wanted to know how to check file integrity, just to be on safe side.

This: http://www.linuxquestions.org/questi...ty-4175585031/

...is that thread, where you force-stopped the upgrade. In that very thread you say that you used recovery to factory-state, right??? What do you think that does? You corrupted your system by doing something bad, had to reset to 'factory' (i.e. initial state). Fsck will report any bad spots on the screen...there is no saved report. Read the man page. But from THAT thread (your PREVIOUS thread), we're here to your NEW thread, which is titled

Quote:

Originally Posted by TITLE OF THIS THREAD
Ubuntu 12.04 LTS, unable login as administrator after reinstallation

Re-installation...but you didn't 'reload'??? You do realize they mean the same things, right???
Quote:

But I don't said that I forgot my root password, I don't forgot it, Ubuntu don't allow login as admin, once I login it keeps me back in to login screen.(the screen flashes to console, then I'm thrown back to the login splash). I If I mistype pass, error istalways visible.
First, DO NOT LOG IN AS ROOT/ADMINISTRATOR, PERIOD. That's been covered on here as a VERY bad thing thousands of times, and there isn't ANY site that will tell you this is good. Log in as your regular user, and assume root ONLY when needed to. Why do you think that administrator/root login is disabled BY DEFAULT???

Secondly, again...did you try just putting "enable root login ubuntu 12.04" into Google? Read the "Question Guidelines" link in my posting signature. The FIRST TWO HITS are:
https://help.ubuntu.com/community/RootSudo
http://askubuntu.com/questions/44418...ble-root-login

...which are LOADED with warnings about NOT doing this, for very good reasons.
Quote:

Surely I expected that most likely I will the range of issues with Ubuntu that come preinstalled with laptop, but not so many, and not from the outset.
You're having issues, because you are doing things badly. This isn't because of Linux...it's you. You're manually stopping things that SHOULD NOT be stopped, running as root, etc. Also, you've now been using Linux for two years...why are these things 'new' to you?

AGAIN...if you have a Dell laptop that's under support with Dell, using Dell supplied OS, WHY are you not CONTACTING DELL FOR HELP??? If you're NOT under support, stop trying to force things to work in ways they're not supposed to, stop where you are, and load the latest versions of things, and move forward. You're having problems because you CAUSED them with the botched upgrade. If you HAD admin/root login enabled before, and you reinstalled, why are you amazed that it's not there now? You reset the system, which obviously puts that back, right????

dorsio 07-24-2016 01:38 PM

Quote:

Originally Posted by TB0ne (Post 5580632)
Also, you've now been using Linux for two years...why are these things 'new' to you?

I have not been using Linux for a very long time now, so I forgot many details, include important things about root account. Can I upgrade to Ubuntu 14.04.4 from guest account? If so, should this solve all login problems?

I can also probably install another Linux distrbutive, something stable, for example last Debian pack, but I would preffer distributive with preinstalled graphical desktop and minimal set of handy applications like Ubuntu have (LibreOffice, etc)

I'm not sure how should I format disk or set new partitions to install new pack, or I can install new distributive to /sda3 in place of Ubuntu, without touching other partitions?


Code:

/dev/sda1 2048 718847 358400 de Dell Utility
/dev/sda2 718848 7010303 3145728 c W95 FAT32 (LBA)
/dev/sda3 * 7010304 960389119 476689408 83 Linux
/dev/sda4 960391166 976771071 8189953 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 960391168 976771071 8189952 82 Linux swap / Solaris


TB0ne 07-24-2016 02:45 PM

Quote:

Originally Posted by dorsio (Post 5580675)
I have not been using Linux for a very long time now, so I forgot many details, include important things about root account. Can I upgrade to Ubuntu 14.04.4 from guest account? If so, should this solve all login problems?

Since you cancelled an earlier upgrade that did exactly that, is it not OBVIOUS THAT YOU CAN??? And AGAIN, since you keep mentioning 'support' from Dell, have you CALLED THEM???
Quote:

I can also probably install another Linux distrbutive, something stable, for example last Debian pack, but I would preffer distributive with preinstalled graphical desktop and minimal set of handy applications like Ubuntu have (LibreOffice, etc)
AGAIN, you can load ANY version of Linux. For you, I think Mint would be best. ANY of them, have graphical desktops, and would probably install in about 30 minutes.
Quote:

I'm not sure how should I format disk or set new partitions to install new pack, or I can install new distributive to /sda3 in place of Ubuntu, without touching other partitions?

Code:

/dev/sda1 2048 718847 358400 de Dell Utility
/dev/sda2 718848 7010303 3145728 c W95 FAT32 (LBA)
/dev/sda3 * 7010304 960389119 476689408 83 Linux
/dev/sda4 960391166 976771071 8189953 5 Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5 960391168 976771071 8189952 82 Linux swap / Solaris


AGAIN you should back up your data on /home (or wherever you keep your personal files), and FORMAT EVERYTHING. When you go to install a new distro, let it partition your disk for you. That's it.

Not sure how many times we have to say the same things.....

dorsio 07-24-2016 06:41 PM

I can login as Administrator use TTY4, but not from GUI. I upgraded to Ubuntu 14.04 from TTY console. But I'm still can no login from GUI as admin. I have not set root priveleges, that configuration was set by default, from Dell. Also, when I reinstalled 12.04 I only repeated same steps that was required during very first configuration. Dell phone support is not available in my area, btw.
How to reset access to Administrator account via GUI?
If there is some file corrupted, the only way to solve the issue is completely reinstall system?
Windows have many system diagnostic and repair utilites that can solve various issues, but Linux lack this functionality.

Dave Lerner 07-24-2016 09:21 PM

Linux has many system diagnostic and repair utilites too, but they require relevant knowledge. Unlike Windows, Linux is not designed to be idiot-proof.

What's the output from this command?

Code:

sudo apt-get -f install
(It doesn't make any changes, it just informs you about potential issues with packages.)

dorsio 07-25-2016 06:10 AM

Quote:

Originally Posted by Dave Lerner (Post 5580802)
Linux has many system diagnostic and repair utilites too, but they require relevant knowledge. Unlike Windows, Linux is not designed to be idiot-proof.

What's the output from this command?

Code:

sudo apt-get -f install
(It doesn't make any changes, it just informs you about potential issues with packages.)

In terms of usability, for most of general users, Windows is still far ahead of Linux, unfortunately.

sudo apt-get -f install

if run from Guest account, it returns

Code:

sudo: unable to change to root gid: Operation not permitted
from tty4:

Code:

Reading package lists.. Done
Building dependency tree
Reading state information.. Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded


Dave Lerner 07-25-2016 06:16 AM

Quote:

Originally Posted by dorsio (Post 5580928)
In terms of usability, for most of general users, Windows is still far ahead of Linux, unfortunately. ...

In that case, maybe you should use Windows instead of Ubuntu.

dorsio 07-25-2016 07:06 AM

e
Quote:

Originally Posted by Dave Lerner (Post 5580931)
In that case, maybe you should use Windows instead of Ubuntu.

I'm trying to combine using both, Windows and Linux. Windows more for productivity tasks whereas Linux for task related with various hardware, embedded OS. Does the output show meaningful info?

TB0ne 07-25-2016 07:53 AM

Quote:

Originally Posted by dorsio (Post 5580768)
I can login as Administrator use TTY4, but not from GUI. I upgraded to Ubuntu 14.04 from TTY console. But I'm still can no login from GUI as admin. I have not set root priveleges, that configuration was set by default, from Dell.

And AGAIN, you were given links to enable such access, and to enable the GUI for root.
And AGAIN, if you're using what's from Dell, then READ THEIR DOCUMENTATION OR CONTACT THEM.
Quote:

Also, when I reinstalled 12.04 I only repeated same steps that was required during very first configuration. Dell phone support is not available in my area, btw.
Why is that??? You can't dial those particular numbers? AGAIN if you're going to stick with "it's from Dell, and I only want to use what Dell provides", then your ONLY OPTION is to call Dell for support. As said NUMEROUS times so far, you can load ANY version of Linux you want, and we even suggested Mint several times.....pick a direction and move in it.
Quote:

How to reset access to Administrator account via GUI?
YOU GO READ THE LINK YOU WERE SPOON-FED PREVIOUSLY...this is STILL not a difficult thing to look up for yourself, and you've been handed it twice now. What more would you like?
Quote:

If there is some file corrupted, the only way to solve the issue is completely reinstall system?
AGAIN, NO...YOU did that yourself, you cancelled the repair, and you're AMAZED that your system had problems.
Quote:

Windows have many system diagnostic and repair utilites that can solve various issues, but Linux lack this functionality.
AGAIN, you are WRONG...Linux systems have FAR more repair/rescue abilities than Windows. You are just not paying attention.
Quote:

Originally Posted by dorsio
In terms of usability, for most of general users, Windows is still far ahead of Linux, unfortunately.

Wrong. Linux is different...when you don't know what you're doing, it's hard. I find Windows MUCH harder to use than Linux, because I am USED TO Linux. People who use a Mac every day swear by them, but no matter what, you can't just sit down with something you're not used to, and expect to 'just know' how to use it, can you??? You are expecting Linux to be magic, somehow.
Quote:

Originally Posted by dorsio
sudo apt-get -f install

if run from Guest account, it returns:sudo: unable to change to root gid: Operation not permitted

RIGHT...because you STILL are using the 'guest' account, which does not have sudo rights. Use your OWN account, which DOES, or follow the two tutorials/links you were handed previously, but seem to have ignored.
https://help.ubuntu.com/community/RootSudo
http://askubuntu.com/questions/44418...ble-root-login

No matter what 'tty' you log in to, you have COMPLETELY BOTCHED your system. This is not the fault of Linux...this is YOUR fault.
Quote:

Originally Posted by dorsio
I'm trying to combine using both, Windows and Linux. Windows more for productivity tasks whereas Linux for task related with various hardware, embedded OS. Does the output show meaningful info?

Yes, it shows you haven't read/understood/tried ANYTHING you've been told so far. I agree with DaveLerner...you need to go back to Windows.

dorsio 07-26-2016 09:26 AM

Quote:

Originally Posted by TB0ne (Post 5580972)
AGAIN, NO...YOU did that yourself, you cancelled the repair, and you're AMAZED that your system had problems.

I canceled upgrade just because process was unexpectedly long, it "hang up" somewhere (whereas it install in background), without some notification text (like "wait.. etc"), as I can't wait forever, I canceled upgrade.
If reinstall, if there any advantages to keep existing partitioning scheme(in term of convenience)i.e. preserve DellUtility partition(for easier recover), and Partition 2 and 4?

TB0ne 07-26-2016 10:41 AM

Quote:

Originally Posted by dorsio (Post 5581508)
I canceled upgrade just because process was unexpectedly long, it "hang up" somewhere (whereas it install in background), without some notification text (like "wait.. etc"), as I can't wait forever, I canceled upgrade.

Then don't whine when your machine doesn't work.
Quote:

If reinstall, if there any advantages to keep existing partitioning scheme(in term of convenience)i.e. preserve DellUtility partition(for easier recover), and Partition 2 and 4?
I think it would be far better if you just used Windows, and deleted Linux.

TxLonghorn 07-26-2016 02:49 PM

You really should consider an upgrade to one of the more recent linux versions. Mint has been mentioned (Mint 18 - or Mint 17.3 would do). The latest LTS Ubuntu would work as well.
No, it is not mandatory to wipe the hard drive and start from scratch, but in your case, with the problems you have related, it is not a bad idea.
Just make sure all your personal files are backed up first.
I would not worry about losing any Dell utilities on the hard drive. Linux has utilities which can do whatever you need to do.

yancek 07-26-2016 07:03 PM

Quote:

Dell phone support is not available in my area, btw.
If you knew you could not get support, why buy it??

Quote:

How to reset access to Administrator account via GUI?
If all you have to work with is a guest account, you can't. Guest user privileges are extremely limited on Ubuntu and do not allow the use of sudo and nothing is saved on reboot for a guest user. Also you can't install software and do upgrades as a guest user so if you were able to do that you had to be able to log in as a normal user with sudo privileges. Either that, or if this was a pre-installed system from Dell, then Dell modified the accoutn.

When you reinstalled, did you create a new user or just hope that the old user would still work?
Anyhow, Ubuntu documentation on the "guest accout"

https://help.ubuntu.com/community/CustomizeGuestSession

I don't see how any of the problems the OP is having are related to the specific distribution release, Ubuntu 12.04. It is supported and will be at least until April, 2017. Mostly the old PEBKAC problem.

TB0ne 07-27-2016 07:35 AM

Quote:

Originally Posted by yancek (Post 5581778)
If you knew you could not get support, why buy it??

I wondered the same thing. I also wondered why the OP couldn't make a phone call to a specific number from that area, too. I'm fairly certain I can punch numbers on any phone in the world, and connect to any other.
Quote:

If all you have to work with is a guest account, you can't. Guest user privileges are extremely limited on Ubuntu and do not allow the use of sudo and nothing is saved on reboot for a guest user. Also you can't install software and do upgrades as a guest user so if you were able to do that you had to be able to log in as a normal user with sudo privileges. Either that, or if this was a pre-installed system from Dell, then Dell modified the accoutn.

When you reinstalled, did you create a new user or just hope that the old user would still work?
Anyhow, Ubuntu documentation on the "guest accout"

https://help.ubuntu.com/community/CustomizeGuestSession
Yep...been given advice on this several times, including links.
Quote:

I don't see how any of the problems the OP is having are related to the specific distribution release, Ubuntu 12.04. It is supported and will be at least until April, 2017. Mostly the old PEBKAC problem.
They said they were reloading...if they're going to reload the system anyway, getting the latest versions of things on wouldn't be a bad way to go. THEN they said it was from Dell, yet they couldn't contact Dell for support, and needed admin access, but couldn't/wouldn't follow the links given...and are still asking for admin access, but they want to keep the Dell restore partition, because....Dell....because....they COMPLETELY botched the system, by cancelling something because it long, and they 'couldn't wait forever'. Reloading would be the quickest and most stable way to get back running...would've taken 30 minutes or so, but they'd rather spend days posting about admin access on a botched system that can't get a GUI.

The OP can either reload everything (hence, Mint or latest Ubuntu for simplicity's sake) and wipe the Dell partition (not using it, since it has Ubuntu 12.04 on it), or they can contact Dell and use the support they paid for. They seem to not want either.

michaelk 07-27-2016 04:50 PM

Dave Lerner,dorsio

Per the rules:
Quote:

Do not post any messages that are obscene, vulgar, sexually-orientated, hateful, threatening, hostile or insulting.
Personal attacks on others will not be tolerated.
Do not post if you do not have anything constructive to say in the post.
If you can not stay on topic this thread will be closed.

dorsio 07-31-2016 06:23 AM

I solved the problem myself.
I run two commands and that helped.
Code:

sudo xdg-user-dirs-update --force

sudo chown -R username:username /home/username

The issue was not related to wrong setup of admin account, and there is nothing "BOTCHED" or "DAMAGED" as some have pointed here. None of the above tips are helpful.

TB0ne 07-31-2016 09:22 AM

Quote:

Originally Posted by dorsio (Post 5583630)
I solved the problem myself.
I run two commands and that helped.
Code:

sudo xdg-user-dirs-update --force
sudo chown -R username:username /home/username

The issue was not related to wrong setup of admin account, and there is nothing "BOTCHED" or "DAMAGED" as some have pointed here. None of the above tips are helpful.

Really?? Nothing was botched or damaged...so explain why you couldn't log in as administrator? You *DID* damage your system when you DID botch the reinstallation, which you, yourself, said you stopped, because it was running "forever".

And glad you solved it "yourself"
https://help.ubuntu.com/lts/servergu...anagement.html

dorsio 07-31-2016 11:07 AM

Quote:

Originally Posted by TB0ne (Post 5583668)
Really?? Nothing was botched or damaged...so explain why you couldn't log in as administrator? You *DID* damage your system when you DID botch the reinstallation, which you, yourself, said you stopped, because it was running "forever".

And glad you solved it "yourself"
https://help.ubuntu.com/lts/servergu...anagement.html

the link you posted now and in previous responses are useless in solving problem. I can post a million of such links from Debian manual and what's benefits from this? Just general info, useful, but it CAN NOT help to solve real problem. I confirm, that I have not used any of links or "advices" you posted here.

TB0ne 08-01-2016 07:27 AM

Quote:

Originally Posted by dorsio (Post 5583710)
the link you posted now and in previous responses are useless in solving problem. I can post a million of such links from Debian manual and what's benefits from this? Just general info, useful, but it CAN NOT help to solve real problem. I confirm, that I have not used any of links or "advices" you posted here.

Good for you...of course not.


All times are GMT -5. The time now is 03:38 AM.