Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Locked after UID change

  1. #1
    Join Date
    Oct 2007
    Location
    3rd Rock from the Sun
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Angry Locked after UID change

    Hi.

    I recently changed the UID and GID for Ubuntu, fromm 1000 to 501.
    Did this to be able to open my user directory on the Mac Osx partition. It was working alright , even loged out and back in and it was ok.
    After a shut down and reboot, I was not able to open my account. It says I have no permissions to read and right any file.
    How can I change permissions again to be able to log in or how do I change all the files permissions to 501?
    I'm a newbie so please bear with me!

    Thankshttp://ubuntuforums.org/images/icons/icon8.gif
    Macbook2,1 Black 2Ghz 2Gb Ubuntu9.04 MacOSX

  2. #2
    Join Date
    May 2009
    Location
    Lytham St Anne's, England
    Beans
    119
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Locked after UID change

    Hi, tripundra.

    I'm eager to help you, but I'm not sure what symptoms you are getting. Can you log in to Ubuntu and get to a desktop? Once you are in Ubuntu, can you try this within an Ubuntu terminal:
    Code:
    cd ~ && ls -l && id -u && id -g
    and print the output here for us to look at.

    Richard

  3. #3
    Join Date
    Oct 2007
    Location
    3rd Rock from the Sun
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Locked after UID change

    hi Richard,

    I can log into my account but like I said I get plenty of error messages.
    I do not get a complete desktop, the mouse loads, but none of the deskbar with the menus appear. I cannot load a terminal, afaik. and doing alt+ctrl+del to log out gets a msg saing" couldn't execute command: gnome session-save, etc etc".
    I tried log in with root but I hadn't allowed root to log in, so I can not.
    There is only one account created.
    Macbook2,1 Black 2Ghz 2Gb Ubuntu9.04 MacOSX

  4. #4
    Join Date
    Oct 2007
    Location
    3rd Rock from the Sun
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Locked after UID change

    Hi Richard,

    I entered in recovery mode and asked to "Drop to root shell prompt"
    pasted the commands you sent and came out as,
    total 0
    0
    0

    Don't know if it's what you want!Or if I need to change to my user account,( don't know how to do it)!

    thanks
    Edgar
    Macbook2,1 Black 2Ghz 2Gb Ubuntu9.04 MacOSX

  5. #5
    Join Date
    May 2008
    Location
    My apartment, Pune, India
    Beans
    110
    Distro
    Kubuntu Development Release

    Re: Locked after UID change

    Code:
    chown -hR <username> /home/<username>
    Last edited by iamkrazee; July 17th, 2009 at 05:46 PM. Reason: spellmistake
    अविद्ययामृत्युंतीर्त्वाविद्ययामृतमश्नुते।

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Locked after UID change

    Quote Originally Posted by Richardcavell View Post
    Hi, tripundra.

    I'm eager to help you, but I'm not sure what symptoms you are getting. Can you log in to Ubuntu and get to a desktop? Once you are in Ubuntu, can you try this within an Ubuntu terminal:
    Code:
    cd ~ && ls -l && id -u && id -g
    and print the output here for us to look at.

    Richard
    in recovery mode you are logged in as root so ~ is /root and id returns root's uid...

    @OP:
    post:
    Code:
    ls -l /home/username
    ls -ald /home/username/
    id username
    btw, how did you change your uid and gid?

  7. #7
    Join Date
    May 2008
    Location
    My apartment, Pune, India
    Beans
    110
    Distro
    Kubuntu Development Release

    Re: Locked after UID change

    IMO although my method is crude, chown should set the right UID/GIDs.

    And the "cd ~" part is why i told you to skip that and go straight for chown. Should work. Please report back.
    अविद्ययामृत्युंतीर्त्वाविद्ययामृतमश्नुते।

  8. #8
    Join Date
    Oct 2007
    Location
    3rd Rock from the Sun
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Locked after UID change

    tried the chown -hr .....
    comes out as :
    chown: invalid option -- 'r'


    did the ls -l /home/tripundra

    came out as:
    total 0
    lrwxrwxrwx 1 root root 56 Jul 15 18:00 Access-Your-Private-Data.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop
    lrwxrwxrwx 1 root root 56 Jul 15 18:00 README.txt -> usr/share/ecryptfs-utils/ecryptfs-mount-private.txt


    then : ls- ald /....
    came as:

    dr-x------ 3 tripundra 1000 4096 Jul 15 18:00 /home/tripundra


    then : id tripundra
    comes as:

    uid=501(tripundra) gid=501(tripundra groups=501(tripundra),4(adm),20(dialout),24(cdrom) ,29(audio),46(plugdev),109(lpadmin),117(admin),122 (sambashare)




    I changed the UID and GUI by following the post on Apple users for Ubuntu 9.04 installation.


    Thanks
    Edgar
    Macbook2,1 Black 2Ghz 2Gb Ubuntu9.04 MacOSX

  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Locked after UID change

    try:
    Code:
    chown -R tripundra\: /home/tripundra
    chmod 0750 /home/tripundra

  10. #10
    Join Date
    Oct 2007
    Location
    3rd Rock from the Sun
    Beans
    27
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Locked after UID change

    Hi Just followed the manual again to rechange to UID and GID to 1000
    I don't know what the code means but know how to past it! jejeje


    Code:

    sudo groupmod -g 1000 tripundra

    sudo usermod -u 1000 -g 1000 tripundra

    And now I'm able to log on,

    So it's now working!
    Thanks to you all!
    If you have an idea on how to change the UID and GUI to 501 and still log in, I would really appreciate!!
    As a side line I followed your thread Richard!! It made my Installation very easy!!Thanks
    Macbook2,1 Black 2Ghz 2Gb Ubuntu9.04 MacOSX

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •