LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 11-24-2005, 10:41 AM   #1
Mefistofeles
LQ Newbie
 
Registered: Sep 2005
Posts: 3
Thanked: 0
Folder Max Size and Limiting SSH access to home folder.


[Log in to get rid of this advertisement]
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.
Mefistofeles is offline     Reply With Quote
Old 11-25-2005, 01:10 PM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 542
Thanked: 0
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.
ioerror is offline     Reply With Quote
Old 11-26-2005, 01:21 PM   #3
Mefistofeles
LQ Newbie
 
Registered: Sep 2005
Posts: 3
Thanked: 0

Original Poster
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.
Mefistofeles is offline     Reply With Quote
Old 11-26-2005, 01:42 PM   #4
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 542
Thanked: 0
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.
ioerror is offline     Reply With Quote
Old 11-26-2005, 03:09 PM   #5
Mefistofeles
LQ Newbie
 
Registered: Sep 2005
Posts: 3
Thanked: 0

Original Poster
ohh.. Great. I'll try it as soon as i get back.
Mefistofeles is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
Chmod = no access to home folder! DeathPrawn Linux - Newbie 4 02-12-2005 12:50 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 03:26 AM
FTP access to home folder deWin Linux - Networking 5 04-26-2004 02:45 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM


All times are GMT -5. The time now is 08:19 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration