View Full Version : [ubuntu] best way to provide shells to users?

May 19th, 2008, 04:20 AM
i'm looking for the best way to give a client a shell account that has a maximum space quota. currently, i was thinking about creating a virtual file system by the commands: dd, mkfs and mount. this allows me to easily specify the size of the user's disk image, as well as easily relocate and remove it if necessary. this also makes it easy for assigning users to groups, and giving groups permissions to the virtual file system. to keep the users confined to their vfs, i was going to use a chroot environment. i haven't tried the chroot out, yet, but i've read about it and it sounds like something that'd keep them in thier directory.

i wouldn't modify fstab, i'd just have a script that'd mount all of these. (i think this would give me finer control over the system)

is this a good way to do this, or is there a better way?

thanks in advance

May 19th, 2008, 04:23 AM
Why not install the quota package to limit their disk usage?

May 19th, 2008, 04:27 AM
oh, i already am. i guess i forgot to mention that. yeah, i'm enabling usrquota, and grpquota when i'm mounting the file system.

i guess i'm just wondering if this sounds like a logical way to do this? is this maybe how larger servers might do this? im not sure if eventually having 20+ mounted file systems would be a good thing or not. im unaware of any performance issues this might have.