Current time: 11-22-2024, 09:27 PM Hello There, Guest! (LoginRegister)


Post Reply 
FreeBSD ?
Author Message
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #43
RE: FreeBSD ?
Hi,

I'm testing arround and there are still problems won't be solved....
I changed ispcp.conf like this:
Code:
CMD_GROUPADD = /usr/sbin/pw groupadd
CMD_GROUPDEL = /usr/sbin/pw groupdel
CMD_USERADD = /usr/sbin/pw useradd
CMD_USERDEL = /usr/sbin/pw userdel

and ispcp-setup like this:
Code:
if (scalar(@udata) == 0) { # we have not this one user data;
                my $cmd = "$main::cfg{'CMD_USERADD'} vmail-user -s /bin/false $fuid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

                @udata = getpwnam($fuid);
        }
         if (scalar(@gdata) == 0) { # we do not have this group
                my $cmd = "$main::cfg{'CMD_GROUPADD'} v-group -g $mgid $prefix$mgid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

        }

        if (scalar(@udata) == 0) { # we do not have this user
                my $cmd = "$main::cfg{'CMD_USERADD'} vu-master -d  $main::cfg{'PHP_STARTER_DIR'}/master -m -s /bin/false -u $muid $prefix$muid";
                $rs = sys_command($cmd);

                return $rs if ($rs != 0);

        }


I'm sure that there are mistakes of mine but it works so far until the point the script expect the group 'root' which don't exist, if I create it next is the missing user 'vu2000'
seems like script problem here....


edit: the current ispcp-setup configuration doesn't work too, it's an user expected from 'pw' but the syntax at the moment is this:

'/usr/sbin/pw useradd -c vmail-user -g 6 -s /bin/false vmail'

