Page 1 of 1

SU & SUDO & CUPS PROBLEMS

PostPosted: Jun 15th, '17, 15:33
by goprisko
I want to enable "SU" and "SUDO" in my Mageia 5 desktop system.
I want to know exactly which script disables them and how it is called and when it is called

I want to stop the deamons currently disabling printing in my system.

I want full and complete control of /usr/lib/cups and it's sub directories, particularly the permissions thereof

I want to know which script changes those permissions, how it is called, and when it is called.

This is an immediate need

INDY

Re: SU & SUDO & CUPS PROBLEMS

PostPosted: Jun 15th, '17, 20:13
by doktor5000
I want, I want, I want ... that is probably a really good attitude to receive help from volunteers ...

goprisko wrote:I want to enable "SU" and "SUDO" in my Mageia 5 desktop system.
I want to know exactly which script disables them and how it is called and when it is called


Not sure what you're asking for here. There's nothing that needs to be enabled for "su". For sudo you would need to install and configure it, see https://wiki.mageia.org/en/Configuring_sudo
And there's nothing in a default installation with standard security setting for msec that either disables su or sudo.

Re: SU & SUDO & CUPS PROBLEMS

PostPosted: Jun 15th, '17, 22:02
by goprisko
yes, there most certainly is a daemon which disables SU periodically while running such that I must periodically do
"chmod u+s /usr/bin/su"

to get it working again

and there is a daemon which periodically restores /usr/lib/cups to 777 permissions, including all subdirectories
and their files.

I want to find this daemon, and disable it!

INDY

Re: SU & SUDO & CUPS PROBLEMS

PostPosted: Jun 15th, '17, 22:05
by goprisko
I have even gone to the point of disabling MSEC entirely!!!!
The daemon still runs!!

Still stops SU working!!11

Still changes permissions on /usr/lib/cups

which disables printing!!!

Because CUPS won't work with what it claims are improper permissions in its filters and backends!!

INDY

Re: SU & SUDO & CUPS PROBLEMS

PostPosted: Jun 16th, '17, 14:45
by goprisko
I finally was able to take control of my system.

To eliminate the factory scripts changing permissions of /usr/bin/su and /usr/lib/cups and /opt/brother
it was necessary to create a script in /usr/local/bin and in /etc/init.d.
It was necessary to create a system_d service.

Control of /usr/bin/su required specifying permissions as 4777

permissions in /usr/lib/cups and all sub directories were changed to 755
ditto for /opr/brother and all subdirectories

Directions for doing so are in:
index.php

Getting My brother HL-L2320D printer to work required downloading the script and two rpms from the brother site.
Once the permissions were fixed ................
It is necessary to specify the printer's address using the option specifying the make, model, and serial number of the printer, otherwise
one gets a "waiting for printer" message.

INDY

Re: SU & SUDO & CUPS PROBLEMS

PostPosted: Jun 16th, '17, 14:47
by goprisko
Directions for installing the scripts came from:

viewtopic.php?f=7&t=4724