A.  sasl2 not installed:

$ apt-cache policy sasl2-bin
sasl2-bin:
  Installed: (none)
  Candidate: 2.1.28+dfsg1-5ubuntu3.2~oracular1
  Version table:
     2.1.28+dfsg1-5ubuntu3.2~oracular1 500
        500 
https://ppa.launchpadcontent.net/bryce/cyrus-sasl2-sru-lp2078851/ubuntu 
noble/main amd64 Packages
     2.1.28+dfsg1-5ubuntu3.1 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     2.1.28+dfsg1-5ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
$ ls -ld /run/saslauthd
ls: cannot access '/run/saslauthd': No such file or directory
$ ps aux | grep sasl2 | grep -v grep
$

----------------------------------------------------------------------------------------------------
B.  Installing from noble-updates

$ apt-cache policy sasl2-bin | grep Installed:
  Installed: 2.1.28+dfsg1-5ubuntu3.1
$ ls -ld /run/saslauthd
drwx--x--- 2 root sasl 40 Oct  3 16:14 /run/saslauthd/
$ ps aux | grep sasl2 | grep -v grep
$ sudo systemctl enable saslauthd
Synchronizing state of saslauthd.service with SysV service script with 
/usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable saslauthd
Created symlink /etc/systemd/system/multi-user.target.wants/saslauthd.service → 
/usr/lib/systemd/system/saslauthd.service.
$ ls -ld /run/saslauthd
drwx--x--- 2 root sasl 40 Oct  3 16:14 /run/saslauthd/
$ sudo ls /var/run/saslauthd/ -l
total 0
$ ls -l /usr/lib/systemd/system/saslauthd.service
-rw-r--r-- 1 root root 326 Apr  5 19:59 
/usr/lib/systemd/system/saslauthd.service
$ sudo systemctl status saslauthd
○ saslauthd.service - SASL Authentication Daemon
     Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; 
preset: enabled)
     Active: inactive (dead)
       Docs: man:saslauthd(8)

Sep 24 23:35:06 cyrus-sasl2-sru-lp2078851-noble systemd[1]: saslauthd.service: 
Deactivated successfully.
Sep 24 23:35:06 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Stopped 
saslauthd.service - SASL Authentication Daemon.
Sep 24 23:35:06 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Starting 
saslauthd.service - SASL Authentication Daemon...
Sep 24 23:35:06 cyrus-sasl2-sru-lp2078851-noble saslauthd[9743]:                
 : master pid is: 9743
Sep 24 23:35:06 cyrus-sasl2-sru-lp2078851-noble saslauthd[9743]:                
 : listening on socket: /var/run/saslauthd/mux
Sep 24 23:35:06 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Started 
saslauthd.service - SASL Authentication Daemon.
Oct 03 16:11:13 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Stopping 
saslauthd.service - SASL Authentication Daemon...
Oct 03 16:11:13 cyrus-sasl2-sru-lp2078851-noble saslauthd[9743]:                
 : master exited: 9743
Oct 03 16:11:13 cyrus-sasl2-sru-lp2078851-noble systemd[1]: saslauthd.service: 
Deactivated successfully.
Oct 03 16:11:13 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Stopped 
saslauthd.service - SASL Authentication Daemon.
$ sudo systemctl start saslauthd
$ ps aux | grep sasl | grep -v grep
root       34437  0.0  0.0  19732  1104 ?        Ss   16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34438  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34439  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34440  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34441  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5

$ sudo systemctl status saslauthd
● saslauthd.service - SASL Authentication Daemon
     Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; 
preset: enabled)
     Active: active (running) since Thu 2024-10-03 16:19:49 UTC; 1min 15s ago
       Docs: man:saslauthd(8)
    Process: 34436 ExecStart=/usr/sbin/saslauthd -a $MECHANISMS $MECH_OPTIONS 
$OPTIONS -n $THREADS (code=exited, status=0/SUCCESS)
   Main PID: 34437 (saslauthd)
      Tasks: 5 (limit: 76969)
     Memory: 2.9M ()
        CPU: 8ms
     CGroup: /system.slice/saslauthd.service
             ├─34437 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34438 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34439 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34440 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             └─34441 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5

Oct 03 16:19:49 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Starting 
saslauthd.service - SASL Authentication Daemon...
Oct 03 16:19:49 cyrus-sasl2-sru-lp2078851-noble saslauthd[34437]:               
  : master pid is: 34437
Oct 03 16:19:49 cyrus-sasl2-sru-lp2078851-noble saslauthd[34437]:               
  : listening on socket: /var/run/saslauthd/mux
Oct 03 16:19:49 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Started 
saslauthd.service - SASL Authentication Daemon.
$ ls -ld /usr/sbin/saslauthd
-rwxr-xr-x 1 root root 84640 Aug  9 02:33 /usr/sbin/saslauthd*  # <---- bug 
reproduced
$ sudo ls -l /var/run/saslauthd/
total 968
-rw------- 1 root root      0 Oct  3 16:19 cache.flock
-rw------- 1 root root 986112 Oct  3 16:19 cache.mmap
srwxrwxrwx 1 root root      0 Oct  3 16:19 mux
-rw------- 1 root root      0 Oct  3 16:19 mux.accept
-rw------- 1 root root      6 Oct  3 16:19 saslauthd.pid
$ ps aux | grep sasl
root       34437  0.0  0.0  19732  1104 ?        Ss   16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34438  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34439  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34440  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34441  0.0  0.0  19732  1104 ?        S    16:19   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
$ ls -l /usr/sbin/saslauthd
-rwxr-xr-x 1 root root 84640 Aug  9 02:33 /usr/sbin/saslauthd*


------------------------------------------------------------------------------------
C.  Installing from the PPA

$ sudo apt-get install sasl2-bin
$ apt-cache policy sasl2-bin | grep Installed:
  Installed: 2.1.28+dfsg1-5ubuntu3.2~oracular1
$ ls -ld /run/saslauthd
drwxr-xr-x 2 root sasl 140 Oct  3 16:27 /run/saslauthd/
$ ps aux | grep sasl2 | grep -v grep
$ sudo systemctl enable saslauthd
Synchronizing state of saslauthd.service with SysV service script with 
/usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable saslauthd
$ ls -ld /run/saslauthd
drwxr-xr-x 2 root sasl 140 Oct  3 16:27 /run/saslauthd/
$ sudo ls /var/run/saslauthd/ -l
total 968
-rw------- 1 root sasl      0 Oct  3 16:27 cache.flock
-rw------- 1 root sasl 986112 Oct  3 16:27 cache.mmap
srwxrwxrwx 1 root sasl      0 Oct  3 16:27 mux
-rw------- 1 root sasl      0 Oct  3 16:27 mux.accept
-rw------- 1 root sasl      6 Oct  3 16:27 saslauthd.pid
$ ls -l /usr/lib/systemd/system/saslauthd.service
-rw-r--r-- 1 root root 337 Sep 23 05:40 
/usr/lib/systemd/system/saslauthd.service
$ sudo systemctl status saslauthd
● saslauthd.service - SASL Authentication Daemon
     Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; 
preset: enabled)
     Active: active (running) since Thu 2024-10-03 16:27:17 UTC; 1min 23s ago
       Docs: man:saslauthd(8)
   Main PID: 34649 (saslauthd)
      Tasks: 5 (limit: 76969)
     Memory: 2.9M ()
        CPU: 8ms
     CGroup: /system.slice/saslauthd.service
             ├─34649 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34650 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34651 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34652 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             └─34653 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5

Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Starting 
saslauthd.service - SASL Authentication Daemon...
Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble saslauthd[34649]:               
  : master pid is: 34649
Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble saslauthd[34649]:               
  : listening on socket: /var/run/saslauthd/mux
Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Started 
saslauthd.service - SASL Authentication Daemon.
$ sudo systemctl start saslauthd
$ ps aux | grep sasl | grep -v grep
root       34649  0.0  0.0  19732  1100 ?        Ss   16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34650  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34651  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34652  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34653  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
$ sudo systemctl status saslauthd
● saslauthd.service - SASL Authentication Daemon
     Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; 
preset: enabled)
     Active: active (running) since Thu 2024-10-03 16:27:17 UTC; 2min 5s ago
       Docs: man:saslauthd(8)
   Main PID: 34649 (saslauthd)
      Tasks: 5 (limit: 76969)
     Memory: 2.9M ()
        CPU: 8ms
     CGroup: /system.slice/saslauthd.service
             ├─34649 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34650 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34651 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             ├─34652 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
             └─34653 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5

Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Starting 
saslauthd.service - SASL Authentication Daemon...
Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble saslauthd[34649]:               
  : master pid is: 34649
Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble saslauthd[34649]:               
  : listening on socket: /var/run/saslauthd/mux
Oct 03 16:27:17 cyrus-sasl2-sru-lp2078851-noble systemd[1]: Started 
saslauthd.service - SASL Authentication Daemon.
$ ls -ld /usr/sbin/saslauthd
-rwxr-xr-x 1 root root 84640 Sep 23 20:14 /usr/sbin/saslauthd*
$ ls -ld /run/saslauthd
drwxr-xr-x 2 root sasl 140 Oct  3 16:27 /run/saslauthd/
$ sudo ls -l /var/run/saslauthd/
total 968
-rw------- 1 root sasl      0 Oct  3 16:27 cache.flock
-rw------- 1 root sasl 986112 Oct  3 16:27 cache.mmap
srwxrwxrwx 1 root sasl      0 Oct  3 16:27 mux
-rw------- 1 root sasl      0 Oct  3 16:27 mux.accept
-rw------- 1 root sasl      6 Oct  3 16:27 saslauthd.pid
$ ps aux | grep sasl | grep -v grep
root       34649  0.0  0.0  19732  1100 ?        Ss   16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34650  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34651  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34652  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5
root       34653  0.0  0.0  19732  1100 ?        S    16:27   0:00 
/usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 5

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078851

Title:
  saslauthd wrong permission of /var/spool/postfix/var/run/saslauthd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cyrus-sasl2/+bug/2078851/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to