there should be the username in front of ' -c'
(This post was last modified: 03-03-2008 09:06 PM by StevenE.)
03-03-2008 08:00 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
FreeBSD ? - jensen - 02-12-2008, 11:46 AM
RE: FreeBSD ? - gOOvER - 02-12-2008, 04:07 PM
RE: FreeBSD ? - BeNe - 02-12-2008, 06:23 PM
RE: FreeBSD ? - gOOvER - 02-13-2008, 09:19 PM
RE: FreeBSD ? - jensen - 02-13-2008, 10:28 PM
RE: FreeBSD ? - gOOvER - 02-13-2008, 10:43 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 02:19 AM
RE: FreeBSD ? - gOOvER - 02-27-2008, 02:46 AM
RE: FreeBSD ? - gOOvER - 02-27-2008, 02:27 AM
RE: FreeBSD ? - StevenE - 02-27-2008, 02:33 AM
RE: FreeBSD ? - joximu - 02-27-2008, 02:49 AM
RE: FreeBSD ? - StevenE - 02-27-2008, 02:52 AM
RE: FreeBSD ? - gOOvER - 02-27-2008, 02:57 AM
RE: FreeBSD ? - StevenE - 02-27-2008, 03:10 AM
RE: FreeBSD ? - blocker - 02-27-2008, 05:14 PM
RE: FreeBSD ? - joximu - 02-27-2008, 03:26 AM
RE: FreeBSD ? - Zothos - 02-27-2008, 07:04 PM
RE: FreeBSD ? - joximu - 02-27-2008, 08:08 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 08:20 PM
RE: FreeBSD ? - joximu - 02-27-2008, 08:24 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 09:07 PM
RE: FreeBSD ? - joximu - 02-27-2008, 09:18 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 09:42 PM
RE: FreeBSD ? - joximu - 02-27-2008, 09:53 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 10:19 PM
RE: FreeBSD ? - joximu - 02-27-2008, 10:55 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 11:10 PM
RE: FreeBSD ? - joximu - 02-27-2008, 11:17 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 11:21 PM
RE: FreeBSD ? - joximu - 02-27-2008, 11:31 PM
RE: FreeBSD ? - StevenE - 02-27-2008, 11:33 PM
RE: FreeBSD ? - joximu - 02-28-2008, 12:28 AM
RE: FreeBSD ? - StevenE - 02-28-2008, 07:00 PM
RE: FreeBSD ? - gOOvER - 02-28-2008, 07:06 PM
RE: FreeBSD ? - StevenE - 02-28-2008, 09:34 PM
RE: FreeBSD ? - blocker - 02-29-2008, 12:24 PM
RE: FreeBSD ? - StevenE - 02-29-2008, 05:47 PM
RE: FreeBSD ? - RatS - 02-29-2008, 06:59 PM
RE: FreeBSD ? - StevenE - 03-01-2008, 01:24 AM
RE: FreeBSD ? - blocker - 03-01-2008, 11:18 AM
RE: FreeBSD ? - StevenE - 03-03-2008, 01:26 AM
RE: FreeBSD ? - blocker - 03-03-2008, 03:18 PM
RE: FreeBSD ? - StevenE - 03-03-2008 08:00 PM
RE: FreeBSD ? - blocker - 03-04-2008, 05:58 PM
RE: FreeBSD ? - StevenE - 03-06-2008, 01:57 AM
RE: FreeBSD ? - BeNe - 03-06-2008, 02:14 AM
RE: FreeBSD ? - StevenE - 03-06-2008, 02:24 AM
RE: FreeBSD ? - StevenE - 03-08-2008, 12:53 AM
RE: FreeBSD ? - joximu - 03-08-2008, 01:29 AM
RE: FreeBSD ? - StevenE - 03-08-2008, 02:26 AM
RE: FreeBSD ? - joximu - 03-08-2008, 02:46 AM
RE: FreeBSD ? - StevenE - 03-10-2008, 10:30 PM
RE: FreeBSD ? - joximu - 03-10-2008, 10:39 PM
RE: FreeBSD ? - StevenE - 03-10-2008, 10:46 PM
RE: FreeBSD ? - joximu - 03-10-2008, 11:06 PM
RE: FreeBSD ? - StevenE - 03-10-2008, 11:06 PM
RE: FreeBSD ? - StevenE - 03-10-2008, 11:31 PM
RE: FreeBSD ? - StevenE - 03-13-2008, 12:27 AM
RE: FreeBSD ? - blocker - 03-13-2008, 11:58 AM
RE: FreeBSD ? - RatS - 03-13-2008, 02:06 AM
RE: FreeBSD ? - StevenE - 03-13-2008, 02:19 AM
RE: FreeBSD ? - RatS - 03-13-2008, 02:30 AM
RE: FreeBSD ? - StevenE - 03-13-2008, 07:46 PM
RE: FreeBSD ? - StevenE - 03-13-2008, 11:41 PM
RE: FreeBSD ? - StevenE - 03-14-2008, 12:11 AM
RE: FreeBSD ? - StevenE - 03-14-2008, 01:43 AM
RE: FreeBSD ? - blocker - 03-14-2008, 11:17 AM
RE: FreeBSD ? - StevenE - 03-14-2008, 09:10 PM
RE: FreeBSD ? - blocker - 03-15-2008, 11:43 AM
RE: FreeBSD ? - StevenE - 03-17-2008, 11:27 PM
RE: FreeBSD ? - joximu - 03-17-2008, 11:46 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:00 PM
RE: FreeBSD ? - gOOvER - 03-18-2008, 07:20 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:39 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:44 PM
RE: FreeBSD ? - StevenE - 03-18-2008, 07:53 PM
RE: FreeBSD ? - joximu - 03-18-2008, 09:33 PM
RE: FreeBSD ? - rbtux - 03-18-2008, 10:24 PM
RE: FreeBSD ? - StevenE - 03-19-2008, 01:00 AM
RE: FreeBSD ? - joximu - 03-19-2008, 01:29 AM
RE: FreeBSD ? - StevenE - 03-19-2008, 01:50 AM
RE: FreeBSD ? - joximu - 03-19-2008, 03:22 AM
RE: FreeBSD ? - StevenE - 03-19-2008, 06:15 PM
RE: FreeBSD ? - xsintez - 04-02-2008, 11:02 PM
RE: FreeBSD ? - joximu - 04-02-2008, 11:51 PM
RE: FreeBSD ? - jensen - 04-05-2008, 03:42 AM
RE: FreeBSD ? - blocker - 04-05-2008, 03:32 PM
RE: FreeBSD ? - StevenE - 04-08-2008, 11:27 PM
RE: FreeBSD ? - Zothos - 04-09-2008, 12:00 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 12:22 AM
RE: FreeBSD ? - Zothos - 04-09-2008, 12:29 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 12:35 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 01:10 AM
RE: FreeBSD ? - StevenE - 04-09-2008, 11:11 PM
RE: FreeBSD ? - StevenE - 04-10-2008, 10:03 PM
RE: FreeBSD ? - Zothos - 04-10-2008, 10:34 PM
RE: FreeBSD ? - StevenE - 04-10-2008, 10:50 PM
RE: FreeBSD ? - DJ_XaKeP - 04-11-2008, 02:41 AM
RE: FreeBSD ? - blocker - 04-11-2008, 11:22 AM
RE: FreeBSD ? - StevenE - 04-11-2008, 05:07 PM
RE: FreeBSD ? - StevenE - 04-16-2008, 05:47 PM
RE: FreeBSD ? - blocker - 04-18-2008, 11:12 AM
RE: FreeBSD ? - StevenE - 04-24-2008, 06:30 PM
RE: FreeBSD ? - joximu - 04-24-2008, 07:15 PM

Forum Jump:


User(s) browsing this thread: 10 Guest(s)