Setting up SFTP to log in to server with Filezilla












2















I have an ec2 instance on AWS which already installed a few Wordpress-es in it. I want to set things up to let more people handle their own projects, with me also being able to go into the server using terminal if I still want to.



I have been following tutorials such as
How to setup a restricted SFTP server on Ubuntu? and a few others. I figured all of them just teach users how to sftp into their own home folder, also the steps keep saying addUser but some users already existed and removing them might cause some issue.



How can I give existing users the permission to use SFTP for Wordpress projects?



Let's say all my Wordpress projects are already under /var/www/ which has already been set up with www-data:www-data.



Really new with setting things like this.



Thanks in advance for any help.










share|improve this question




















  • 1





    @pa4080 Your answer is quite lengthy and confusing, wouldn't it just be easier to show Op how to set up SSH and Give their users public keys?

    – EODCraft Staff
    Apr 12 '18 at 9:26











  • @EODCraftStaff the question is not about that. I'm assuming this is already achieved: I figured all of them just teaches how to sftp into their own home folder... The answer contains about 7 sentences.

    – pa4080
    Apr 12 '18 at 9:31
















2















I have an ec2 instance on AWS which already installed a few Wordpress-es in it. I want to set things up to let more people handle their own projects, with me also being able to go into the server using terminal if I still want to.



I have been following tutorials such as
How to setup a restricted SFTP server on Ubuntu? and a few others. I figured all of them just teach users how to sftp into their own home folder, also the steps keep saying addUser but some users already existed and removing them might cause some issue.



How can I give existing users the permission to use SFTP for Wordpress projects?



Let's say all my Wordpress projects are already under /var/www/ which has already been set up with www-data:www-data.



Really new with setting things like this.



Thanks in advance for any help.










share|improve this question




















  • 1





    @pa4080 Your answer is quite lengthy and confusing, wouldn't it just be easier to show Op how to set up SSH and Give their users public keys?

    – EODCraft Staff
    Apr 12 '18 at 9:26











  • @EODCraftStaff the question is not about that. I'm assuming this is already achieved: I figured all of them just teaches how to sftp into their own home folder... The answer contains about 7 sentences.

    – pa4080
    Apr 12 '18 at 9:31














2












2








2


1






I have an ec2 instance on AWS which already installed a few Wordpress-es in it. I want to set things up to let more people handle their own projects, with me also being able to go into the server using terminal if I still want to.



I have been following tutorials such as
How to setup a restricted SFTP server on Ubuntu? and a few others. I figured all of them just teach users how to sftp into their own home folder, also the steps keep saying addUser but some users already existed and removing them might cause some issue.



How can I give existing users the permission to use SFTP for Wordpress projects?



Let's say all my Wordpress projects are already under /var/www/ which has already been set up with www-data:www-data.



Really new with setting things like this.



Thanks in advance for any help.










share|improve this question
















I have an ec2 instance on AWS which already installed a few Wordpress-es in it. I want to set things up to let more people handle their own projects, with me also being able to go into the server using terminal if I still want to.



I have been following tutorials such as
How to setup a restricted SFTP server on Ubuntu? and a few others. I figured all of them just teach users how to sftp into their own home folder, also the steps keep saying addUser but some users already existed and removing them might cause some issue.



How can I give existing users the permission to use SFTP for Wordpress projects?



Let's say all my Wordpress projects are already under /var/www/ which has already been set up with www-data:www-data.



Really new with setting things like this.



Thanks in advance for any help.







command-line server permissions sftp wordpress






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '18 at 17:09









Zanna

50.5k13133241




50.5k13133241










asked Apr 12 '18 at 0:49









DoraDora

190216




190216








  • 1





    @pa4080 Your answer is quite lengthy and confusing, wouldn't it just be easier to show Op how to set up SSH and Give their users public keys?

    – EODCraft Staff
    Apr 12 '18 at 9:26











  • @EODCraftStaff the question is not about that. I'm assuming this is already achieved: I figured all of them just teaches how to sftp into their own home folder... The answer contains about 7 sentences.

    – pa4080
    Apr 12 '18 at 9:31














  • 1





    @pa4080 Your answer is quite lengthy and confusing, wouldn't it just be easier to show Op how to set up SSH and Give their users public keys?

    – EODCraft Staff
    Apr 12 '18 at 9:26











  • @EODCraftStaff the question is not about that. I'm assuming this is already achieved: I figured all of them just teaches how to sftp into their own home folder... The answer contains about 7 sentences.

    – pa4080
    Apr 12 '18 at 9:31








1




1





@pa4080 Your answer is quite lengthy and confusing, wouldn't it just be easier to show Op how to set up SSH and Give their users public keys?

– EODCraft Staff
Apr 12 '18 at 9:26





@pa4080 Your answer is quite lengthy and confusing, wouldn't it just be easier to show Op how to set up SSH and Give their users public keys?

– EODCraft Staff
Apr 12 '18 at 9:26













@EODCraftStaff the question is not about that. I'm assuming this is already achieved: I figured all of them just teaches how to sftp into their own home folder... The answer contains about 7 sentences.

– pa4080
Apr 12 '18 at 9:31





@EODCraftStaff the question is not about that. I'm assuming this is already achieved: I figured all of them just teaches how to sftp into their own home folder... The answer contains about 7 sentences.

– pa4080
Apr 12 '18 at 9:31










1 Answer
1






active

oldest

votes


















3














Here I'm assuming you are able to ssh/sftp to your user's home directory successfully and you want to edit (with your user) files and folders under /var/www that are owned by user and :group - www-data:www-data (without changing their ownership).



Here I'm assuming also the topic How to avoid using sudo when working in /var/www? doesn't cover you needs. For example you don't want to change the permissions under /var/www.



I think the most easiest and clear way to solve this task is to mount /var/www (or certain directory inside) into your user's home directory and change the owner to your user and :group. This could be achieved by the tool bindfs:



sudo apt update && sudo apt install bindfs




Here we will mount the entire directory /var/www in a directory called also www/ and located in your user's home directory.



mkdir "$HOME/www"
sudo bindfs -u $(id -u) -g $(id -g) --create-for-user=www-data --create-for-group=www-data /var/www "$HOME/www"



  • The command substitutions $(id -u) and $(id -g) will return the UID and GID of the current user.


  • If you want to execute the above command for another user use $(id -u <user>) and $(id -g <user>). Where <user> is an actual username.


  • For more details about the arguments used with bindfs read its manual page - man bindfs.



  • If you want to un-mount ~/www ($HOME/www) use the command:



    sudo fusermount -u ~/www





To mount /var/www in ~/www automatically during the system startup add the following line into the bottom of /etc/fstab:



bindfs#/var/www /home/<user>/www fuse force-user=<uid>,force-group=<gid>,create-for-user=www-data,create-for-group=www-data 0 0




  • Note: you should replace <user> with the actual username; also should replace <uid> and <gid> with the actual UID and GID of the <user>, you can find them by the commands: id -u <user> and id -u <user>.


  • To see the result reboot the system or execute:



    sudo mount -a    # maybe you should execute `sudo fusermount -u ~/www` first 





Here is animated demo how this works:



enter image description here





Update:



The only limitation of this approach that I found is when you change the ownership of the bind directory this will change the ownership also for the source directory. For example the next command is not a good idea:



chown -R $(id -u):$(id -g) $HOME/www


Maybe there is a suitable option for the bindfs command that will prevent this to happen, but I can't tell that at the moment.



Notes:




  • SOS Directory Nightmare - Possible for a directory to have two different users with full access?


  • What is the "t" letter in the output of "ls -ld /tmp"?


  • How do I give www-data user to a folder in my home folder?


  • Permissions problems with /var/www/html and my own home directory for a website document root







share|improve this answer


























  • I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

    – Dora
    Apr 12 '18 at 18:35











  • the user's name does exist though, I am able to use filezilla to sftp in with the username and password

    – Dora
    Apr 12 '18 at 18:36











  • Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

    – pa4080
    Apr 12 '18 at 18:48








  • 1





    oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

    – Dora
    Apr 12 '18 at 18:51













  • @Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

    – pa4080
    Apr 12 '18 at 18:59













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024194%2fsetting-up-sftp-to-log-in-to-server-with-filezilla%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Here I'm assuming you are able to ssh/sftp to your user's home directory successfully and you want to edit (with your user) files and folders under /var/www that are owned by user and :group - www-data:www-data (without changing their ownership).



Here I'm assuming also the topic How to avoid using sudo when working in /var/www? doesn't cover you needs. For example you don't want to change the permissions under /var/www.



I think the most easiest and clear way to solve this task is to mount /var/www (or certain directory inside) into your user's home directory and change the owner to your user and :group. This could be achieved by the tool bindfs:



sudo apt update && sudo apt install bindfs




Here we will mount the entire directory /var/www in a directory called also www/ and located in your user's home directory.



mkdir "$HOME/www"
sudo bindfs -u $(id -u) -g $(id -g) --create-for-user=www-data --create-for-group=www-data /var/www "$HOME/www"



  • The command substitutions $(id -u) and $(id -g) will return the UID and GID of the current user.


  • If you want to execute the above command for another user use $(id -u <user>) and $(id -g <user>). Where <user> is an actual username.


  • For more details about the arguments used with bindfs read its manual page - man bindfs.



  • If you want to un-mount ~/www ($HOME/www) use the command:



    sudo fusermount -u ~/www





To mount /var/www in ~/www automatically during the system startup add the following line into the bottom of /etc/fstab:



bindfs#/var/www /home/<user>/www fuse force-user=<uid>,force-group=<gid>,create-for-user=www-data,create-for-group=www-data 0 0




  • Note: you should replace <user> with the actual username; also should replace <uid> and <gid> with the actual UID and GID of the <user>, you can find them by the commands: id -u <user> and id -u <user>.


  • To see the result reboot the system or execute:



    sudo mount -a    # maybe you should execute `sudo fusermount -u ~/www` first 





Here is animated demo how this works:



enter image description here





Update:



The only limitation of this approach that I found is when you change the ownership of the bind directory this will change the ownership also for the source directory. For example the next command is not a good idea:



chown -R $(id -u):$(id -g) $HOME/www


Maybe there is a suitable option for the bindfs command that will prevent this to happen, but I can't tell that at the moment.



Notes:




  • SOS Directory Nightmare - Possible for a directory to have two different users with full access?


  • What is the "t" letter in the output of "ls -ld /tmp"?


  • How do I give www-data user to a folder in my home folder?


  • Permissions problems with /var/www/html and my own home directory for a website document root







share|improve this answer


























  • I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

    – Dora
    Apr 12 '18 at 18:35











  • the user's name does exist though, I am able to use filezilla to sftp in with the username and password

    – Dora
    Apr 12 '18 at 18:36











  • Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

    – pa4080
    Apr 12 '18 at 18:48








  • 1





    oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

    – Dora
    Apr 12 '18 at 18:51













  • @Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

    – pa4080
    Apr 12 '18 at 18:59


















3














Here I'm assuming you are able to ssh/sftp to your user's home directory successfully and you want to edit (with your user) files and folders under /var/www that are owned by user and :group - www-data:www-data (without changing their ownership).



Here I'm assuming also the topic How to avoid using sudo when working in /var/www? doesn't cover you needs. For example you don't want to change the permissions under /var/www.



I think the most easiest and clear way to solve this task is to mount /var/www (or certain directory inside) into your user's home directory and change the owner to your user and :group. This could be achieved by the tool bindfs:



sudo apt update && sudo apt install bindfs




Here we will mount the entire directory /var/www in a directory called also www/ and located in your user's home directory.



mkdir "$HOME/www"
sudo bindfs -u $(id -u) -g $(id -g) --create-for-user=www-data --create-for-group=www-data /var/www "$HOME/www"



  • The command substitutions $(id -u) and $(id -g) will return the UID and GID of the current user.


  • If you want to execute the above command for another user use $(id -u <user>) and $(id -g <user>). Where <user> is an actual username.


  • For more details about the arguments used with bindfs read its manual page - man bindfs.



  • If you want to un-mount ~/www ($HOME/www) use the command:



    sudo fusermount -u ~/www





To mount /var/www in ~/www automatically during the system startup add the following line into the bottom of /etc/fstab:



bindfs#/var/www /home/<user>/www fuse force-user=<uid>,force-group=<gid>,create-for-user=www-data,create-for-group=www-data 0 0




  • Note: you should replace <user> with the actual username; also should replace <uid> and <gid> with the actual UID and GID of the <user>, you can find them by the commands: id -u <user> and id -u <user>.


  • To see the result reboot the system or execute:



    sudo mount -a    # maybe you should execute `sudo fusermount -u ~/www` first 





Here is animated demo how this works:



enter image description here





Update:



The only limitation of this approach that I found is when you change the ownership of the bind directory this will change the ownership also for the source directory. For example the next command is not a good idea:



chown -R $(id -u):$(id -g) $HOME/www


Maybe there is a suitable option for the bindfs command that will prevent this to happen, but I can't tell that at the moment.



Notes:




  • SOS Directory Nightmare - Possible for a directory to have two different users with full access?


  • What is the "t" letter in the output of "ls -ld /tmp"?


  • How do I give www-data user to a folder in my home folder?


  • Permissions problems with /var/www/html and my own home directory for a website document root







share|improve this answer


























  • I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

    – Dora
    Apr 12 '18 at 18:35











  • the user's name does exist though, I am able to use filezilla to sftp in with the username and password

    – Dora
    Apr 12 '18 at 18:36











  • Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

    – pa4080
    Apr 12 '18 at 18:48








  • 1





    oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

    – Dora
    Apr 12 '18 at 18:51













  • @Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

    – pa4080
    Apr 12 '18 at 18:59
















3












3








3







Here I'm assuming you are able to ssh/sftp to your user's home directory successfully and you want to edit (with your user) files and folders under /var/www that are owned by user and :group - www-data:www-data (without changing their ownership).



Here I'm assuming also the topic How to avoid using sudo when working in /var/www? doesn't cover you needs. For example you don't want to change the permissions under /var/www.



I think the most easiest and clear way to solve this task is to mount /var/www (or certain directory inside) into your user's home directory and change the owner to your user and :group. This could be achieved by the tool bindfs:



sudo apt update && sudo apt install bindfs




Here we will mount the entire directory /var/www in a directory called also www/ and located in your user's home directory.



mkdir "$HOME/www"
sudo bindfs -u $(id -u) -g $(id -g) --create-for-user=www-data --create-for-group=www-data /var/www "$HOME/www"



  • The command substitutions $(id -u) and $(id -g) will return the UID and GID of the current user.


  • If you want to execute the above command for another user use $(id -u <user>) and $(id -g <user>). Where <user> is an actual username.


  • For more details about the arguments used with bindfs read its manual page - man bindfs.



  • If you want to un-mount ~/www ($HOME/www) use the command:



    sudo fusermount -u ~/www





To mount /var/www in ~/www automatically during the system startup add the following line into the bottom of /etc/fstab:



bindfs#/var/www /home/<user>/www fuse force-user=<uid>,force-group=<gid>,create-for-user=www-data,create-for-group=www-data 0 0




  • Note: you should replace <user> with the actual username; also should replace <uid> and <gid> with the actual UID and GID of the <user>, you can find them by the commands: id -u <user> and id -u <user>.


  • To see the result reboot the system or execute:



    sudo mount -a    # maybe you should execute `sudo fusermount -u ~/www` first 





Here is animated demo how this works:



enter image description here





Update:



The only limitation of this approach that I found is when you change the ownership of the bind directory this will change the ownership also for the source directory. For example the next command is not a good idea:



chown -R $(id -u):$(id -g) $HOME/www


Maybe there is a suitable option for the bindfs command that will prevent this to happen, but I can't tell that at the moment.



Notes:




  • SOS Directory Nightmare - Possible for a directory to have two different users with full access?


  • What is the "t" letter in the output of "ls -ld /tmp"?


  • How do I give www-data user to a folder in my home folder?


  • Permissions problems with /var/www/html and my own home directory for a website document root







share|improve this answer















Here I'm assuming you are able to ssh/sftp to your user's home directory successfully and you want to edit (with your user) files and folders under /var/www that are owned by user and :group - www-data:www-data (without changing their ownership).



Here I'm assuming also the topic How to avoid using sudo when working in /var/www? doesn't cover you needs. For example you don't want to change the permissions under /var/www.



I think the most easiest and clear way to solve this task is to mount /var/www (or certain directory inside) into your user's home directory and change the owner to your user and :group. This could be achieved by the tool bindfs:



sudo apt update && sudo apt install bindfs




Here we will mount the entire directory /var/www in a directory called also www/ and located in your user's home directory.



mkdir "$HOME/www"
sudo bindfs -u $(id -u) -g $(id -g) --create-for-user=www-data --create-for-group=www-data /var/www "$HOME/www"



  • The command substitutions $(id -u) and $(id -g) will return the UID and GID of the current user.


  • If you want to execute the above command for another user use $(id -u <user>) and $(id -g <user>). Where <user> is an actual username.


  • For more details about the arguments used with bindfs read its manual page - man bindfs.



  • If you want to un-mount ~/www ($HOME/www) use the command:



    sudo fusermount -u ~/www





To mount /var/www in ~/www automatically during the system startup add the following line into the bottom of /etc/fstab:



bindfs#/var/www /home/<user>/www fuse force-user=<uid>,force-group=<gid>,create-for-user=www-data,create-for-group=www-data 0 0




  • Note: you should replace <user> with the actual username; also should replace <uid> and <gid> with the actual UID and GID of the <user>, you can find them by the commands: id -u <user> and id -u <user>.


  • To see the result reboot the system or execute:



    sudo mount -a    # maybe you should execute `sudo fusermount -u ~/www` first 





Here is animated demo how this works:



enter image description here





Update:



The only limitation of this approach that I found is when you change the ownership of the bind directory this will change the ownership also for the source directory. For example the next command is not a good idea:



chown -R $(id -u):$(id -g) $HOME/www


Maybe there is a suitable option for the bindfs command that will prevent this to happen, but I can't tell that at the moment.



Notes:




  • SOS Directory Nightmare - Possible for a directory to have two different users with full access?


  • What is the "t" letter in the output of "ls -ld /tmp"?


  • How do I give www-data user to a folder in my home folder?


  • Permissions problems with /var/www/html and my own home directory for a website document root








share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 11 at 16:54

























answered Apr 12 '18 at 9:16









pa4080pa4080

13.7k52564




13.7k52564













  • I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

    – Dora
    Apr 12 '18 at 18:35











  • the user's name does exist though, I am able to use filezilla to sftp in with the username and password

    – Dora
    Apr 12 '18 at 18:36











  • Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

    – pa4080
    Apr 12 '18 at 18:48








  • 1





    oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

    – Dora
    Apr 12 '18 at 18:51













  • @Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

    – pa4080
    Apr 12 '18 at 18:59





















  • I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

    – Dora
    Apr 12 '18 at 18:35











  • the user's name does exist though, I am able to use filezilla to sftp in with the username and password

    – Dora
    Apr 12 '18 at 18:36











  • Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

    – pa4080
    Apr 12 '18 at 18:48








  • 1





    oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

    – Dora
    Apr 12 '18 at 18:51













  • @Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

    – pa4080
    Apr 12 '18 at 18:59



















I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

– Dora
Apr 12 '18 at 18:35





I believe I am understanding the logic and so on but, let's say if I am setting this up for another user? I tried replacing $USER with another user's name but gives me something like this Not a valid group ID:

– Dora
Apr 12 '18 at 18:35













the user's name does exist though, I am able to use filezilla to sftp in with the username and password

– Dora
Apr 12 '18 at 18:36





the user's name does exist though, I am able to use filezilla to sftp in with the username and password

– Dora
Apr 12 '18 at 18:36













Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

– pa4080
Apr 12 '18 at 18:48







Hi, @Dora, use the command id filezilla to fin to which group the user filezilla belongs to. Then use this group where it is needed. If you want post the output of id filezilla, maybe I could help.

– pa4080
Apr 12 '18 at 18:48






1




1





oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

– Dora
Apr 12 '18 at 18:51







oh oops by filezilla I meant the ftp software with gui. anyways I used id username as you mentioned and this is the outcome uid=1002(username) gid=1002(ftpaccess) groups=1002(ftpaccess),33(www-data)

– Dora
Apr 12 '18 at 18:51















@Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

– pa4080
Apr 12 '18 at 18:59







@Dora: have you read this great topic: How to avoid using sudo when working in /var/www? ... The approach that I proposed here is different, but in this way you will be able to manipulate with the files more fluently.

– pa4080
Apr 12 '18 at 18:59




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1024194%2fsetting-up-sftp-to-log-in-to-server-with-filezilla%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