I Broke Permissions Everywhere And The System Won't Boot
Jun 22, 2008
I backed a system up with rsync, and just used rsync to copy it into a new machine... I just backed up / to my home directory on another machine, and then 'extracted' it to / on the new machine.
But now everything (and I mean everything) is owned by "matt", my user on the intermediate machine. I rebooted the system to get it to boot the new stuff without realizing this, and now it's not booting... Since /etc/passwd, /bin/bash, etc. aren't owned by root.
Any tips on where to go from here? As I said, it's a brand-new machine (VM, actually: even better!), so re-imaging is a solution, but I'd still have to copy the data back over. Reinstalling is a pain, though, so if there's a simple fix, I'd prefer that. I've got pygrub installed as a boot manager for the VM, but I can't for the life of me figure out how to get into single-user mode. (Nor am I sure that a "cd /; chown -R root" will have the desired effect?)
I have a dedicated server and till few days back i was able to edit my files fine but this morning when i am trying to edit any file, it gives me back this error:
[user@domainname theme]$ chmod 777 header.php chmod: changing permissions of `header.php': Read-only file system [user@domainname theme]$
[root@domainname theme]$ chmod 777 directoryy chmod: changing permissions of `directoryy': Read-only file system [root@domainname theme]$
I tried both as normal user and root and same results. Do you think the hosting guys changed the permissions of the file system or something?
I have just used rsync to backup a dedicated server to a new cloud server. I put the files in a plesk webspace 'Backup' folder for ease of use (gui). In File Manager for that webspace it shows the folder user and group as root, which is obviously correct as rsync maintains users etc?
Thats fine, I just wanted to be able to back them up along with the rest of the server configuration and content.
However, when I run backup it says "For security reasons, backing up is performed on behalf of subscription's system user. This system user has no read access to:" and "So it was not backed up. All other data was backed up successfully. To fix this issue you may grant access read/write to the file or directory for system user "(username)" or "apache"."
I don't know how to give read/write access to the system user? Through file manager there is no option to change permissions.
I logged into my email to check for my nightly logwatch report (at 12am). Nothing.
So I log into ssh and manually run it, get greeted with this:
You have old files in your logwatch tmpdir (/var/cache/logwatch): logwatch.zcTV3hC0 The directories listed above were most likely created by a logwatch run that failed to complete successfully. If so, you may delete these directories.
I last ran logwatch around 10:30pm, it worked fine.
I try to run logwatch again, same error.. except now there's another temp file showing beneath the first.
I go ahead and delete both of them, run logwatch again...it worked. I also got the other reports from when I tried running logwatch manually and was stopped with this error.
I've never had this happen before, so I'm curious as to what caused it? Logwatch is in cron.daily and has never missed a single report.
Just typical data corruption (as can happen with any computer file) or could something have interfered with its processing at 12?
I ran Hijack this and fixed a few errors it listed in a Windows 2003 Server. I rebooted the server, but now when I attempt to login via remote desktop it logs in, but then immediately logs me out.
I am guessing HiJackThis deleted a required dll or .exe needed for Terminal Services. Do you guys have any idea how I can restore this, and undo what hijackthis did?
I just ran a simple yum update php on the server, because I need to be running 5.2 instead of 5.1.6
The update went smoothly, so I restarted httpd, and all hell broke loose. Apache can't start because of a whole lot of missing modules. So I commented out every single LoadModule line to see if that would get it to start, and it started complaining about the configuration file of some other software being incorrect (because that configuration file pointed to some module that no longer exists)
At one point I was able to get apache to start, I believe by copying my old configuration file to httpd.conf and then commenting out some lines that it was complaining about. Apache started, but no pages were loading.
So right now, basically, I've got no web service running at all on the server. I really didn't expect all of these problems for a simple PHP update, but obviously I was mistaken.
Is it worth trying to fix this myself (intermediate linux user here) or would it just be easier to hire someone to come in and do it for me?
According to de Plesk Administrator Guide and according to the kb article: [URL] ...., Plesk Panel is suitable to enable multiple php versions After I performed the steps mentioned in the kb article, all seemed fine until somehow php-cgi and php-fcgi broke down after
Code: # service httpd restart
After this event, all websites hosted on this particular the server only work running php as an apache module.
I am running Pleks Panel 12.0.18 #7 on top of CenOs 6.5 on this particular server, which means php version 5.3.3 is installed by default. PHP 5.3.3 also is was the php version for the "custom: false" php handlers (id's: cgi, fastcgi, module). Somehow all php handlers look like this:
servage.net is Broke down?... NO Dummy! They just changed their business to be SCAM
I am writing this to just let other friends here to be aware of this scam, they used to be host providers and now they've just become SCAM.
So my experience story goes like this:
Some days ago I ordered a 6month plan and paid by VCC, And got an email from them saying that my order is declined due to VCC not charged so I checked the balance of VCC and just knew that my poor little VCC is charged 45$ by this Green Giant named servage, So I let them know asap, I emailed back and told them to re-check and now it is days (5 days actually) that I am sending daily mails to Mr.Servage Scam and All I've gotten to now is nothing (actualy they don't respond anymore) wish they be alive at least (is it war or something running in their country? )
I really got disappointed at them I thought that since they have been in business for some time they can be reliable (at least at selling), However I just wrote back in here to let others know that servage.net is actually broke down or at least changed his hosting business to become a fast reliable scam (perhaps more profitable, who knows?)
All I wanted was a simple sweat hosting plan for my friend.
BTW If any of servage.net staff is here: Hey man that's not necessary to do illegal actions! Let's face it you need money? right? OK just put a donation button in the homepage and take my word on this always some good people exist out there to donate some bucks to you ( I will donate you too ), just don't be like this, this is shame.
I'm thinking over filling a dispute against them right now. Who know perhaps some days they respond back (At least I can re-check my email every day till next 50 years)
when I try to go to a site of mine with the www like this one [url] It won't work but if I take out the www like this[url]it does work.
I'm not sure what could be causing this. As far as I'm aware everything is setup okay. I understand it's impossible for anyone who reads this to properly diagnose the issue without access to my server.
I've got the latest grsec stable, but i'm having a problem with getting ip_conntrack working.
I did the following with make menuconfig after copying my default kernels config file...
Networking -> Networking support -> Networking options -> Network packet filtering framework (Netfilter) -> Core Netfilter -> Configuration -> Netfilter Xtables support (required for ip_tables) -> "conntrack" connection tracking match support.
After a compile and reboot:
error: "net.ipv4.netfilter.ip_conntrack_generic_timeout" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_icmp_timeout" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_close" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_last_ack" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_close_wait" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_fin_wait" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_established" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_syn_recv" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_tcp_timeout_syn_sent" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_udp_timeout" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_udp_timeout_stream" is an unknown key error: "net.ipv4.netfilter.ip_conntrack_max" is an unknown key error: "net.ipv4.ip_conntrack_max" is an unknown key
I did a ls on /lib/modules/2.6.27.10-grsec/kernel/net/ipv4/netfilter and dont see the modules that i see in the default kernels...
I'm having issues after changing my system time and rebooting for whatever reason it didn't take effect but now my VMWare servers wont boot. I get this error when trying to run a vmware-cmd
[root@plexus ~]# /usr/bin/vmware-cmd -l /usr/bin/vmware-cmd: Could not connect to vmware-authd (VMControl error -14: Unexpected response from vmware-authd: 511 Error connecting to /usr/sbin/vmware-serverd process.) [root@plexus ~]#
also when i try logging into the web interface same error.
I've got a small box running as a fileserver with CentOS 5. Sometimes life is a little easier using a GUI for jobs rather than SSH.
As this is not accessible externally, I've got it to autologin to a non-privilaged user, and as part of that logon a VNC session is opened using the inbuilt remote desktop tool.
This was working perfectly, until I realised if I cold boot the server without a monitor attached, X11 wont start at all unless I attach a monitor to it.
I know I can start a VNC session from using vncserver, but this way allows me to logon to the server as if I was sat infront of it, rather than running an extra session.
Presumabley I can add something into /etc/X11/xorg.conf so X11 will start without a monitor hooked up?
I keep trying to restart Apache but it wont restart... I run a command line to restart it, but nothing happens. Here is what I have tried:
Quote:
-bash-3.1# chroot /home/fatehost.net/runtime_layeredpanel/ fatehost:/# /etc/ bash: /etc/: is a directory fatehost:/# /etc/init.d bash: /etc/init.d: is a directory fatehost:/# /etc/init.d/httpd-users Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload fatehost:/# /etc/init.d/httpd-users start Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80 no listening sockets available, shutting down Unable to open logs fatehost:/# /etc/init.d/httpd-users restart Forcing reload of web server: Apache2httpd (pid 5955) already running . fatehost:/# /etc/init.d/httpd-users force-reload Forcing reload of web server: Apache2. fatehost:/# /etc/init.d/httpd force-reload Forcing reload of web server: Apache2. fatehost:/# /etc/init.d/httpd-users restart Forcing reload of web server: Apache2httpd (pid 13475) already running . fatehost:/# fatehost:/# /etc/init.d/httpd-users start Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80 no listening sockets available, shutting down Unable to open logs fatehost:/# /etc/init.d/httpd-users stop Stopping web server: Apache2. fatehost:/# fatehost:/# /etc/init.d/httpd-users start Starting web server: Apache2(98)Address already in use: make_sock: could not bind to address 205.209.135.132:80 no listening sockets available, shutting down Unable to open logs fatehost:/# fatehost:/# sudo /etc/init.d/httpd-users stop bash: sudo: command not found fatehost:/# su root /etc/init.d/httpd-users restart Forcing reload of web server: Apache2httpd (pid 20391) already running . fatehost:/# /etc/init.d/httpd-users reboot Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload fatehost:/# reboot WARNING: could not determine runlevel - doing soft reboot (it's better to use shutdown instead of reboot from the command line) shutdown: timeout opening/writing control channel /dev/initctl init: timeout opening/writing control channel /dev/initctl fatehost:/# WARNING: could not determine runlevel - doing soft reboot bash: WARNING:: command not found fatehost:/# (it's better to use shutdown instead of reboot from the command line) > shutdown: timeout opening/writing control channel /dev/initctl > init: timeout opening/writing control channel /dev/initctl > fatehost:/# /home/fatehost.net/runtime_layeredpanel bash: /home/fatehost.net/runtime_layeredpanel: No such file or directory fatehost:/#
I'm running Plesk 8.4.0 and for whatever reason apparently IonCube didn't come pre installed or wasn't working so I tried installing it which is just getting the .so files and adding it to the php.ini that didn't work so I tried Zend the installer said it was complete but again no go. So I have this for an error
I have this problem today after a fresh install...
I think its maybe i havent dont it proper im not sure..
But a client joined today and i have new account created auto after payment and well it says in the whmcs the user has an login and password but when i tried to login with it it said login failed
Also it trys to login to whm not cpanel with the account, even tho its set up as shared hosting in products...
the login link is : [url]( i removed name for security)
So this is a new problem for me, and I have no idea what could be broken?
My server works, but none of the sites load.
Server ip is 69.162.121.170, one of the sites is bloghost.cl
Where should I start looking? When you try to visit the site it just tells you it cant establish a connection. All I did was restart the server today, and now nothing works
We know the problem with geekstorage that their vps nodes are oversold.
i asked for a refund for the months i havent use yet, and they wont refund me, they just say that i will get credit, but i think it is not fair he can not hold my money for a service that has not been provided yet, im not asking for a full refund, just for the months i prepaid
i have 268 dollars in favor, i offer a deal to jay to just refund me 218 dollars instead of 268, and now he is not responding my tickets i have been waiting more than 24 hours to get a response
One of my customers has been having a problem with his index files not showing up. It'll display the parent directory, and you can clearly see the index.html file in there, but it won't show it as the index.
It happened in one directory, and I went into .htaccess and did DirectoryIndex index.php.... but now i'm wondering if its part of a bigger problem, because its happening to other folders now.
I built a web hosting server, the following is its state
Cent os 5 AMP server loaded updated (installed it as a complete suite during installation so it was all set to go with php mysql modules loaded) webmin usermin virtualmin
created 2 named based hosts.
now when i load up wordpress in a site and try to run install.php
the following pops up
"Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."
I had this issue before and research said to redo the entire server (tried everything and was fed up had fedora then"
you can have a look at www.itgrunts.com just click create config file and the errror pops up.
The php and mysql db work great on simple scripts but i dont know why this happens.
i worked with assigning the users and apache user to the directory and everything, no joy.
An automatic backup in plesk has filled up the disk space in my VPS. It seemed to crash first of all - couldn't access my website, then i tried to restart it. It wont restart and comes up with the error below.
As i can't get into plesk i don't know how to delete these old backup files, seem to be in a catch 22. Help
Jul 17, 2008 01:05:33 PM Start Process Completed Jul 17, 2008 01:05:33 PM Click here to open/close operation details.Start VPS #48606643 Failed Jul 17, 2008 01:05:33 PM Operation start with the VPS(s) VEID48606643 is started. Jul 17, 2008 01:05:33 PM Starting VE ... Jul 17, 2008 01:05:33 PM vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] Jul 17, 2008 01:05:33 PM VE is mounted Jul 17, 2008 01:05:33 PM Setting devperms 20002 dev 0x7f00 Jul 17, 2008 01:05:33 PM Setting devperms 20007 dev 0xac8 Jul 17, 2008 01:05:33 PM Adding port redirection to VE(1): 4643 8443 Jul 17, 2008 01:05:33 PM Adding IP address(es): 212.227.251.151 Jul 17, 2008 01:05:34 PM ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0 Jul 17, 2008 01:05:34 PM bash: line 264: echo: write error: Disk quota exceeded Jul 17, 2008 01:05:35 PM vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] Jul 17, 2008 01:05:35 PM VE is unmounted Jul 17, 2008 01:05:35 PM VE start failed Jul 17, 2008 01:05:35 PM Operation start with the VPS(s) VEID48606643 is finished with errors: #1004 Error invoking vzctl utility: Starting VE ... vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] VE is mounted Setting devperms 20002 dev 0x7f00 Setting devperms 20007 dev 0xac8 Adding port redirection to VE(1): 4643 8443 Adding IP address(es): 212.227.251.151 ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0 bash: line 264: echo: write error: Disk quota exceeded vzquota : (warning) block_soft_limit [10000100] < block_current_usage [10099244] VE is unmounted VE start failed . Failed Jul 17, 2008 01:05:35 PM Complete Process Failed
I've supposedly set APF firewall to start at boot time, by doing something like:
chkconfig --levels 2345 apf on
However i have my reservations to weather it is actually starting, its set to block port 80, after boot if i try and access it, the connection will get refused straight away, however if i go and manually start APF then try and access again, it will take a while, like its ignoring the connection attempt (which is good).