Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 22nd November 2011, 20:20
nbhadauria nbhadauria is offline
Member
 
Join Date: Aug 2010
Location: New Delhi, India
Posts: 79
Thanks: 1
Thanked 13 Times in 13 Posts
Send a message via Skype™ to nbhadauria
Default

so now you are adding account on first server then rsync /var/vmail and then trying to login on other server ???


also can you post output of ..

tail /etc/passwd

from both server i just want to check if uid of vmail matches on both server..
Reply With Quote
Sponsored Links
  #12  
Old 22nd November 2011, 20:52
SwOsHiE SwOsHiE is offline
HowtoForge Supporter
 
Join Date: Jun 2011
Location: Stockholm, Sweden
Posts: 82
Thanks: 8
Thanked 8 Times in 7 Posts
Send a message via Skype™ to SwOsHiE
Default

I've only configured rsync ONE-WAY to the mirror, in other words, the mirror is only checking the first servers folders, I tried to login on both servers after the problem accured, same thing on both servers. Now when I've restored the permission problem, the first server works again, have not tried the mirror yet.

Server 1 /etc/passwd:

wwwsync:x:5006:5006::/home/wwwsync:/bin/bash
web5:x:5007:5007::/var/www/clients/client3/web5:/bin/false
web7:x:5008:5005::/var/www/clients/client1/web7:/bin/false
web9:x:5009:5005::/var/www/clients/client1/web9:/bin/false
web13:x:5010:5009::/var/www/clients/client7/web13:/bin/false
web15:x:5011:5009::/var/www/clients/client7/web15:/bin/false
web17:x:5012:5009::/var/www/clients/client7/web17:/bin/false
web19:x:5013:5010::/var/www/clients/client9/web19:/bin/false
web21:x:5014:5010::/var/www/clients/client9/web21:/bin/false
web23:x:5015:5011::/var/www/clients/client13/web23:/bin/false

Server 2 /etc/passwd:

web3:x:5005:5005::/var/www/clients/client1/web3:/bin/false
web5:x:5006:5006::/var/www/clients/client3/web5:/bin/false
web7:x:5007:5005::/var/www/clients/client1/web7:/bin/false
web9:x:5008:5005::/var/www/clients/client1/web9:/bin/false
web13:x:5009:5008::/var/www/clients/client7/web13:/bin/false
web15:x:5010:5008::/var/www/clients/client7/web15:/bin/false
web17:x:5011:5008::/var/www/clients/client7/web17:/bin/false
web19:x:5012:5009::/var/www/clients/client9/web19:/bin/false
web21:x:5013:5009::/var/www/clients/client9/web21:/bin/false
web23:x:5014:5010::/var/www/clients/client13/web23:/bin/false

I guess you wanted to see the output for the mailsync user, this I removed sorry to say. I do not want to try rsync again until I know exactly how to implement it without destroying something

Advice on both restoring the permission on the folders and also make the new created folders work with right permissions?

Also, how would you do the rsync setup for /var/vmail/?

All help is very much appreciated!

Best regards,
Mattias
Reply With Quote
  #13  
Old 22nd November 2011, 21:08
SwOsHiE SwOsHiE is offline
HowtoForge Supporter
 
Join Date: Jun 2011
Location: Stockholm, Sweden
Posts: 82
Thanks: 8
Thanked 8 Times in 7 Posts
Send a message via Skype™ to SwOsHiE
Default

Just found a error log message from ISPC Cron log:

groupdel: cannot remove the primary group of user 'web11'
mkdir: cannot create directory "/var/vmail/domain.com": Access denied
mkdir: cannot create directory "/var/vmail/......

show for all of my domains in /var/vmail/.
Reply With Quote
  #14  
Old 22nd November 2011, 23:11
nbhadauria nbhadauria is offline
Member
 
Join Date: Aug 2010
Location: New Delhi, India
Posts: 79
Thanks: 1
Thanked 13 Times in 13 Posts
Send a message via Skype™ to nbhadauria
Default

I can tell you this that is you want to use same directory permission on both the servers you need to make sure that all your /etc/passwd records matches..


Ex.

web5:x:5007:5007::/var/www/clients/client3/web5:/bin/false

web5:x:5006:5006::/var/www/clients/client3/web5:/bin/false

now if you try to access the same folder on other server there permission will not match because of different uid,gid .

so make sure you use same uid and gid for all the users (spaciously vmail user)..
Reply With Quote
  #15  
Old 23rd November 2011, 13:05
SwOsHiE SwOsHiE is offline
HowtoForge Supporter
 
Join Date: Jun 2011
Location: Stockholm, Sweden
Posts: 82
Thanks: 8
Thanked 8 Times in 7 Posts
Send a message via Skype™ to SwOsHiE
 
Default

Thank you for your reply!

Is there a way to include permissions of folders in the rsync setup? If it does, what is the best way to do it?

I still have the permission problem for new created mail accounts, any toughts?

Best regards,
Mattias
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disappearing emails ispconfig 2 / postfix DrJohn General 2 14th May 2010 17:21
mirroring with rsync (mulitple servers) edpatterson HOWTO-Related Questions 14 15th April 2009 18:16
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17


All times are GMT +2. The time now is 12:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.