umask for root
by François Patte
Bonjour,
What is the default umask for root?
Until now I thought it was 0022, but, today I can see it is 0077....
Has something been changed somewhere in my install? Where?
Thank you.
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
2 years, 8 months
cifs (autofs) access denied to script when running from cron or
systemd timer
by Henrique Martins
Perl script deletes/recreates an hierarchy over SMB via an autofs mount point using CIFS.
Credentials used in the autofs map are for a generic shared user with a password that doesn't need to be changed periodically.
On a Fedora 34 system nightly updated (except kernel),
- Script works fine when running as a regular user, from the command shell/zsh.
- Script fails with "permission denied" when running from the same user's cron or from a systemd user timer, when attempting a system("rm -rf <dir>"), or alternatively using Find::File's rmtree, on several explicit full /mount/point/path/to/file, thus it is trying to do the rm and there isn't a problem with paths when running the script from cron/systemd.
On a RHEL7 system, only updated with CentOS or EPEL packages where needed, it works both from the command line or cron (didn't try systemd).
What extra permissions/configuration are needed to make it work on Fedora 34??
2 years, 8 months
F34 pipewire no audio after updates
by Michael Schwendt
Am I the only one where audio is missing after recent updates to F34?
The three pipewire processes are running, but no sound. No volume control
in GNOME Shell either.
2 years, 8 months
printer/scanner Brother
by Patrick Dupre
Hello,
I am trying to install a printer/scanner Brother DCP-J132W.
But I failed.
The printer is see with cups, but the print test page fails
using localhost
it also see:
Description: CUPS-BRF
Location:
Driver: Generic Text-Only Printer (grayscale)
Connection: cups-brf:/
Defaults: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided
but
Unable to print test page:
Unsupported format "application/vnd.cups-pdf-banner".
When I run linux-brprinter-installer-2.2.3-1
it want to install
You are going to install following packages.
dcpj132wlpr-3.0.0-1.i386.deb
dcpj132wcupswrapper-3.0.0-1.i386.deb
brscan4-0.4.10-1.amd64.deb
brscan-skey-0.3.1-2.amd64.deb
while I installed
brscan4-0.4.10-1.x86_64
brscan-skey-0.3.1-2.x86_64
Some ideas?
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
2 years, 8 months
machine suspending
by George Avrunin
My office workstation, a Dell Precision T1700 running Fedora 34 (mostly
KDE when I'm at the machine), has been suspending itself after a power
outage. This seems to be connected to a networking problem, but I don't
really understand what's going on or where to look. It seems that the
system tries to put itself to sleep when it can't connect to the network.
I don't understand why this should happen, or what to do about it.
On Friday, construction equipment cut the main power feed to our part of
campus and there was a roughly half-hour power outage. I was working at
home, but reading mail on the office system. The system currently has a
small APC UPS and is running apcupsd with pretty much the default
configuration. At 14:39:50, there are messages from apcupsd saying the
system is running on battery and a mail message to root saying the time
left on battery was 64.9 minutes with a 100 percent charge. And at 14:44
the system started to suspend. At about 15:11, it looks like the power
returned and the system brought itself back (though with some complaints
in the logs, like
Failed to StopUnit service:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process
org.freedesktop.systemd1 exited with status 1). However, there were
network problem, both within our department network and at the connection
between the department and the campus backbone. These were not resolved
until late the next day when the campus IT people finally responded and
reset that connection. (Our department IT staff is a lot more responsive
and competent than the campus staff...). But my machine was still not
reachable.
There seem to have also been problems with the switch where my machine
connects to the rest of the department network, and it looks like when my
machine couldn't connect to the network, it put itself to sleep again:
Aug 06 17:47:32 ext.math.umass.edu kernel: Lockdown: systemd-logind:
hibernation is restricted; see man kernel_lockdown.7
Aug 06 17:47:32 ext.math.umass.edu kernel: Lockdown: systemd-logind:
hibernation is restricted; see man kernel_lockdown.7
Aug 06 17:47:32 ext.math.umass.edu NetworkManager[2111]: <info>
[1628286452.1872] manager: sleep: sleep requested (sleeping: no enabled: yes)
Aug 06 17:47:32 ext.math.umass.edu NetworkManager[2111]: <info>
[1628286452.1876] manager: NetworkManager state is now ASLEEP
Aug 06 17:47:32 ext.math.umass.edu ModemManager[1954]: <info>
[sleep-monitor] system is about to suspend
Aug 06 17:47:32 ext.math.umass.edu gnome-shell[4292]: Screen lock is
locked down, not locking
Aug 06 17:47:32 ext.math.umass.edu systemd[1]: Reached target Sleep.
Aug 06 17:47:32 ext.math.umass.edu systemd[1]: Starting System Suspend...
Aug 06 17:47:32 ext.math.umass.edu systemd-sleep[40504]: Suspending
system...
Aug 06 17:47:32 ext.math.umass.edu kernel: PM: suspend entry (deep)
Aug 07 14:09:22 ext.math.umass.edu kernel: Filesystems sync: 0.379 seconds
Aug 07 14:09:22 ext.math.umass.edu kernel: Freezing user space processes
... (elapsed 0.002 seconds) done.
Aug 07 14:09:22 ext.math.umass.edu kernel: OOM killer disabled.
Aug 07 14:09:22 ext.math.umass.edu kernel: Freezing remaining freezable
tasks ... (elapsed 0.001 seconds) done.
Aug 07 14:09:22 ext.math.umass.edu kernel: printk: Suspending console(s)
(use no_console_suspend to debug)
Aug 07 14:09:22 ext.math.umass.edu kernel: serial 00:06: disabled
Aug 07 14:09:22 ext.math.umass.edu kernel: e1000e: EEE TX LPI TIMER:
00000011
Aug 07 14:09:22 ext.math.umass.edu kernel: sd 0:0:0:0: [sda] Synchronizing
SCSI cache
Aug 07 14:09:22 ext.math.umass.edu kernel: sd 1:0:0:0: [sdb] Synchronizing
SCSI cache
Aug 07 14:09:22 ext.math.umass.edu kernel: sd 1:0:0:0: [sdb] Stopping disk
Aug 07 14:09:22 ext.math.umass.edu kernel: sd 0:0:0:0: [sda] Stopping disk
Aug 07 14:09:22 ext.math.umass.edu kernel: PM: suspend devices took 1.031
seconds
Aug 07 14:09:22 ext.math.umass.edu kernel: ACPI: Preparing to enter system
sleep state S3
Aug 07 14:09:22 ext.math.umass.edu kernel: PM: Saving platform NVS memory
Aug 07 14:09:22 ext.math.umass.edu kernel: Disabling non-boot CPUs ...
lines 835-871
etc.
The staff rebooted the machine again, and the same thing happened.
Finally this morning, they rebooted both the switch and my machine, and
everything seems ok for now, although they are checking the switch and
will probably be replacing it. But why should the machine suspend itself
when it can't connect to the switch? This is pretty much the only Fedora
machine in the department and I mostly administer it (we're currently
severely understaffed), so I can't just leave it to the staff to sort
things out.
I'd very much appreciate any help.
George
2 years, 8 months
New selinux problem [weird!]
by François Patte
Bonjour,
For some reason (I explain later) I disabled selinux in
/etc/selinux/config file.
When I re-enabled selinux (SELINUX=enforcing in the config file) I could
not restart my system: no service could start and I got a kernel panic.
I had to rescue my system (see my other post) and disabled selinux.
Why??? I remember that long ago, when you enabled selinux boot could
last a long time waiting for the indexation of files, but I have never
seen a kernel panic.
So, how do I proceed to re-enable selinux on my system?
Thank you.
PS. I disabled selinux because it prevented to start a service (dictd,
see my post) but it was a wrong message of selinux alert: the problem
was not selinux but the upgrade from f32 to f34 which had changed the
owner of the dictd.log file (dictd changed to root).
This is a second wrong message with the one of the rescue tool (see my
post on rescue)
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
2 years, 8 months
slow startup process and dmesg times
by Anil F Duggirala
hello,
I am looking at output from dmesg on my laptop and there appears to be a
time when a process takes longer than what might be expected and I think
this may be reducing my startup speed.
My question is, is it normal for there to be a jump in time (timestamp)
from 7 seconds to 18 seconds. And then from 21 seconds to 30 seconds?
Are these processes slowing down my startup?
dmesg output:
https://pastebin.com/HhDyURjd
thank you.
2 years, 8 months
fedora34 & no audio
by Jack Craig
is there a way to disable pipewire
how do you enable pulseaudio??
i got other fish to fry and it'd be nice if this audio JFW... ??
tia, jackc...
2 years, 8 months
Dhcpd server usage with USB RDNIS interface that goes up and down
by Terry Barnaby
I have an AM335x based IOT system where the CPU can initially boot over
its USB interface using RDNIS and TCPIP/DHCP/TFTP. I need to run a DHCP
server on a Fedora33 host to support the DHCP requests from this CPU. In
this scenario the CPU brings its USB RDNIS interface up and down about 3
times.
In a old Fedora system (probably Fedora 23) this worked fine, however I
am trying to update our boot system to run on Fedora33 and am having
problems with the DHCP server. It has a basic /etc/dhcp/dhcpd.conf file
that I have used before that dishes out IP addresses for the subnet
10.0.0.0 netmask 255.255.255.0 (as below). I have configured a usb0
interface with NetworkManager that uses a static IP address of 10.0.0.1.
I am having two problems:
1. If you try and start the DHCP server when the usb0 interface is down
(not connected or CPU not driving a RDNIS interface) then the dhcpd
server will not start with the error message "Not configured to listen
on any interfaces!".
2. If the usb0 interface is up, the dhcp server runs and serves an IP
address to the AM335x fine, but then the AM335x close and opens the USB0
interface and I see the error message "receive_packet failed on usb0:
Network is down" and the dhcp server no longer replies to requests on
the newly come up usb0 interface.
I am guessing that at some time the dhcp server was changed to listen on
specific network interfaces only rather than a standard host socket
listening on all networks and that it does not try to reconnect to a
network interface once that has gone down.
Does anyone know of a configuration option to get the dhcp server to
listen on all network interfaces in a general way or to retry its
network connection when the interface goes down and up ?
Or do I have to get NetworkManager to stop/start the DHCP server for
this particular usb0 network interface (yuck!) ?
Terry
============
/etc/dhcp/dhcpd.conf
subnet 10.0.0.0 netmask 255.255.255.0 {
default-lease-time 1209600; # Two weeks
max-lease-time 31557600; # One year
range dynamic-bootp 10.0.0.128 10.0.0.250;
option subnet-mask 255.255.255.0;
option domain-name "usbnet";
option nis-domain "usbnet";
option nis-servers 10.0.0.1;
option domain-name-servers 10.0.0.1;
option ntp-servers 10.0.0.1;
next-server 10.0.0.1;
use-host-decl-names on;
allow bootp;
allow booting;
if substring (option vendor-class-identifier, 0, 10) = "AM335x ROM" {
filename "vlim/u-boot-spl.bin";
}
elsif substring (option vendor-class-identifier, 0, 10) = "DM814x
ROM" {
filename "vlim/u-boot-spl.bin";
}
elsif substring (option vendor-class-identifier, 0, 17) = "AM335x
U-Boot SPL" {
filename "vlim/u-boot.img";
}
else {
filename "uImage";
}
}
2 years, 8 months