All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Romix" <romix@php.cd>
To: <russell@coker.com.au>, <selinux@tycho.nsa.gov>
Subject: RE: how to add a user with rights to login via ssh on selinux?
Date: Tue, 9 Sep 2003 16:47:23 +0200	[thread overview]
Message-ID: <006501c376e1$4cc11fb0$4200000a@roadwarrior> (raw)
In-Reply-To: <200309092353.22849.russell@coker.com.au>

> On Tue, 9 Sep 2003 23:47, Romix wrote:
> > sorry, i posted the wrong line, but sshd was running in the 
> same context:
> > 23618    243 root:sysadm_r:sysadm_chkpwd_t            /usr/sbin/sshd
> >
> > so i changed it (i executed "/etc/init.d/sshd start" as root from a 
> > local login and not via ssh):
> > 24176    195 root:staff_r:staff_t                     /usr/sbin/sshd
> 
> Firstly you should be sysadm_r:sysadm_t when you start 
> daemons.  Secondly you 
> should use "run_init".
> 
> Do the following:
> newrole -r sysadm_r
> run_init /etc/init.d/sshd start
> 
> Then things should be fine.

ok, i think i understand now, that was the information missing :) 
now sshd is running in system_u:system_r:sshd_t context and my user can
login :D

thanks a lot for your help.

cu, Romain


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2003-09-09 14:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-09 10:15 how to add a user with rights to login via ssh on selinux? Romix
2003-09-09 10:54 ` Russell Coker
2003-09-09 12:16   ` Romix
2003-09-09 13:12     ` Russell Coker
2003-09-09 13:47       ` Romix
2003-09-09 13:53         ` Russell Coker
2003-09-09 14:47           ` Romix [this message]
2003-09-09 14:39         ` Faye Coker
2003-09-09 14:42           ` Romix
2003-09-09 15:30         ` Tom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006501c376e1$4cc11fb0$4200000a@roadwarrior' \
    --to=romix@php.cd \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.