SU & SUDO & CUPS PROBLEMS

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

SU & SUDO & CUPS PROBLEMS

Postby goprisko » Jun 15th, '17, 15:33

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
goprisko
 
Posts: 26
Joined: Apr 27th, '13, 23:10

Re: SU & SUDO & CUPS PROBLEMS

Postby doktor5000 » Jun 15th, '17, 20:13

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: SU & SUDO & CUPS PROBLEMS

Postby goprisko » Jun 15th, '17, 22:02

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
goprisko
 
Posts: 26
Joined: Apr 27th, '13, 23:10

Re: SU & SUDO & CUPS PROBLEMS

Postby goprisko » Jun 15th, '17, 22:05

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
goprisko
 
Posts: 26
Joined: Apr 27th, '13, 23:10

Re: SU & SUDO & CUPS PROBLEMS

Postby goprisko » Jun 16th, '17, 14:45

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
goprisko
 
Posts: 26
Joined: Apr 27th, '13, 23:10

Re: SU & SUDO & CUPS PROBLEMS

Postby goprisko » Jun 16th, '17, 14:47

Directions for installing the scripts came from:

viewtopic.php?f=7&t=4724
goprisko
 
Posts: 26
Joined: Apr 27th, '13, 23:10


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest