i did 'chown john /*' and now i am stuck

Posted on 2007-07-31
Last Modified: 2013-12-15
i did 'chown john /*' and now i am stuck. My system is setup to not
accept root logins from ssh and all the permissions are messed up and
john is the owner for everything
any way to fix this?
Question by:tstoneinc
    LVL 14

    Expert Comment

    a chown is always messy and the only way to do it is to run a minimal installation without formatting the disks

    that ways all files are intact.  even the username, group names, uid and gid remain intact with passwords.

    undoing it would take lots of time
    LVL 14

    Assisted Solution

    on a minimal installation, the system automatically changes the ownership of the files in /etc /dev and some of the other critical directories

    pls use chown and chmod with extreme care as there is no confirmation post you hit enter!

    good luck
    LVL 16

    Assisted Solution


    I think if possible you could do an upgrade, if you place the RHEL CD into your CD ROM and select to do an upgrade which would
    fix all the permissions
    LVL 43

    Accepted Solution

    > i did 'chown john /*' and now i am stuck
    Good You haven't issued: chown -R ...

    Just run liveCD(or RHEL rescue mode from first installation cd), mount the changed root filestsystem and issue
    chown root /mountpoint/*

    and that's it.
    LVL 16

    Expert Comment

    Ahh well spotted ravenpl, I thought he issued -R

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now