The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
restrict the user not to key in more than 50 chars injeti Shell Programming and Scripting 18 08-16-2008 08:06 AM
restrict the user not to key in more than 50 chars injeti UNIX for Advanced & Expert Users 1 08-14-2008 07:08 AM
Restrict FTP access to a single directory for only one user. santhoshkumar_d UNIX for Advanced & Expert Users 8 05-23-2008 05:08 AM
restrict a user to certain command vikas027 SUN Solaris 1 03-07-2008 06:52 AM
need to restrict user to his home dir lidram SUN Solaris 5 02-06-2008 08:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 08-25-2008
Registered User
 

Join Date: Aug 2008
Posts: 5
red:

actually - this is also a good point... and I have made this change...
however, I still really want the user "rooted" to their home directory -
I just believe that is a much cleaner, safer, more professional appearance.

I'm also thinking about user maintenance. If I know that all users will be added by default - "rooted to their home directory", then the maintenance of users is a task I can delagate.


Quote:
Originally Posted by redoubtable View Post
@itobenon: If you don't want them to ls /home, just change permissions: chmod 711 /home . About /etc/passwd is harder because many programs rely on reading it's contents (ACL implementation would be advised).

Yes, I was talking about virtualization per user.

Anyway, why not try selinux? RSBAC? grsecurity? I think you're looking for MAC/ACL implementations (they're hard to maintain but provide ultimate security)
Reply With Quote
Forum Sponsor
  #9  
Old 08-25-2008
Registered User
 

Join Date: Aug 2008
Posts: 5
I guess I should clarify some things...
when I said chroot wasn't an acceptable solution - I only meant by itself.

I do, in fact, use chroot; which limits the user ONLY to sftp.
In fact, my chroot jail, is about as lean as you can possibly have one. - the whole jail (excluding the home directory) contains only 20 files in total (~ 4M in size) - in only 3 directory's: /dev; /lib; and /usr (and /dev only contains null)

I guess in the ideal - if I could have a user chroot'd to their home directory (without the need for them to see those 3 directories), and if sftp existed in some "rsftp" version, where I could eliminate the 'cd' command (or restrict) it, and if I could have all of this in a form that's easy enough to delagate user maintenance, I would be perfectly happy.

It doesn't seem to me that, that's asking for alot...
I suppose the easy/delagate part may simply be me writing a bash script - I'm ok w/ that. But the rest seems to be very difficult to attain - which surprises me.
Reply With Quote
  #10  
Old 08-26-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Isn't sftp basically just a wrapper for ssh? Then perhaps you could assign the users a custom shell which lacks or restricts the commands you find problematic.
Reply With Quote
  #11  
Old 08-26-2008
Registered User
 

Join Date: Aug 2008
Posts: 5
an interesting question...

I'm not sure that sftp is a wrapper, but I'm guessing it is not...

I make this statement based on the fact that my own chroot jail does not include ssh in it. The only "executable" in my jail is "sftp-server" (which is located under /usr/lib)

So I've always seen sftp as a separate app; I'm not sure if it does work thru ssh (even in a chroot jail)?

Anyone know if the command set can be limited somehow - either thru sftp itself or ssh (if that's the "mother app") ?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
chroot, home, jail, rbash, rsh, rssh, sftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0