svc_acct.import and export scripts

Ivan Kohler ivan at sisd.com
Sat Jun 20 02:03:08 PDT 1998


-----BEGIN PGP SIGNED MESSAGE-----

You need to modify svc_acct.{import,export} and site_perl/svc_acct.pm to
match your particular site (as well as the above for svc_acct_sm).  The
error messages you are receiving from svc_acct.import should provide a
clue.  Perhaps you need to add the shell you are using for system accounts
to svc_acct.pm (line 275):

    unless ( $recref->{username} eq 'sync' ) {
      $recref->{shell} =~ /^(\/bin\/)(sh|csh|tcsh|bash|ksh|zsh|true)$/
        or return "Illegal shell";
      $recref->{shell} = $1.$2;
    } else {
      $recref->{shell} = '/bin/sync';
    }

You could also add the entries directly to the SQL database.

On Fri, 19 Jun 1998, Allen Short wrote:

> After running the svc_acct.import and svc_acct.export scripts, I have found
> that all of the non-login users such as news, mail, nobody, ftp, and such 
> are not present in the exported password files. Further investigation reveals
> that these accounts are not present in the SQL database. I am running this on
> the same server as Radius, qpopper, Apache, etc. Is there a workaround for
> this problem, short of re-appending these entries the passwd and shadow after
> they are exported from the database?
> 
> --
> Allen Short
> Narrowgate.net
> 
> 

- -- 
Ivan Kohler <ivan at sisd.com> - finger for PGP key
Silicon Interactive Software Design - http://www.sisd.com/
Open source billing and administration for ISPs - http://www.sisd.com/freeside
"But it's alright, to smile back at me" -Blind Melon

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBNYt6zL7OPBeQJv09AQH6HAQAlTolRe5xGpO2BqZBlQU9ik/QAEglWHbD
gziNMWwyvYhbaKrhO4w5w4ymLlJVhxg6sC9tmXmnCdUIlloMptkNTPHDtixi31Gh
2A7RF7G3o0SnXC5V8ngcFlhKPglP9JDQ/CyB9yko67hux+QRJ2dmEsKn5Ml8Y/vW
3Mq6Etg4hds=
=1Uw7
-----END PGP SIGNATURE-----




More information about the freeside-users mailing list