CentOS 5 Server :: Restorecon And /.autorelabel Have No Effect And Take No Time?
Aug 5, 2010
I restored a whole filesystem from a backup using rdiff-backup and made it bootable from a modified CentOS 5 CD ROM.All works well except all the files have SeLinux context ofroot:object_r:file_t:s0I tried rebooting with .autorelable and it seems to take no time and reboots immediately after starting. After, there is no change in the contexts of the files.I also tried fixfiles and restorecon with and without selinux enabled and in all cases it takes no time and returns no error code i.e. it does nothing. Nothing in the system log either.
I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:
Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/usr/share/pear:/usr/share/php) in System.php on line 459
I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything. I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.com
I have upgraded to 10.4 and and after try to install mac look in ubuntu.My screen start flickering, I found it this due to in system => preference => appearance => effect become no effect automatically (as each and every time I select extra effect)After some time.for changing this setting i need to turn off the computer and restart then after i can do it i.e. change effect to extra effect. Its done after following installation
I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.
I have recently upgraded from Ubuntu 9.10 to 10.04.In 9.10 i could change the visual settings no problem and it would save. However now that i have upgraded i can change the visual settings but everytime i reload the computer the settings change back to none
I have a very curious problem with 'restorecon'.Problem:'restorecon' should relabel the context of the path /maco/glass to system_u:object_r:glass_rw_t:s0, however, it relabels the context tosystem_u:object_r:user_home_dir_t:s0.
The commad that triggers the error:restorecon -F -R -v /maco/glass/Expected result:drwxr-xr-x. 2 system_u:object_r:glass_rw_t:s0 glass glass 4096 2009-07-24 11:32 glassActual result:drwxr-xr-x. 2 system_u:object_r:user_home_dir_t:s0 glass glass 4096 2009-07-24 11:32 glassBackground:I have created a
I have two boxes that were originally used as workstations at a school - they upgraded and sold these.The two boxes are identical parts - Lenovo NetVista M42. I installed 5.3, installed RPMforge per the wiki instructions, did a yum -y update && shutdown -h now.The next day I turned the machine on and installed the UT2004 dedicated server. After a few hours I tried logging in via SSH - I could enter my user and password, but could not get farther. I rebooted the server. After another day the same thing happened. I moved the disk from the first box to the second and moved /etc/sysconfig/network-scripts/ifcfg-eth0.bak to ifcfg-eth0 but retaining the correct MAC address.
During this transition where the server "locks up" some things work and others do not. For example, if I type ping 4.2.2.2, wait 10 minutes and CTRL+C it looks like this (note the time of 0ms).
I am installing CentOS 5.5 64 bit on a HP ProLiant server. The server has a configuration of 2 TB(500x4) HDD and 8 GB RAM. RAID 5 is enabled and mirroring is also going on. I made 7 partitions. Those are:
/boot - 200MB / - 80GB Swap - 20GB /usr - 100GB
[code]...
The problem i am facing is it takes too much time to format 100GB partitions while installing packages (during installation).
2 times now our server has randomly shut down. Completely powered off as if the power cable was pulled or something. Both around the same time. 7:30ish. Once was on Friday June 5th, then last night, Wednesday June 10th.
Here is the log from last nights crash/shutdown: Quote: Jun 10 19:23:18 mail avahi-daemon[2564]: Server startup complete. Host name is mail.local. Local service cookie is 1312323680. Jun 10 19:23:18 mail avahi-daemon[2564]: Service "SFTP File Transfer on mail" (/services/sftp-ssh.service) successfully established. Jun 10 19:23:21 mail smartd[2625]: smartd version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen .....
I'm running a CentOS 5.2 vm on a W2K8 hyper-v core server. The problem I have is that when I reboot, the system time always resets itself to 6:00 am in the morning. I tried the /sbin/hwclock --systohc command but it hasn't taken hold.
I have a CentOS 5.3 server. All of the other computers I have are Windows or Ubuntu. The Ubuntu machines sync to the time on the CentOS machine correctly. The problem is, some of the windows 2000 Pro and Windows XP Pro machines are an hour off when they sync. The CentOS machine is set to New York time.
When I run: (Assume the time is currently 10:06 AM on the server) net time \xxx.xxx.xxx.xxx /set /yes
On the correct machines I get the message:
Current time at \xxx.xxx.xxx.xxx is 11/1/2010 10:06 AM
The command completed successfully.
But on the other machines I get:
Current time at \xxx.xxx.xxx.xxx is 11/1/2010 9:06 AM
Local time (GTM-04:00) at \xxx.xxx.xxx.xxx is 11/1/2010 10:06 AM
The command completed successfully.
Then the time on the windows computer is 9:06 instead of 10:06.
Is there something that needs changed on the CentOS Machine for the times to be correct?
I am trying to sync the time on my Centos 5 box, but I do not want to sync the date. All of our servers need to have the clocks synced, but one system needs to have the date set to the previous day.
i got driver and when i install driver and reboot computer I got just terminal and when I type startx I get error FLGRX and sam log file or something like that.
instruction i found here but some comands didn't worked openSUSE Lizards
I enabled the compiz on centos . When i move the mouse cursor to the left top on the screen, all the windows will list on the desktop. I want to disable this effect without disabling the whole compizIt looks like the configuration file is ~/.gconf/apps/compiz/general/allscreens/options/%gconf.xml
I have this server that runs Tomcat . this server sends mail with localhost as MTAthe local MTA is sendmail (with the default settings) . from time to time i have this strange thing and the emails it sends never reach the destination. the log shows it left the server , but looking at the logi see that the time on the log is wrong . sometime its correct and ometines its +2 hours. i guess this email are bounced at the destinationfor sending at future time . all this email that didnt reach the destination have this in common
I have never had the packaged vsftpd start with the ssl_enable option set to YES. The mysql on those servers works just fine with SSL enabled. After reading there seems to be a different package available on rh5 repo. This server shows up to date with 2.0.5-12.el5_3.1. The rh5 list shows 2.0.5-16_el5 per this:[URL].. My question is, is there a set lead time till adoption of current RH packages or is just random? I have to have SSL_ftp running and didn't want to step out of the repo lists if possible.
I have written simple application in cpp which listens on port 8080. But when I start the application and check the port it is listening on (using netstat -nap), I can see that the application is listening on port which is > 30000.
This port number keeps on changing if I re-run the application.Please let us know if I have to do any kind of a seeting so that application starts listening on 8080 port.I am using CentOS 5.5 (I tried same on CentOs 5.2)
When I installed CentOS, I forgot to modify the settings of Network Time Protocol. I need to do the following: 1. Enable Network Time Protocol. 2. Add a new ntp server to the list. How I can do this after the installation. Is there an utility to handle this? or do I need to modify any files manually?
I am trying to configure CentOS 5.5 to run Desktop Effectbut Everytime I tried to enable it it gived me "Desktop Effect does not work with Xinerama"I searched everywhere there seems to be nothing about this perticulat issue.so i am hoping that it will get me somewhere here.I used to use ATI Radien X1500 but i have uninstall the fglrx and removed the device.And I am now using: "Intel Corporation 82946GZ/GL Integrated Graphics Controller"Here is my current Xorg.conf
# Xorg configuration created by system-config-display Section "ServerLayout" Identifier "single head configuration"
I am using KVM and created four guest Operating systems on it.The server host is Ubuntu 10.04.I am using 4 websites in a reverse proxy environment.One of our website is running on CentOS VM.Right now there is no traffic on the website static HTML pages.I do not have any clue as why it was taking longer time to be accessed.
We have a production web site running apache 2.2.3 across several web servers. we also have a major problem with SPAM comments right now. our method of identifying valid IPs (whether by external clients/customers, or internal personnel) vs SPAM'ers is not ideal - its prone to erroneously labeling legit IP's as targets to be blacklisted.
What we need is.. a way to see how much distinct request traffic is coming from any given IP address to the site in real time (or very near realtime). Essentially we want to see in some graphic/chart way requests per sec to apache / per ip sorted by requests per sec.Would nTop do this? I've only used this in a limited form at a branch office, not on a production web server.
I have installed centos 5.4 with samba 3.0.33-3.15. Now this server is PDC for a domain with 20 xp client. I want to set the "password must change" option in the samba user detail.Now I have this configurationmaximum password age = 68256000maximum password age = 0with pdbedit -Lv pippo
I have a CentOS5 server with a 1tb hard drive.There is only 80gb of data on that huge drive and now I want to make a bare metal recovery backup using AcronisMy question is, how can I estimate the amount of time the backup will take and the size of the image file? Is it based on the size of my drive or is it based on the amount of data on the drive?
I've setup vsftpd correctly and it's running fine with local users (in the same LAN). However, when remote users wanna login to the server, it takes more than 1 minute to get in. Users do can login from remote. It just took too long. (It prompted for the username and password very fast.) Since the server is behind a router, I did configure the port forwarding for TCP 20-21. The centos version is 5.3. The vsftpd is v2.0.5.
dmesg | grep -i time ACPI: PM-Timer IO Port: 0x408 Calibrating delay using timer specific routine.. 4658.19 BogoMIPS (lpj=2329098) Using local APIC timer interrupts.
In the right upper corner of your screen,you can see if you have a network connection or not.Most of the time I do not have one according to Networkmanager (?).So I have to enable my wired connection manually.I already tried a lot to change my settings so I would have a network connection at boot,but it doesn't seem to work....Firefox is in Offline modus when I logon..