View Single Post
  #5  
Old 6th February 2006, 23:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by st2xo
If somebody else could use this info: the two rows on line 1083 should be changed from
Code:
exec("chown -R $apache_user:web$doc_id $web_path_realname &> /dev/null");
exec("chown -R $apache_user:web$doc_id $web_path &> /dev/null");
to
Code:
exec("chown -R wwwrun:web$doc_id $web_path_realname &> /dev/null");
exec("chown -R wwwrun:web$doc_id $web_path &> /dev/null");
sometimes wwwrun is www-data - check this out before! This is not tested!
$apache_user contains the Apache user - in your case wwwrun, so there's no need to change this.


Quote:
Originally Posted by st2xo
I added one user manually with useradd, this user has now the uid 10028 (this is the highest number in /etc/passwd but not the last entry).

Now, a web directory /www/web22 is being permanently changed to xyz.web22 (where xyz is the user with uid 10028). All other dirs in /www are untouched.

(the /www/web22 directory is the second last web, so the last is web23)
Do you know what this could be?
By default ISPConfig creates users with UIDs above 10000. When you add users manually, you should use UIDs below 10000. What happened on your system is this:
You created users with ISPConfig up to the UID 10027. Then you added a user manually; because you did not specify a certain UID, the user got the UID 10028.
Then you created the next user in ISPConfig. Because ISPConfig doesn't know that you created another user manually in the meantime, the new user gets the UID 10028. And voilà, you have two users with conflicting UIDs.
You should assign another UID (below 10000) to your manually created user.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote