LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   User Creationg : ssh/sftp user jail to $HOME only (http://www.linuxquestions.org/questions/solaris-opensolaris-20/user-creationg-ssh-sftp-user-jail-to-%24home-only-595187/)

routers 10-28-2007 05: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

thanks

crisostomo_enrico 10-28-2007 05:38 PM

Hi.

I already asked this on
http://www.linuxquestions.org/questi...n-user-587487/

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.

Bye,
Enrico.

routers 10-29-2007 11:28 PM

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 05:37 PM.