Re: adding users with different home directory ( /1home instead of /home)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

On 07/19/2011 07:57 AM, Jatin K wrote:
> Dear all
> 
> I'm RHEL 6 , trying to add a user with following command
> 
> useradd -d /1home user1 passwd user1
> 
> 
> if I try ssh user1@localhost , following error displayed on the
> screen
> 
> Could not chdir to home directory /1home/user1: Permission denied ,
> but user still able to login   and prompts displayed [user1@testsrv
> /]$ instead of [user1@testsrv ~]$  ( user not getting its home
> directory.) -------------following is the reference related to home
> directory permission and security--------------- directory
> permission
> 
> ls -ld /1home
> 
> drwxr-xr-x. 4 root root 4096 Jul 19 10:43 /1home
> 
> ------------------------------------- SELinux Context
> 
> ls -ldZ /1home
> 
> drwxr-xr-x. root root system_u:object_r:home_root_t:s0 /1home/
> 
> ---------------------------------------------
> 
> what could be the problem ???
> 

You have an SELinux labeling problem

Simplest solution.

# semanage fcontext -a -e /home /1home
# restorecon -R -v /1home


Should fix your problem.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4le0cACgkQrlYvE4MpobNONgCgythAyU5Lt2uyAZivvW1Ksveo
FRIAoNiiDK/vg/CrYd1kNH0afYTpsIAN
=UkfR
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux