Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello
When I use "service iptables save", it always tells me "restorecon command not found"
And I type "/sbin/restorecon", it tells me the same too.
I'm using Centos 6.0 32bit
How can I do?
thx.
Is this happening with a fresh install? Or, this started happening after you made any changes? The reason I am asking because I am not able to find the link between restorecon and iptables.
Run the following command and paste the output:
1. service iptables save
2. tail /var/log/messages
3. ls -l /sbin/ | grep restore
Is this happening with a fresh install? Or, this started happening after you made any changes? The reason I am asking because I am not able to find the link between restorecon and iptables.
Run the following command and paste the output:
1. service iptables save
2. tail /var/log/messages
3. ls -l /sbin/ | grep restore
Thank you for your reply.
Maybe my install is not complete,so I copied one from another computer,
Now it works, thank you.
iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not found
[FAILED]
2. tail /var/log/messages:
Code:
Jan 13 22:56:40 server xinetd[1439]: Exiting...
Jan 13 22:56:41 server kernel: Kernel logging (proc) stopped.
Jan 13 22:56:41 server rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-pid="1413" x-info="http://www.rsyslog.com"] exiting on signal 15.
Jan 13 22:56:49 server kernel: imklog 4.6.2, log source = /proc/kmsg started.
Jan 13 22:56:49 server rsyslogd: [origin software="rsyslogd" swVersion="4.6.2" x-pid="1435" x-info="http://www.rsyslog.com"] (re)start
Jan 13 22:56:50 server xinetd[1461]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Jan 13 22:56:50 server xinetd[1461]: Started working: 0 available services
Jan 13 22:57:04 server saslauthd[1710]: detach_tty : master pid is: 1710
Jan 13 22:57:04 server saslauthd[1710]: ipc_init : listening on socket: /var/run/saslauthd/mux
Jan 14 03:36:02 server logrotate: ALERT exited abnormally with [1]
The reason you getting that error message because you are misisng the restorecon file. Here is the out that I get when I run ls -l /sbin | grep restore
restorecon is provided by policycoreutils package. You can try uninstalling and re-installing policycoreutils package and see if you get restorecon file under /sbin
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.