BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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:
  #1  
Old October 12th, 2007, 01:28 AM
fuzzybunny's Avatar
fuzzybunny fuzzybunny is offline
C Neophyte.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Melbourne Australia
Posts: 403 fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 1 h 34 m 55 sec
Reputation Power: 45
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: 334 fpmurphy User rank is Private First Class (20 - 50 Reputation Level)fpmurphy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 12 h 51 m 17 sec
Reputation Power: 10
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's Avatar
fuzzybunny fuzzybunny is offline
C Neophyte.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Melbourne Australia
Posts: 403 fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level)fuzzybunny User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 1 h 34 m 55 sec
Reputation Power: 45
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?

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap