The $ strace -o log.txt lpq produced copious output. Some files in /etc missing, but they were commented witn "F_OK". I note these lines"
Code: Select all
setresgid(-1, 1000, -1) = 0
openat(AT_FDCWD, "lock", O_RDONLY|O_NONBLOCK|O_NOFOLLOW) = -1 EACCES (Permission denied)
...
setresuid(-1, 1000, -1) = 0
newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x13), ...}, AT_EMPTY_PATH) = 0
write(1, "Warning: no daemon present\n", 27) = 27
...
[the permission denied message is repeated several times.]
I did a netinst of Debian on an SSD. Ten partitions (/var/mail broken out). Mail system not sending or receiving (no time yet to fix) and lualatex command does not work (default lmroman font missing) . What is really a problem is that log files are missing in /var/log (no daemon.log, debug, dmesg, fsck, kern.log, mail.err, mail.info. mail.log, mail.warn, messages, pgcarts, syslog, systat, user.log). Nevertheless root can somehow view dmesg. At its end is:
Code: Select all
[823613.994060] ieee80211 phy0: Hardware restart was requested
[825192.091836] audit: type=1400 audit(1735275602.309:23): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=1000201 comm="cupsd" capability=12 capname="net_admin"
I looked at what logs there were after both root and user ran cancel -a. In the /var/log/cups/localhost file:
Code: Select all
localhost - - [27/Dec/2024:05:39:07 -0500] "POST /admin/ HTTP/1.1" 401 161
Cancel-Jobs successful-ok
localhost - root [27/Dec/2024:05:39:07 -0500] "POST /admin/ HTTP/1.1"
200 161 Cancel-Jobs successful-ok
In fact $ lpq tells me the $ cancel -a command was
not successful. There was nothing in /var/log/cups/error-log or lp-errors.