Re: limiting a user?

2008-08-29 Thread François Cerbelle

Le Jeu 28 août 2008 23:10, Zach Uram a écrit :
[...]
 How can I limit how much disk space he can use and limit how much
 bandwidth?
lokk for quota package. You will have to enable quotas on the filesystem
(if the Filesystem accept it) in the /etc/fstab file and remount the
filesystem. Then, you will edit the quotas with edquota and reboot the
server (easiest way to take everything into account and to initialize the
quotas).

For the bandwith, it is not simple. I dont know a simple solution for your
problem.

 Also I would like it so he cannot explore the filesystem and is
 limited to his $HOME directory only.

What kind of acces will he have ? If he can ssh into the serveur, you
can explore two solutions :
- a limited shell interpreter (partial solution)
- a jail (chroot)
If not (lock his account with passwd -l user and give him a /bin/false
shell), you can configure the FTP server to chroot him self.

Have a nice day
Francois Cerbelle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



limiting a user?

2008-08-28 Thread Zach Uram
I wish to add a user account for my friend on my Apache2 webserver
(running in Debian lenny/sid with 2.6.18 kernel).

How can I limit how much disk space he can use and limit how much bandwidth?

Also I would like it so he cannot explore the filesystem and is
limited to his $HOME directory only.

Zach


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: limiting per user CPU time

1999-04-28 Thread ulisses
-BEGIN PGP SIGNED MESSAGE-

On Wed, 28 Apr 1999, Pere Camps wrote:

 Hi!
 
   Is there any way to do that? I've read ulimit(1), but that only
 applies to bash(1) and it's sons (and it can also be changed). Another
 option would be automatically nicing proceses that use more CPU time than
 their quota.

Take a look at getrlimit, setrlimit and getrusage(2), I think the best way
to do this is to make a daemon wich monitor process and applies the niceness
of process...

Maybe already it does exsist something similar? (check it at freshmeat.net)

I hope this helps

Ulisses

Debian/GNU Linux: a dream come true
- -
Computers are useless. They can only give answers.Pablo Picasso

-BEGIN PGP SIGNATURE-
Version: 2.6.3a
Charset: latin1
Comment: PGP public key available at http://www.rediris.es/cert/keyserver

iQB1AwUBNyawSg/N+5+NQ63pAQFnFwL/XLCsSUQmki0V0p6OZG3JmxCCFAgd7XxM
EI0sXqo+TzG/HBjK39m7aut8Cd7mKwF2ioygmhGiN13h7UgfwBMg9zxLmfK1njX7
/llb8z/Knon5Aq4xdDLvDBalD+uGy/Y+
=ZRcp
-END PGP SIGNATURE-


limiting per user CPU time

1999-04-27 Thread Pere Camps
Hi!

Is there any way to do that? I've read ulimit(1), but that only
applies to bash(1) and it's sons (and it can also be changed). Another
option would be automatically nicing proceses that use more CPU time than
their quota.

TIA!

-- p.