From: "Romix" <romix@php.cd>
To: <selinux@tycho.nsa.gov>
Subject: how to add a user with rights to login via ssh on selinux?
Date: Tue, 9 Sep 2003 12:15:12 +0200 [thread overview]
Message-ID: <005801c376bb$439ed330$4200000a@roadwarrior> (raw)
Hi,
i have seen that a similar problem has been discussed on this list some
months ago, but that didn´t help me... :-/
im running selinux und want to create a user that has the right to login
via ssh.
i created a user called setest:
# suseradd -m setest
i gave him a password:
# sadminpasswd setest
...
i added the line "user setest roles { user_r sysadm_r };" to
/etc/security/selinux/src/policy/users
i applied the changes:
# make -C /etc/security/selinux/src/policy load
and my /etc/security/default_contexts looks like this:
system_r:local_login_t staff_r:staff_t user_r:user_t
system_r:sshd_t staff_r:staff_t user_r:user_t
system_r:crond_t staff_r:staff_crond_t user_r:user_crond_t
system_r:system_crond_t
if i right understand this should be enough, but my user setest can´t
login, after typing in the password i get the message:
Connection to 10.0.0.11 closed by remote host.
Connection to 10.0.0.11 closed.
in the sshd-log i have the following lines:
Sep 8 20:45:17 [sshd] Accepted password for setest from 10.0.0.23 port
33571 ssh2
Sep 8 20:45:17 [sshd] fatal: Could not obtain SID for user setest
Sep 8 20:45:17 [sshd] syslogin_perform_logout: logout() returned an
error
what did i forgot or what do i wrong? can someone help me? thx.
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.
next reply other threads:[~2003-09-09 10:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-09 10:15 Romix [this message]
2003-09-09 10:54 ` how to add a user with rights to login via ssh on selinux? 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
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='005801c376bb$439ed330$4200000a@roadwarrior' \
--to=romix@php.cd \
--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.