Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-hardened
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-hardened@g.o
From: Alain Toussaint <alain.toussaint@...>
Subject: RE: emerge via ssh doesn't work
Date: Fri, 13 Apr 2012 01:04:19 -0400
Thanks,
	That did the trick but I feel I'm gonna need the selinux 101 guide to
really understand how to handle a selinux system. For the moment, I hooked
up a monitor on the server and installed many software that way but I also
tried your instructions on the ppp daemon (for an ipsec vpn) and it
installed fine while in a ssh session.

Another question I had is; would you (or someone else in Gentoo.org) have a
use for a howto on how to build a selinux enabled active directory system
where all the users and administrative users are located in a samba 4
installation? (only root would have an account in /etc/passwd)

Alain

-----Message d'origine-----
De : Sven Vermeulen [mailto:swift@g.o]
Envoyé : 12 avril 2012 15:57
À : gentoo-hardened@g.o
Objet : Re: [gentoo-hardened] emerge via ssh doesn't work

On Thu, Apr 12, 2012 at 03:41:50PM -0400, Alain Toussaint wrote:
>                 I am building a headless server and for the most part,
> now that I have labelled everything (selinux), I am not able to
> continue emerging software via ssh. I know that it is a security
> features but is there something I can change in my setup or else, I’ll
> need to get a monitor for the machine?

Without the failure you get, it is not easy to tell you what to do, but my
guess would be that, once you are logged on to the server, you are in the
staff role:

	~# id -Z
	root:staff_r:staff_t

In order to use Portage, you need to be in the system administration role,
so first switch roles:

	~# newrole -r sysadm_r
	Password: <your root password>

	~# id -Z
	root:sysadm_r:sysadm_t

Now you should be able to run emerge (and other administrative tasks).

Wkr,
	Sven Vermeulen


Replies:
Re: emerge via ssh doesn't work
-- Sven Vermeulen
References:
emerge via ssh doesn't work
-- Alain Toussaint
Re: emerge via ssh doesn't work
-- Sven Vermeulen
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: emerge via ssh doesn't work
Next by thread:
Re: emerge via ssh doesn't work
Previous by date:
Re: emerge via ssh doesn't work
Next by date:
Re: emerge via ssh doesn't work


Updated Jun 28, 2012

Summary: Archive of the gentoo-hardened mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.