[CentOS] Groups

Mon Jan 31 05:07:24 UTC 2011
Nico Kadel-Garcia <nkadel at gmail.com>

On Sun, Jan 30, 2011 at 11:14 PM, Jason S-M
<slackmoehrle.lists at gmail.com> wrote:
> Hi All,
>
> On one of my servers I have a personal account and root. I disable root for ssh logins and run ssh on an alternative port. When 'scp'ing files I usually scp them up, then ssh in 'su' root and move them to /var/www/html.
>
> I can sftp I realize, but what group can I add my personal account to, but not root, so I can sftp in and put the files in /var/www/html?

There are a dozen ways to do this. One is to uplodate with WebDAV over
HTTPS, which is built into Apache on CentOS and has plenty of usable
clients such as lftp. Another is simply to designate a directory under
/var/www/html/, owned by you personally, that the apache user can
browse. That give you direct upload access as yourself.