LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 10-28-2007, 05:17 AM   #1
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Rep: Reputation: 74
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
 
Old 10-28-2007, 05:38 PM   #2
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 35
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.
 
Old 10-29-2007, 11:28 PM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 749
Blog Entries: 6

Original Poster
Rep: Reputation: 74
thanks for hiligh i do searching before but now found this link
however thanks a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking SSH user to home directory. paroxsitic Linux - Software 2 04-03-2007 05:50 PM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM
jail user to /home/user directory confused_user Linux - Security 12 03-15-2006 09:56 AM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 03:00 PM


All times are GMT -5. The time now is 03:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration