LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-22-2010, 11:51 AM   #1
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Rep: Reputation: 15
Have SSH chroot access mounted drive


I have a chrooted account setup for my ssh server. However, I am trying to allow this user read only access to access on a mounted hard-drive and more specifically a specific folder from that mounted drive. Can anyone give me advice about this?

I would also like to have this drive be mounted for me in my normal environment with write access.

Thanks.
 
Old 08-22-2010, 05:17 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You could make that users login directory the directory you want them in, which is owned by you and all the files are read only for them. You could also make their login shell restricted by using rbash instead of bash. This will not allow them to change directory as well as a number of other restrictions. Both these can be modified in /etc/passwd

http://www.felipecruz.com/blog_restr...their-home.php
http://man.he.net/man1/rbash
 
Old 08-22-2010, 08:41 PM   #3
blither
Member
 
Registered: Dec 2002
Location: Ohio
Distribution: LFS, Ubuntu
Posts: 157

Original Poster
Rep: Reputation: 15
I think I found a hack to make it work together, unless someone can tell me if I can mount a hard-drive in two locations?

I think what ill do is mount the smb file share that is not shared to world just internal network then make that share available to those users.
 
  


Reply



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
chroot to restrict ssh directory access vbsaltydog Linux - Security 1 07-23-2006 04:28 PM
Can not access mounted USB drive Honkeychops Mandriva 5 03-06-2006 12:59 PM
Can't access mounted NTFS drive Nychold Linux - Hardware 1 06-12-2004 02:45 AM
write access to mounted drive woja Linux - Newbie 3 11-05-2003 02:24 AM
External Drive Mounted, Can't access as a user thewaker Linux - Hardware 4 08-14-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration