Re: how to show only quota limit to users via SSH?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On Wed, Feb 24, 2010 at 12:31 AM, Kai Schaetzl <maillists@xxxxxxxxxxxxx> wrote:
Rudi Ahlers wrote on Tue, 23 Feb 2010 18:16:23 +0200:

> For example, I set a soft limit of 10GB on this user, but when he logs in he
> can see all the limits:

These are not limits, this is a program he can run. Your question sounds like
you want to show a certain result (quota) when the user logs in. But that
doesn't seem to be what you want. What you likely want is give users a limited
shell. Google for "limited shell", "restricted shell" and "jail".

Kai

--
Get your web at Conactive Internet Services: http://www.conactive.com



_______________________________________________



Hi Kai,

I know what the limits are, and that the program he runs is not related to the limits.

Let me re-phrase :)

Is it possible, with CentOS (or Linux), to allow a user to only see his file quotas (user quotas) when he logs in via SSH, instead of the whole server's disk space?


i.e. when the user logs in, and types df -h, I want him to see something like this:

root@knocky:[~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/cpbackup              20G   15G  4.6G  77% /
root@knocky:[~]$


Is this possible?



--
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux