I had this too but then I just installed to /usr/local and it worked fine.
On Sun, May 26, 2013 at 2:36 PM, Tim Cuthbertson <t...@gfxmonk.net> wrote:
> Not really a question - more of an info piece for those who
> switch to fish as default shell and run into the same problem:
>
> I switched to fish as my login shell and it's generally been quite
> fine. But when my window manager crashed I had to switch to a virtual
> console to fix it. I couldn't log in, and having a look at
> `journaltctl` showed that I was getting:
>
> > SELinux is preventing /usr/bin/login from execute access on the file
> /home/tim/.bin/fish
>
> Further prodding revelaed that the `login` process is only allowed to
> exec files with SELinux type `local_login_t` (or at least that's how I
> read the error message).
>
> $ chcon -t local_login_t ~/.bin/fish
> chcon: Permission denied
>
> Unfortunately, even "sudo make me a sandwich" failed:
>
> $ sudo chcon -t local_login_t ~/.bin/fish
> chcon: Permission denied
>
> Some googling turned up:
> http://www.redhat.com/archives/fedora-selinux-list/2006-March/msg00121.html
>
> In which it's explained that mount_t is a domain, not a type you can
> assign to a directory. I guess local_login_t is similar, so I checked
> out what type `bash` has:
>
> $ ls -Z /bin/bash
> -rwxr-xr-x. root root system_u:object_r:shell_exec_t:s0 /bin/bash*
>
> That'll do:
>
> $ chcon -t shell_exec_t ~/.bin/fish
>
> Any my virtual console login is now working with `fish`.
>
> Might be worth a warning somewhere official, if this is a problem many
> people will hit (I assume you'll always get it in rhel/fedora at
> least, although the .rpms may have this set properly - I compiled fish
> myself).
>
> Cheers,
> - Tim.
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users