Operating System - Linux
1833767 Members
2339 Online
110063 Solutions
New Discussion

Unfortunetly changed the ownership of var

 
Guna_2
Regular Advisor

Unfortunetly changed the ownership of var

Dear all

By mistake my software guy changed the /var folder ownership to oracle user and oracle group
by using the command
chown oracle:oracle /var -R

Now my xinetd service also not starting as well as x service also not starting. I dont have any backup also.

Can any one help me please

Thanks and Regards,
Guna
3 REPLIES 3
Ragu_3
Trusted Contributor

Re: Unfortunetly changed the ownership of var

The ownership on /var is "root:root" with 0755 as the dir permission.
Debian GNU/Linux for the Enterprise! Ask HP ...
George Liu_4
Trusted Contributor

Re: Unfortunetly changed the ownership of var

most of subdirectories under /var are root:root, but most should be different,YOu may check other systems to get the full list.
Vitaly Karasik_1
Honored Contributor

Re: Unfortunetly changed the ownership of var

if you use RPM-based distro, yo can use

rpm --setperms --setugids