saslauthd start problem

Discussion in 'Installation/Configuration' started by iantull, Jan 26, 2007.

  1. iantull

    iantull New Member

    I am building a server using, "The Perfect Setup - Ubuntu 6.10 Server" I have been able to get everthing done up to trying to start saslauthd. I have uncommented start=yes and added the PARRAMS line to the correct location and changed the value of the PIDFILE in the /etc/init/saslauthd file. When trying to "start" saslauthd I get the following error,
    /etc/default/saslauthd: 3: /var/spool/postfix/var/run/saslauthd: Permission denied.
    I have checked all my settings and entries and am unable to find the problem. Hoping someone can point me in the right direction.
     
  2. martinfst

    martinfst Member Moderator

    On my (working) Ubuntu 6.10 system, the permissions are:
    Code:
    ~$ l /var/spool/postfix/var/
    total 12
    4 drwxr-xr-x  3 root root 4096 2006-12-10 20:05 run
    4 drwxr-xr-x  3 root root 4096 2006-12-10 20:05 .
    4 drwxr-xr-x 20 root root 4096 2006-12-10 20:07 ..
    ~$ l /var/spool/postfix/var/run/
    total 12
    4 drwxr-xr-x 3 root root 4096 2006-12-10 20:05 ..
    4 drwxr-xr-x 3 root root 4096 2006-12-10 20:05 .
    4 drwxr-xr-x 2 root root 4096 2007-01-15 13:26 saslauthd
    ~$ l /var/spool/postfix/var/run/saslauthd/
    total 12
    4 drwxr-xr-x 3 root root 4096 2006-12-10 20:05 ..
    4 -rw------- 1 root root    5 2007-01-15 13:26 saslauthd.pid
    0 -rw------- 1 root root    0 2007-01-15 13:26 mux.accept
    0 srwxrwxrwx 1 root root    0 2007-01-15 13:26 mux
    4 drwxr-xr-x 2 root root 4096 2007-01-15 13:26 .
    
    PS: Remark for understanding the output - 'l' is an alias for 'ls -latrs'.
     
  3. iantull

    iantull New Member

    Thanks for the info, checked all that and except for the files not being in the saslauthd directory they are all the same permissions as yours. I commented out the PARAMS line in the saslauthd file in default and was able to start saslauthd, but the .pid file was written in /var/run/saslauthd/ but the only way I could stop it was to kill the pid. It has got me stumped as to why I cannot write to that directory, I even tried chmod 777 and still got the same error when trying to start. The failed start does not even show up in any log files?
    I am going to spend the next few hours going over my install and see if there is some small typing error somewhere.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/fedault/saslauthd and /etc/init.d/saslauthd?
    What's the output of
    Code:
    ls -la /var/spool/postfix/var/run/saslauthd
    ?
     
  5. iantull

    iantull New Member

    Thanks for all the help. I found the problem, for some reason my keyboard at the server has been inputing characters that I could not see when using vi. It was not until I downloaded the saslauthd file from default and opened it on my pc that I found odd characters in the entries I had made. I edited the file on the pc then uploaded it and it all worked. I have now re-installed the keyboard on the server and checked it and it now seems to be OK. I must have entered the keyboard type incorrectly when installing it. Hopefully that is all my problem was.

    Thanks
    Ian.
     

Share This Page