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

Simon Billis simon at houxou.com
Wed Feb 24 12:00:47 UTC 2010


Rudi Ahlers sent a missive on 2010-02-24:

> 
> 
> On Wed, Feb 24, 2010 at 1:31 PM, Kai Schaetzl 
> <maillists at conactive.com>
> wrote:
> 
> 
> 
> 
> 	 df does not show quota.
> 
> 	quota shows quota. 	And if you do not want to have the user
access to a
> certain program you 	have to remove it or prohibit access otherwise (->
> restricted shell).
> 
> 
> 	Kai
> 
> 	--
> 
> 
> 
> 
> Kai, don't take this the wrong way, but I can see this is going nowhere.
> 
> When Bob logs into the server, via SSH, I want him to see how much 
> space he has left. The server uses quotas to limit the user's space, 
> and "df -h" only shows the whole server's disk usage, not the users.
> Is it possible, with df to show the user's disk usage, or not?
>
No it is not possible to do this with df.

df is not able to show user quotas nor is it possible to limit it to display
only the user space available.

Perhaps if you were to create a partition specifically for the user then you
could allow them to use df.








More information about the CentOS mailing list