Skip to main content

Thread: Accessing /var/www from SFTP


i've searched topic, , have seen lot of posts on it, none seem give definitive answer.

host couple sites out of /var/www on server. development work on computer on 2nd floor, , server in basement. used run slackware on server, , sftp (via filezilla) server root upload files. made me vaguely uncomfortable, i'm happy ubuntu's method of disabling root user default. however, has removed ability sftp webpages /var/www normal user account (/var/www belongs root).

preferred way without enabling root on server?
first thought change group owns /var/www, in prior experience confuses apache (granted, slackware used older version). i'm wondering if there's more elegant solution overall.

do need 1 user account able sftp, or several? if need 1 user
able sftp, create user called “webmaster” or similar owns /var/www.

code:
sudo -i  useradd webmaster -d /var/www  chown -hr webmaster /var/www  passwd webmaster  exit


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Accessing /var/www from SFTP


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support