Hi guys.I have a little problem.I have a server with OpenSUSE 11 installed and yesterday I installed AWStats.I had to change some permissions to the /var directory,but I changed it for all the folders and files in /var directory.Now the ssh server doesn’t start.It gives me this error “Starting SSH daemon/var/lib/empty must be owned by root and not group or world-writable.
…failed” Luckly i have webmin installed so I tried some Commands like chown -R root:root /var/lib/empty,chown root:root /var/lib/empty and even with chgrp with various combinations.Nothing seems to work.What to do because I can’t login in ssh and nx server.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Set the permissions back to what they were before you changed all of them.
Setting all of /var to some other permissions seems risky at best. Set
the entire tree back to be owned by root:root (/var and /var/lib as well
as /var/lib/empty).
Good luck.
Legolas8911 wrote:
> Hi guys.I have a little problem.I have a server with OpenSUSE 11
> installed and yesterday I installed AWStats.I had to change some
> permissions to the /var directory,but I changed it for all the folders
> and files in /var directory.Now the ssh server doesn’t start.It gives me
> this error “Starting SSH daemon/var/lib/empty must be owned by root and
> not group or world-writable.
> …failed” Luckly i have webmin installed so I tried some Commands like
> chown -R root:root /var/lib/empty,chown root:root /var/lib/empty and
> even with chgrp with various combinations.Nothing seems to work.What to
> do because I can’t login in ssh and nx server.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQIcBAEBAgAGBQJJylhcAAoJEF+XTK08PnB5K8wP/j8bQ4xSF0xplI3aoPVxjLf/
MaLGmNb/+Ryb7N8iUdW+ulB/7y1/JHmMqJmsdVMQtunw3vRTu+wRIrtlAzdurNYX
oLYIpig8Kl1+CTPNlJDPYCdaSwVyHWvpjNE+nVfp85cfQCLLjKRmNTpj9394Pre9
T+vwaLD/aiFBykCU2i0xLqsQHux4/TeALBBi2bChRyNFthipFASKKcNXOKiwArc/
Opr3ed6TXPJduLnFv8U6zFMrVgHbcOPgtzD03hVWzPi2X4uoAPfIdcBez9aPd6x0
Zy7JKF7FDN8GiAh5LZ2OeyOMmAX+se7PYMdJRlrNCsSFZxLkLETSdenVdnEv6RfN
FYhXuyE5RH0IYwMfSdjPCJ6tDnHd6m+vQTGh29auKf7nXmRITiyMTsLkJchs46Pq
qA68dBesxXItVoGlmHxPZFnDNlQjFbv5wVQiLDHVYvrj34yP6ZkTC+9iUhwN0jt4
rBRJ4oK9dJVT4jQK+nTbGn5A3FRFv9DnfFv4OM2UCGEUjHLkE7H2q2CUh/34oc4o
UIf0/HM8FlQYEk5pjpjVbNAhsUuyJO/0ppD0BVjjh1LQ7E3IkVsI/4/4PkZusWss
7aW1oUr68OHICxVRKrijn27NhmpyEV/fhGmMATt6huI+E/7g8n3yvR+jygv5LD6L
Pqu0Yhgxv1qt8n6CAb9o
=CbbF
-----END PGP SIGNATURE-----
I’ve done that.That is what I’m trying to say,it doesn’t work.I’ve done this:
> chown -Rv root:root /var
ownership of `/var/spool/nagios' retained as root:root
ownership of `/var/spool/avmailgate/incoming' retained as root:root
ownership of `/var/spool/avmailgate/outgoing' retained as root:root
ownership of `/var/spool/avmailgate/rejected' retained as root:root
ownership of `/var/spool/avmailgate' retained as root:root
ownership of `/var/spool/atjobs/.SEQ' retained as root:root
..............(and all the /var directory with files and sufolders
and it doesn’t work
Make sure that the files are not “world writable”.
chmod o-w file
Legolas8911 wrote:
> Hi guys.I have a little problem.I have a server with OpenSUSE 11
> installed and yesterday I installed AWStats.I had to change some
> permissions to the /var directory,but I changed it for all the folders
> and files in /var directory.Now the ssh server doesn’t start.It gives me
> this error “Starting SSH daemon/var/lib/empty must be owned by root and
> not group or world-writable.
> .failed” Luckly i have webmin installed so I tried some Commands like
> chown -R root:root /var/lib/empty,chown root:root /var/lib/empty and
> even with chgrp with various combinations.Nothing seems to work.What to
> do because I can’t login in ssh and nx server.
As far as files in the openssh package are concerned, take a look at
rpm {–setperms|–setugids} PACKAGE_NAME
Kind regards,
Andreas Stieger
Thanks syampillai.Works like a charm