Skip to contentSkip to conversation

run_init confusion

DISCUSSION Justin P. Mattock 2 participants 4 messages Jan 21, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

I'm having an issue with run_init.
each time I try to restart alsa-utils
I get this:

name@computer:~$ newrole -r sysadm_r -- -c /usr/sbin/run_init /etc/init.d/alsa-utils restart
Password:
USAGE: run_init <script> <args ...>
 where: <script> is the name of the init script to run,
        <args ...> are the arguments to that script.
name@computer:~$

I've set /etc/pam.d/newrole_pam.conf
as su, but commented out:
auth sufficient pam_rootok.so
like what the doc said.

I've also set in the policy
DIRECT_INITRC = y
but still the same response.

any info would be appreciated.

regards;

Justin P. Mattock

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 5 lines · Justin P. Mattock

I'm having an issue with run_init.
each time I try to restart alsa-utils
I get this:

name@computer:~$ newrole -r sysadm_r -- -c /usr/sbin/run_init /etc/init.d/alsa-utils restart

newrole -r sysadm_r -- -c "/usr/sbin/run_init /etc/init.d/alsa-utils restart"

joe

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
Quoted 7 lines · Joe Nall
Quoted 4 lines · Justin P. Mattock

I'm having an issue with run_init.
each time I try to restart alsa-utils
I get this:

Quoted 7 lines
Quoted 1 line
name@computer:~$ newrole -r sysadm_r -- -c /usr/sbin/run_init /etc/init.d/alsa-utils restart

newrole -r sysadm_r -- -c "/usr/sbin/run_init /etc/init.d/alsa-utils restart"

joe

I think I have something missing.
when adding " "
to the command:
newrole -r sysadm_r -- -c "/usr/sbin/run_init /etc/init.d/alsa-utils restart" I get this:

name@computer:~$ newrole -r sysadm_r -- -c "/usr/sbin/run_init /etc/init.d/alsa-utils restart"
Password:
Authenticating name.
run_init: incorrect password for name
authentication failed.
name@computer:~$

I've done passwd as root and as normal user
to make sure, but still same message.

regards;

Justin P. Mattock

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Joe Nall
Quoted 7 lines · Joe Nall
Quoted 4 lines · Justin P. Mattock

I'm having an issue with run_init.
each time I try to restart alsa-utils
I get this:

Quoted 9 lines
Quoted 2 lines

name at computer:~$ newrole -r sysadm_r -- -c /usr/sbin/run_init /etc/init.d/alsa-utils restart

newrole -r sysadm_r -- -c "/usr/sbin/run_init /etc/init.d/alsa-utils restart"

joe

O.K. I was able to have run_init work
by changing system-auth
to common-auth(can't seem to locate system-auth
package);
I think one of the main problems I have is
I don't know how to login as root.(with the newest refpolicy atleast) how do I do that? or do I just need to have system-auth
in /etc/pam.d setup correctly to use run_init?

regards;

Justin P. Mattock