Server Permissions Problem

AdamDM

Verified User
Joined
Jun 20, 2005
Messages
11
While trying to fix permissions on an account, I acidently executed a command that messed up all of the permissions on the server

I executed:

chown -R nerdcou:nobody /

Obviously..this was not a smart thing to do from root.

Is there anyway I can reverse this, or reset permissions?
 
Not that I know of. You will need to repair all the damage done by hand.
With a little perl script it wouldnt' be to hard with the users directories since their permissions are the name as the directory and it's just a matter of changing the public_html directories to apache ownership etc.

Reinstalling services that are on that partition (/) might recreate all files with the correct permissions (only for that service though).
 
Adam,

You don't say what OS you use, but it's unlikely you'll be able to do this any reasonable way other than reinstall the server.

If you have another server set up the same way and you don't mind going through each directory to check ownerships and running chown manually a lot of times I suppose it's doable, but I can't see it as being reasonably doable.

Jeff
 
Ah yes, I remember the early years when I first started using linux.
Once had to reinstall after issuing the infamous rm -rf you know what command.
 
Adam, the only way I can think of for you to fix everthing would be by building a new server using Fedora Core 3, and then manually making all the changes.

I'd say starting over will be a lot easier.

Jeff
 
yes lol you already said that, thats probbaly what I will do...Thanks.
 
Okay, my host was willing to assit me in correcting all of the permission errors. So we got most everything done.

Exim is being a major pain.

From outlook, I recive the error

Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: '[email protected]', Server: 'mail.northcentralonline.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10053, Error Number: 0x800CCC0F

I started looking on DA for things about Exim, I kept reciving a hitch error, I did the Fix in he DA Knowledge base but it doesn't seem to have worked.

Here's the output of mail log
Code:
[root@server virtual]# tail /var/log/exim/mainlog
2005-06-24 11:06:32 1DlqRG-0001Wj-OW == [email][email protected][/email] <[email protected]> R=localuser T=local_delivery defer (-6): mailbox /var/mail/admin has wrong uid (0 != 500)
2005-06-24 11:10:57 exim 4.51 daemon started: pid=6579, -q15m, listening for SMTP on port 25 (IPv4)
2005-06-24 11:11:27 1DlseF-0001ia-QI <= [email][email protected][/email] U=apache P=local S=1086 [email protected] T="Your login details for Random Data" from <[email protected]> for [email][email protected][/email]
2005-06-24 11:14:36 1DlseF-0001ia-QI mx4.hotmail.com [65.54.167.230]: Connection timed out
2005-06-24 11:14:37 1DlseF-0001ia-QI => [email][email protected][/email] F=<[email protected]> R=lookuphost T=remote_smtp S=1119 H=mx4.hotmail.com [65.54.190.230] C="250  <[email protected]> Queued mail for delivery"
2005-06-24 11:14:37 1DlseF-0001ia-QI Completed
2005-06-24 11:15:02 1Dlshh-0001j1-Vp <= [email][email protected][/email] U=apache P=local S=773 [email protected] T="Your new password for Random Data" from <[email protected]> for [email][email protected][/email]
2005-06-24 11:15:02 1Dlshh-0001j1-Vp => [email][email protected][/email] F=<[email protected]> R=lookuphost T=remote_smtp S=801 H=mx1.hotmail.com [64.4.50.99] C="250  <[email protected]> Queued mail for delivery"
2005-06-24 11:15:02 1Dlshh-0001j1-Vp Completed
2005-06-24 11:25:57 1DlqRG-0001Wj-OW == [email][email protected][/email] <[email protected]> R=localuser T=local_delivery defer (-6): mailbox /var/mail/admin has wrong uid (0 != 500)

And the output of rejectlog

Code:
[root@server virtual]#  tail -f /var/log/exim/rejectlog
2005-06-23 17:38:12 H=members.mywinnersdaily.com (10.1.1.163) [216.150.143.163] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-23 19:55:16 H=host213-122-183-236.in-addr.btopenworld.com [213.122.183.236] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-23 19:55:35 H=c-67-162-150-236.hsd1.co.comcast.net [67.162.150.236] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-23 22:32:11 H=members.mywinnersdaily.com (10.1.1.163) [216.150.143.163] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-23 23:46:35 SMTP protocol violation: synchronization error (input sent without waiting for greeting): rejected connection from H=ultimateoptionstrategies.net [209.216.241.66] input="\377\364\377\375\006\004"
2005-06-24 02:39:17 H=(host210.easymanaged.com) [65.75.166.210] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-24 02:59:51 H=smtp.myhealthwealthandhappiness.com (w13527.hostcentric.net) [216.65.62.83] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-24 03:20:30 H=59-104-101-157.adsl.dynamic.seed.net.tw (none) [59.104.101.157] F=<[email protected]> rejected RCPT <[email protected]>: authentication required
2005-06-24 03:28:08 H=support.myemailsupport.com [216.150.143.29] F=<[email protected]> rejected RCPT <[email protected]>:
2005-06-24 10:40:26 H=support.myemailsupport.com [216.150.143.29] F=<[email protected]> rejected RCPT <[email protected]>:

And the output of paniclog

Code:
[root@server exim]# tail paniclog
2005-06-24 07:51:14 1DkFtk-0007Eu-T7 failed to unlink /var/spool/exim/msglog//1DkFtk-0007Eu-T7
2005-06-24 07:51:14 1DjgI7-00067n-Ig failed to unlink /var/spool/exim/msglog//1DjgI7-00067n-Ig
2005-06-24 08:03:30 1DjgI7-00067n-Ig failed to unlink /var/spool/exim/msglog//1DjgI7-00067n-Ig
2005-06-24 08:03:31 1DlpiN-0001J9-04 Failed to create spool file /var/spool/exim/input//1DlpiN-0001J9-04-D: Permission denied
2005-06-24 08:03:31 1DkFtk-0007Eu-T7 failed to unlink /var/spool/exim/msglog//1DkFtk-0007Eu-T7
2005-06-24 08:03:31 1DkFtj-0007EB-VB failed to unlink /var/spool/exim/msglog//1DkFtj-0007EB-VB
2005-06-24 08:03:31 1DkFt5-0007AG-AC failed to unlink /var/spool/exim/msglog//1DkFt5-0007AG-AC
2005-06-24 08:03:31 1DlpiN-0001JN-CN Failed to create spool file /var/spool/exim/input//1DlpiN-0001JN-CN-D: Permission denied
2005-06-24 08:03:31 1DlBNz-0005So-I3 failed to unlink /var/spool/exim/input//1DlBNz-0005So-I3-J: Permission denied
2005-06-24 08:06:02 1Dlpko-0001K5-Hn Failed to create spool file /var/spool/exim/input//1Dlpko-0001K5-Hn-D: Permission denied

Might as wel throw in the output of /var/log/messages as well.

Code:
Jun 24 08:16:48 server xinetd[5576]: Started working: 1 available service
Jun 24 08:23:35 server da-popb4smtp: da-popb4smtp shutdown succeeded
Jun 24 08:23:35 server da-popb4smtp: da-popb4smtp startup succeeded
Jun 24 09:09:33 server named[6139]: lame server resolving 'www.ybaby.info' (in 'ybaby.INFO'?): 209.216.241.178#53
Jun 24 10:20:39 server sshd[6163]: Accepted password for root from ::ffff:68.13.220.56 port 33325 ssh2
Jun 24 10:29:20 server proftpd[6280]: northcentralonline.com (222.33.90.199[222.33.90.199]) - FTP session opened.
Jun 24 10:29:20 server proftpd[6280]: northcentralonline.com (222.33.90.199[222.33.90.199]) - FTP session closed.
Jun 24 10:48:06 server vm-pop3d: vm-pop3d startup succeeded
Jun 24 10:52:50 server vm-pop3d: vm-pop3d shutdown succeeded
Jun 24 10:52:50 server vm-pop3d: vm-pop3d startup succeeded


I kept getting; Unable to use <username> mailbox; Error code=13

That seemed to be a hitch error. While I no longer recive that error, messages still aren't being processed.

Outlook does the recive process fine, but the server doesn't seem to be processing e-mails, so it never "recives" them.

I tried sending an email from my gmail.com account to my admin email account, and it didn't worl

I also tried the otherway around, and it didn't work [from squirrel mail]

It seems that the SMTP is part of the problem

Obviously...it's a permission problem

I dont' have that many accounts on here...Is there anyway to just rip all the exim [email system] out, and start anew?

I tried re-installing exim, but that didn't fix anything.

Anyhelp would be greatly appretiated.

I tried just about every permission related fix for exim on this board btw :)
 
Just reinstall, that should be much easier ;)

It is a permissions problem. If you look at your panic log, notice how it doesn't have sufficient permissions to create and delete files for example.
 
jmstacey said:
Just reinstall, that should be much easier ;)

It is a permissions problem. If you look at your panic log, notice how it doesn't have sufficient permissions to create and delete files for example.

Reinstall Exim?

or Reinstall the server?

I tried to reinstall exim, it didn't fix anything =\
 
Well I'm afraid I'm at the mercy of my host on that end. My host decided they would atempt to fix the permissions, and did a good job on everything except exim and mysql. I got mysql fixed, and now I am hoping to fix exim as well :)

Edit: After consulting my host, they have decided to re-install the server for me.

Let this be a constant reminder of anyone who stays awake from 72 hours straight, mistakes happen lol.
 
Last edited:
Tell me this

Tell me this

Go into Exchange System manager and right-click on Mailbox Store(Servername) choose properties, security tab and then advanced. Allowed inheritable from parent...

Is that checked or unchecked?
 
What has this thread (or in fact anything on this forum) have to do with Exchange?

Exchange is a Microsoft product that runs on Windows. Our servers run on Linux.

Jeff
 
Back
Top