Fwd: SELinux user login problem

Daniel J Walsh dwalsh at redhat.com
Wed Feb 25 15:47:45 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

prakash hallalli wrote:
> Hi All,
> 
>        I have created 'myuser'  user and  created custom module policy for
> user.
>        I have installed successfully module, but when i logging myuser in
>     i will get bash prompt.
> 
>        I have followed  as below steps for creating module.
> 
>    #vi myuser.te
>                          policy_module(myuser, 0.0.1)
>                          role myuser_r;
>                          userdom_unpriv_user_templete(myuser)
> 
> #make ­-f /usr/share/selinux/devel/Makefile
> #sudo semodule ­i myuser.pp
> #semanage user ­a ­L s0 ­r s0­s0 ­L "myuser1_r" ­P user myuser1
> #useradd ­Z myuser1 myuser1
> 
> I did all the step when i try login in system following error will display.
> 
> gtt login: myuser
> password: XXXXXX
> 
> -bash:  /home/myuser/.bash_profile: Permission denied
> -bash-3.1$
> 
> Please give what should i have to do.
> 
> Thanks,
> Prakash.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Which OS and Version.

Depending on the policy you might need to relabe the homedir to get the
labels correct.

restorecon -R -v /home

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkmlaCEACgkQrlYvE4MpobMMqACgyOEwLuvH0xgp2I97QXOtNLEa
YP4AnRe8ozJhduWstWubPIO3qxptGO8E
=UjzM
-----END PGP SIGNATURE-----




More information about the fedora-selinux-list mailing list