[CentOS] how to show only quota limit to users via SSH?

Georghy fusco at wanagain.net
Wed Feb 24 08:29:01 UTC 2010


Rudi Ahlers a écrit :
>
>
> On Wed, Feb 24, 2010 at 12:31 AM, Kai Schaetzl 
> <maillists at conactive.com <mailto:maillists at conactive.com>> 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 at knocky:[~]$ df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /cpbackup              20G   15G  4.6G  77% /
> root at 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 at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   
try to add "df -h" (without quotes) in user/.bashrc
but it will show to the user quotas even if he is connected via terminal 
instead of ssh

-- 
Cordialement, / Greetings,
Georghy FUSCO



More information about the CentOS mailing list