• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

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

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?
RHEL
0
tstoneinc
Asked:
tstoneinc
  • 2
  • 2
3 Solutions
 
ygouthamCommented:
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
0
 
ygouthamCommented:
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
0
 
xDamoxCommented:
Hi,

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
0
 
ravenplCommented:
> 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.
0
 
xDamoxCommented:
Ahh well spotted ravenpl, I thought he issued -R
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now