Current time: 06-16-2024, 08:43 PM Hello There, Guest! (LoginRegister)


Post Reply 
FreeBSD ?
Author Message
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #41
RE: FreeBSD ?
It worked for me before with adduser ( there you're right )
I have allready a working system on FreeBSD but there are some problems which should be now solved, thats why I want to install it one more time Smile

tomorrow I'll search for an solution Smile
(This post was last modified: 03-03-2008 01:27 AM by StevenE.)
03-03-2008 01:26 AM
Find all posts by this user Quote this message in a reply
blocker Offline
Junior Member
*

Posts: 123
Joined: Apr 2007
Reputation: 2
Post: #42
RE: FreeBSD ?
Ok thats great. If you still have some problem, may be we can help
03-03-2008 03:18 PM
Find all posts by this user Quote this message in a reply
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
blocker Offline
Junior Member
*

Posts: 123
Joined: Apr 2007
Reputation: 2
Post: #44
RE: FreeBSD ?
StevenE Wrote: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

which ispcp version do you test ? as far I remember RC3 already had configuration like that. PS: pw group add is same like pw groupadd

StevenE Wrote: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'

the correct syntax is
Code:
my $cmd = "$main::cfg{'CMD_GROUPADD'} $prefix$mgid -g $mgid";

and the other is
Code:
my $cmd="$main::cfg{'CMD_USERADD'} $prefix$muid $prefix$muid -d  $main::cfg{'PHP_STARTER_DIR'}/master -m -c vu-master -g $prefix$mgid -s /bin/false -u $muid $prefix$muid";

for vmail
Code:
my $cmd = "$main::cfg{'CMD_USERADD'} $fuid -c vmail-user -s /bin/false";
03-04-2008 05:58 PM
Find all posts by this user Quote this message in a reply
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #45
RE: FreeBSD ?
hi,

sorry had some other problems around here Tongue
but now I continued the Installation. Thx blocker; code works so far but next porblem appears and I remember that I#ve seen it here before but didn't found it now....

so here is what happens during Installation
Code:
ERROR: External command '/usr/bin/mysql --host=localhost --user=root --pass= < /tmp/db.sql 1>/tmp/db.sql.stdout 2>/tmp/db.sql.stderr' returned '127' status !

it works manually....
03-06-2008 01:57 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #46
RE: FreeBSD ?
Please check the two files und post them here:
/tmp/db.sql.stdout
/tmp/db.sql.stderr

Greez BeNe
03-06-2008 02:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #47
RE: FreeBSD ?
... ok should've checked it by myself.
error was only wrong path. I keep going.. whyever it don't connect to SQL database I'll check it out
(This post was last modified: 03-06-2008 02:24 AM by StevenE.)
03-06-2008 02:24 AM
Find all posts by this user Quote this message in a reply
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #48
RE: FreeBSD ?
sorry but I don't get the clue....
I don't have permission as root@localhost (login works) on mysql to create DBs etc.....

does ispcp-setup give any permissions ?
03-08-2008 12:53 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #49
RE: FreeBSD ?
no

you only give username and password so ispcp can use it - the user should have full rights on mysql...

maybe you need to check the permissions of this user. try starting mysql with ignoring the grant tables... (there should be some parameter...)
03-08-2008 01:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
StevenE Offline
Junior Member
*

Posts: 104
Joined: Feb 2008
Reputation: 0
Post: #50
RE: FreeBSD ?
the user root@localhost has, whyever, not ALL PRIVILEGES but I can't change them because only with root I can login and can't change permission with --skip-grant-tables activated....

somehow ispcp seems to change them, because I didn't
03-08-2008 02:26 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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