All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: "James R. Marcus" <jmarcus@mvalent.net>
Cc: selinux@tycho.nsa.gov
Subject: Re: bash_profile: Permission denied
Date: Thu, 23 Sep 2004 13:31:18 -0400	[thread overview]
Message-ID: <41530866.4020306@redhat.com> (raw)
In-Reply-To: <E6E16A6D4277CD459BBDE6713766033CB71F3E@exchange.mvalent.local>

James R. Marcus wrote:

>When I login in enforced mode I get this error as root:
>-bash: /root/.bash_profile: Permission denied
>ftp root # pwd       
>/root
>ftp root # ls -aZ
>ls: .: Permission denied
>ftp root #
>
>I thought it might be a labeling issue so I ran this command:
>ftp domains # newrole -r sysadm_r
>Authenticating root.
>Password: 
>ftp domains # cd /
>ftp / # setfiles /etc/security/selinux/file_contexts /root/
>setfiles:  read 575 specifications
>setfiles:  labeling files under /root/
>setfiles:  hash table stats: 5 elements, 5/65536 buckets used, longest
>chain length 1
>setfiles:  Done.
>
>I'm not getting any messages in /var/log/messages when I avc_toggle.
>
>
>Am I on the right track?
>
>James
>  
>
The problem is probably that you are logging as staff_r and the 
directory is sysadm_r.
At login do an id -Z to see what context you have,
then do the newrole -r sysadm_r and see if you have access to the directory.

Dan

>
>
>
>
>--
>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.
>  
>


--
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:[~2004-09-23 17:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23 14:24 bash_profile: Permission denied James R. Marcus
2004-09-23 17:31 ` Daniel J Walsh [this message]
2004-10-01 22:37   ` Erich Schubert
2004-10-02  0:42     ` Greg Norris
2004-10-02  0:56     ` Russell Coker
2004-10-02  3:21     ` Richard Simpson
2004-10-02 16:21       ` Erich Schubert
  -- strict thread matches above, loose matches on Subject: below --
2004-09-23 18:13 James R. Marcus
2004-09-23 18:21 ` Daniel J Walsh
2004-09-23 20:22   ` Russell Coker
2004-09-23 23:15     ` Luke Kenneth Casson Leighton
2004-09-24  8:24       ` Russell Coker
2004-09-23 19:21 ` Russell Coker
2004-09-27 18:29 James R. Marcus

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=41530866.4020306@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=jmarcus@mvalent.net \
    --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.