-   Solaris / OpenSolaris (
-   -   User Creationg : ssh/sftp user jail to $HOME only (

routers 10-28-2007 06:17 AM

User Creationg : ssh/sftp user jail to $HOME only
I need help on adding user , yes add user as normal with command line
useradd -d /export/home/user2 -m -s /bin/bash -c "User2 Owner" user2

the problem is once user2 ssh/sftp to the box, user2 is able to go and read /export/home/user1 , the question is what is the right way to add user which only can read his own $HOME folder only

for your info i am using solaris 10 sparc

any help is appreciated


crisostomo_enrico 10-28-2007 06:38 PM


I already asked this on

Basically, when you create an user, his home directory is created with permission 755, that is: everyone can read into it. If you don't want anyone but the owner to read into it you can change the home directory permission to 700 with chmod.


routers 10-30-2007 12:28 AM

thanks for hiligh i do searching before but now found this link
however thanks a lot

All times are GMT -5. The time now is 03:37 PM.