I'm trying to automate the process for my ftp user creation, however I need to be able to set the quota of a user via PHP, in a shell on a remote server, using SSH. I would use
edquota username however is there a way to do this via PHP?
Here is console preview
[root@s1 home]# edquota user2 Disk quotas for user user2 (uid 509): Filesystem blocks soft hard inodes soft hard /dev/simfs 2820 0 4096 6 0 4096 ~ ~
Now what i'd have to do is edit the amount of blocks, but how would I do this over ssh2_exec() ?