Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th August 2010, 19:06
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Thumbs down /etc/shadow Mirror Server ?

Hi,
I have 2 servers in an ISPConfig Mirror, on the 2nd server the user isn't being created for the website (web35), although its being created on the primary server.

Any ideas why?

Web/FTP/Mail settings are transferring fine...


Thanks,

Marty

Last edited by Rapid2214; 21st August 2010 at 11:31.
Reply With Quote
Sponsored Links
  #2  
Old 21st August 2010, 11:32
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Bump

Marty
Reply With Quote
  #3  
Old 21st August 2010, 16:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

If you setup the system as mirror, then the shall user should be created on boths servers automatically. If thats not the case on your system, enable debugging for the slave server in ispconfig, create a new website and check if the shell user gets created or if there are any errors in the debug output.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 21st August 2010, 21:24
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Default

I thought that is what should happen, how do you enabled debugging?

Thanks

Marty
Reply With Quote
  #5  
Old 21st August 2010, 21:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

System > Server config > Server (name of the server) > Server > Loglevel
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 21st August 2010, 22:39
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Default

Ok, Debug shows it has added a user:
Code:
2010-08-21 20:34  	MOSS  	Debug  	Adding the user: web36
But these are the last lines in my /etc/shadow
Code:
web24:!:14819:0:99999:7:::
web25:!:14819:0:99999:7:::
web26:!:14819:0:99999:7:::
web27:!:14819:0:99999:7:::
web32:!:14821:0:99999:7:::
:S Help Please

Marty
Reply With Quote
  #7  
Old 22nd August 2010, 11:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

And you are sure that you enabled debugging for the slave and not the master? Then check the group and password files on the slave with the commands:

pwck

and

grpck

to ensure that they are not corrupted.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Rapid2214 (22nd August 2010)
  #8  
Old 22nd August 2010, 12:23
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Default

No, MOSS is the slave of ROY.

Code:
root@moss:~# pwck
user 'lp': directory '/var/spool/lpd' does not exist
user 'news': directory '/var/spool/news' does not exist
user 'uucp': directory '/var/spool/uucp' does not exist
user 'list': directory '/var/list' does not exist
user 'irc': directory '/var/run/ircd' does not exist
user 'gnats': directory '/var/lib/gnats' does not exist
user 'nobody': directory '/nonexistent' does not exist
user 'syslog': directory '/home/syslog' does not exist
user 'ntp': directory '/home/ntp' does not exist
user 'haproxy': directory '/home/haproxy' does not exist
pwck: no changes
root@moss:~# grpck
duplicate group entry
delete line 'sshusers:x:5002:'? y
'web24' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow
'web25' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow
'web26' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow
'web27' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow
'web32' is a member of the 'sshusers' group in /etc/group but not in /etc/gshadow
'www-data' is a member of the 'client8' group in /etc/group but not in /etc/gshadow
grpck: the files have been updated

Marty

Last edited by Rapid2214; 22nd August 2010 at 12:33.
Reply With Quote
  #9  
Old 22nd August 2010, 12:33
Rapid2214 Rapid2214 is offline
Senior Member
 
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Thumbs up

Ok,
It seems like after those commands, it all started working again,
Adding clients then websites work.
Adding websites for old clients work.

What do those commands do?

Thanks for your help,

Marty
Reply With Quote
  #10  
Old 22nd August 2010, 12:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

Quote:
What do those commands do?
They do a consistency check of the passwd, shadow and group files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
machine hacked ... albertux Installation/Configuration 42 9th June 2012 01:14
ISPconfig2, problem with pop authentication, /etc/shadow moiseev.igor General 6 26th May 2010 20:41
/etc/shadow and authentication problem on ispconfig + ubuntu moiseev.igor Developers' Forum 5 30th April 2010 12:28
Copiying /etc/shadow with sudo and rsync jnsc Technical 2 17th November 2009 20:42
How to create multiple chroot (jailed) users accounts in batch gregor_gede Suggest HOWTO 15 14th September 2006 07:42


All times are GMT +2. The time now is 02:07.


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