BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 12th, 2007, 01:28 AM
fuzzybunny fuzzybunny is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 272 fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 21 h 32 m 17 sec
Reputation Power: 14
Locking low-access usr to directory?

I'm doing an assignment setting up a small ISP setup on a FreeBSD machine. We are using Unix login accounts for users to access their host space.

1 - I create users using adduser -v
2 - I add users to the group www-usr
3 - In the /usr/home/<user> dir, I add the directories www, mail and log

How do I lock the user to /usr/home/<user>? I don't want them going further up the tree than here when they use sftp to transfer files in.

Any help appreciated!

Reply With Quote
  #2  
Old October 15th, 2007, 07:09 PM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 257 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 23 h 46 sec
Reputation Power: 6
One way would be to use FreeBSD jails. Google to find out more about FreeBSD jails.

Reply With Quote
  #3  
Old October 22nd, 2007, 11:32 AM
fuzzybunny fuzzybunny is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 272 fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level)fuzzybunny User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 21 h 32 m 17 sec
Reputation Power: 14
thanks for the reply but... the simulation already runs inside a jail :S it's possible to make a jail-in-a-jail, yeah? but that might be more complicated than a permissions based approach

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Locking low-access usr to directory?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway