LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2005, 09:41 AM   #1
Mefistofeles
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Folder Max Size and Limiting SSH access to home folder.


Hey guys. I have this situation.
This guy game up to me and wanted to rent a spot in my server to but up a IRC Server.

I have myself ran multiple irc servers etc. So i know what he will be doing. But the problem is, i just dont trust this guy enoth to let him loose in the system files to.

So my questions are.
* How can i limit his SSH access to his Home directory only.
* How can i limit the amount of disk space he can use. (We also wanted me to give him some webspace)

Hope i expressed myself clearly enough.
 
Old 11-25-2005, 12:10 PM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
It's very difficult to restrict someone to their home directory. You could use a crippled shell, but they could just run a command which spawns a new shell....

You can use quotas to limit a users disk space, though I've never used quotas so I don't know how to set it up.

One solution to your problem would be to use user-mode-linux and let him have his own virtual box. You wouldn't need to restrict him to anything since he's locked into the virtual box and his diskspace is limited to the (fixed) size of the filesystem image. You'd need to disable mounting the hostfs though.
 
Old 11-26-2005, 12:21 PM   #3
Mefistofeles
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Hmm.. user-mode-linux, you mean this http://usermodelinux.org/ ?

In that case i would have to reinstall linux. I wonder have i got enoth free parts to put together another box for it.

Anyways.. I'll try the quotas as soon i get back from my vacation. I'll let you know how it goes.

Tnx mate.
 
Old 11-26-2005, 12:42 PM   #4
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
Hmm.. user-mode-linux, you mean this http://usermodelinux.org/ ?
Yup, that's the one.

Quote:
In that case i would have to reinstall linux.
You don't have to reinstall anything. UML is a virtual machine that runs as a regular process on your host box. Just compile the kernel and grab a filesystem image. In fact, you can run as many as you want (memory permitting) so you could have dozens of virtual machines all networked together via a virtual network and using the host as a gateway.
 
Old 11-26-2005, 02:09 PM   #5
Mefistofeles
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
ohh.. Great. I'll try it as soon as i get back.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Chmod = no access to home folder! DeathPrawn Linux - Newbie 4 02-12-2005 11:50 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
FTP access to home folder deWin Linux - Networking 5 04-26-2004 01:45 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:16 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