Why are my user accounts missing from login screen after upgrade to 14.04 from 12.04 ?

1,956

I had a similar problem. I was upgrading from Ubuntu 13.10 to 14.04 and it crashed mid way through the process. I ended up reinstalling Ubuntu from a USB drive and chose the option to keep my files and users but ran into the same issue that you're having.

The following worked for me:

  1. Create a new user with the same exact username as the one lost.
  2. Open Terminal
  3. id -u username
  4. My uid was 1001 shown in example below, replace this with your uid.
  5. sudo useradd --home /home/username --uid 1001 --gid users username
  6. sudo chown -R username: ~username

See here for more explanation: http://www.tuxradar.com/answers/681

Share:
1,956

Related videos on Youtube

nik
Author by

nik

Updated on September 18, 2022

Comments

  • nik
    nik almost 2 years

    I am getting this vulnerability "disable OPTIONS Method on the web server". Please see ErrorScreenshot image link

    ErrorScreenshot

    In web Config i have already added following tag:

     <system.web>
        <compilation debug="true" targetFramework="4.6"/>
        <httpRuntime targetFramework="4.6" requestValidationMode="4.5" enableVersionHeader="false"/>
        <machineKey validationKey="FF4636C4DF933BE453F9B94810661C5F5625794E5DCA46A3C281EB18CC5410386A4B38F5E4C7D7106C049C9EB10F31C2F4E76E74616ABD36DC6C64AF2BFF6801" decryptionKey="667F9049734567FF3E7BC7031DF4B4431F992A447CE2FB3258F6EE989BA82E8F" validation="SHA1" decryption="AES"/>
        <httpHandlers>
          <add path="*" verb="OPTIONS" type="System.Web.DefaultHttpHandler" validate="true"/>
          <add path="*" verb="TRACE" type="System.Web.DefaultHttpHandler" validate="true"/>
          <add path="*" verb="HEAD" type="System.Web.DefaultHttpHandler" validate="true"/>
        </httpHandlers>
        <authorization>
          <deny verbs="OPTIONS" users="*"/>
          <deny verbs="TRACE" users="*"/>
          <deny verbs="HEAD" users="*"/>
        </authorization>
        <authentication mode="Forms">
          <forms loginUrl="~/Login/Login" defaultUrl="~/Home/Home" path="/" name="test" cookieless="UseCookies" requireSSL="true" slidingExpiration="false" timeout="2880" protection="All"/>
        </authentication>
        <httpCookies httpOnlyCookies="true" requireSSL="true"/>
        <sessionState timeout="20"/>
        <customErrors mode="On" defaultRedirect="~/Home/ErrorPage"/>
      </system.web>
    

    Please Help!

  • APNW
    APNW about 10 years
    Thanks! Turns out, that just creating a user with the exact name was enough. Strangely enough,it did not let me do this during the installation, when I tried making users with same IDs as before.