Cannot access /var/www through FTPDefault file permissions for php user www-dataPermissions problem when upgrading Wordpress to 3.2 through the admin interface/var/www owner for apache2 and ftp accessUser has full access with FTP, limited access with SFTPHow to get access from nginx on host OS to files inside lxc-container?Why does WordPress keep telling me that it needs to access my web server?
Are there types of animals that can't make the trip to space? (physiologically)
Job interview by video at home and privacy concerns
Booting Ubuntu from USB drive on MSI motherboard -- EVERYTHING fails
Is the "spacetime" the same thing as the mathematical 4th dimension?
Actual Steps in Step Definition or Call Test Cases in Step Definition, What's the Best Practice?
Quote to show students don't have to fear making mistakes
As an interviewer, how to conduct interviews with candidates you already know will be rejected?
Does Hogwarts have its own anthem?
Found a minor bug, affecting 1% of users. What should QA do?
How to level a picture frame hung on a single nail?
Would houseruling two or more instances of resistance to the same element as immunity be overly unbalanced?
How to plausibly write a character with a hidden skill
Did the Soviet army intentionally send troops (e.g. penal battalions) running over minefields?
"cd" into /sys/kernel/debug/tracing causes permission change
Notation clarity question for a conglomerate of accidentals
Does it require less energy to reach the Sun from Pluto's orbit than from Earth's orbit?
Why is my vegetable stock bitter, but the chicken stock not?
How can we be sure our specific Christian confession is true, when every other Christian group claims that it's not?
Why do personal finance apps focus on outgoings rather than income
Non-electric Laser
Could the Queen overturn the UK Supreme Court ruling regarding prorogation of Parliament?
I've been fired, was allowed to announce it as if I quit and given extra notice, how to handle the questions?
Using 4K Skyrim Textures when running 1920 x 1080 display resolution?
How can I find places to store/land a private airplane?
Cannot access /var/www through FTP
Default file permissions for php user www-dataPermissions problem when upgrading Wordpress to 3.2 through the admin interface/var/www owner for apache2 and ftp accessUser has full access with FTP, limited access with SFTPHow to get access from nginx on host OS to files inside lxc-container?Why does WordPress keep telling me that it needs to access my web server?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I'm trying to access /var/www through Filezilla but my user can only access files inside of it's home directory.
I've added my user to the www-data group, however it still doesn't allow me the ability to go "up" to the root of the directory, so I can enter /var/www.
$ ls -al
drwxr-xr-x 4 www-data www-data 4096 Apr 15 12:50 .
drwxr-xr-x 13 root root 4096 Jan 15 00:04 ..
drwxr-xr-x 2 www-data www-data 4096 Jan 14 23:53 html
-rwxr-xr-x 1 www-data www-data 612 Apr 15 12:42 index.html
Both my html folder and index.html are owned by www-data.
$ groups
acans cdrom floppy sudo audio dip www-data video plugdev netdev
Acans belongs to the www-data group, so I'm unsure what I need to do to make Filezilla access /var/www.
nginx ftp vsftpd
add a comment
|
I'm trying to access /var/www through Filezilla but my user can only access files inside of it's home directory.
I've added my user to the www-data group, however it still doesn't allow me the ability to go "up" to the root of the directory, so I can enter /var/www.
$ ls -al
drwxr-xr-x 4 www-data www-data 4096 Apr 15 12:50 .
drwxr-xr-x 13 root root 4096 Jan 15 00:04 ..
drwxr-xr-x 2 www-data www-data 4096 Jan 14 23:53 html
-rwxr-xr-x 1 www-data www-data 612 Apr 15 12:42 index.html
Both my html folder and index.html are owned by www-data.
$ groups
acans cdrom floppy sudo audio dip www-data video plugdev netdev
Acans belongs to the www-data group, so I'm unsure what I need to do to make Filezilla access /var/www.
nginx ftp vsftpd
1
"I'm trying to access /var/www" why? Just don't. What you want is an absolute security nightmare. Make a directorywatcher that evaluates what is put into the home directory and mv it to /var/www/ if it is acceptable.
– Rinzwind
Apr 16 at 13:00
I guess I'm just used to using Filezilla to add/remove/replace files from my web host and wanted to do the same on my local Ubuntu Machine. If it's too much of a security risk, I guess I'll just keep using the Webmin File Manager.
– Acans
Apr 16 at 13:09
1
ehm even that I would block myself ;-) Directly putting files into /var/www/ can crash your server: my experience in this is that a full disk is easily reached;even a 1Tb disk. (I host a fileserver with lots of pdfs where users can print them from the web based software so they do not even put the files on there directy. 5 years of pdfs is 1.6Tb :X ) We now host those files on an sepearate instance and not in /var/www/ ;)
– Rinzwind
Apr 16 at 13:13
I ended up going with a shortcut instead of trying to access it directly. So anything in /home/user/media can be accessed by a shortcut in /var/www/media. I don't know if it's safer, but at least I'm not putting thinks directly into /var/www or accessing it directly.
– Acans
Apr 16 at 15:25
add a comment
|
I'm trying to access /var/www through Filezilla but my user can only access files inside of it's home directory.
I've added my user to the www-data group, however it still doesn't allow me the ability to go "up" to the root of the directory, so I can enter /var/www.
$ ls -al
drwxr-xr-x 4 www-data www-data 4096 Apr 15 12:50 .
drwxr-xr-x 13 root root 4096 Jan 15 00:04 ..
drwxr-xr-x 2 www-data www-data 4096 Jan 14 23:53 html
-rwxr-xr-x 1 www-data www-data 612 Apr 15 12:42 index.html
Both my html folder and index.html are owned by www-data.
$ groups
acans cdrom floppy sudo audio dip www-data video plugdev netdev
Acans belongs to the www-data group, so I'm unsure what I need to do to make Filezilla access /var/www.
nginx ftp vsftpd
I'm trying to access /var/www through Filezilla but my user can only access files inside of it's home directory.
I've added my user to the www-data group, however it still doesn't allow me the ability to go "up" to the root of the directory, so I can enter /var/www.
$ ls -al
drwxr-xr-x 4 www-data www-data 4096 Apr 15 12:50 .
drwxr-xr-x 13 root root 4096 Jan 15 00:04 ..
drwxr-xr-x 2 www-data www-data 4096 Jan 14 23:53 html
-rwxr-xr-x 1 www-data www-data 612 Apr 15 12:42 index.html
Both my html folder and index.html are owned by www-data.
$ groups
acans cdrom floppy sudo audio dip www-data video plugdev netdev
Acans belongs to the www-data group, so I'm unsure what I need to do to make Filezilla access /var/www.
nginx ftp vsftpd
nginx ftp vsftpd
edited Apr 16 at 13:02
Rinzwind
223k29 gold badges430 silver badges573 bronze badges
223k29 gold badges430 silver badges573 bronze badges
asked Apr 16 at 12:55
AcansAcans
1
1
1
"I'm trying to access /var/www" why? Just don't. What you want is an absolute security nightmare. Make a directorywatcher that evaluates what is put into the home directory and mv it to /var/www/ if it is acceptable.
– Rinzwind
Apr 16 at 13:00
I guess I'm just used to using Filezilla to add/remove/replace files from my web host and wanted to do the same on my local Ubuntu Machine. If it's too much of a security risk, I guess I'll just keep using the Webmin File Manager.
– Acans
Apr 16 at 13:09
1
ehm even that I would block myself ;-) Directly putting files into /var/www/ can crash your server: my experience in this is that a full disk is easily reached;even a 1Tb disk. (I host a fileserver with lots of pdfs where users can print them from the web based software so they do not even put the files on there directy. 5 years of pdfs is 1.6Tb :X ) We now host those files on an sepearate instance and not in /var/www/ ;)
– Rinzwind
Apr 16 at 13:13
I ended up going with a shortcut instead of trying to access it directly. So anything in /home/user/media can be accessed by a shortcut in /var/www/media. I don't know if it's safer, but at least I'm not putting thinks directly into /var/www or accessing it directly.
– Acans
Apr 16 at 15:25
add a comment
|
1
"I'm trying to access /var/www" why? Just don't. What you want is an absolute security nightmare. Make a directorywatcher that evaluates what is put into the home directory and mv it to /var/www/ if it is acceptable.
– Rinzwind
Apr 16 at 13:00
I guess I'm just used to using Filezilla to add/remove/replace files from my web host and wanted to do the same on my local Ubuntu Machine. If it's too much of a security risk, I guess I'll just keep using the Webmin File Manager.
– Acans
Apr 16 at 13:09
1
ehm even that I would block myself ;-) Directly putting files into /var/www/ can crash your server: my experience in this is that a full disk is easily reached;even a 1Tb disk. (I host a fileserver with lots of pdfs where users can print them from the web based software so they do not even put the files on there directy. 5 years of pdfs is 1.6Tb :X ) We now host those files on an sepearate instance and not in /var/www/ ;)
– Rinzwind
Apr 16 at 13:13
I ended up going with a shortcut instead of trying to access it directly. So anything in /home/user/media can be accessed by a shortcut in /var/www/media. I don't know if it's safer, but at least I'm not putting thinks directly into /var/www or accessing it directly.
– Acans
Apr 16 at 15:25
1
1
"I'm trying to access /var/www" why? Just don't. What you want is an absolute security nightmare. Make a directorywatcher that evaluates what is put into the home directory and mv it to /var/www/ if it is acceptable.
– Rinzwind
Apr 16 at 13:00
"I'm trying to access /var/www" why? Just don't. What you want is an absolute security nightmare. Make a directorywatcher that evaluates what is put into the home directory and mv it to /var/www/ if it is acceptable.
– Rinzwind
Apr 16 at 13:00
I guess I'm just used to using Filezilla to add/remove/replace files from my web host and wanted to do the same on my local Ubuntu Machine. If it's too much of a security risk, I guess I'll just keep using the Webmin File Manager.
– Acans
Apr 16 at 13:09
I guess I'm just used to using Filezilla to add/remove/replace files from my web host and wanted to do the same on my local Ubuntu Machine. If it's too much of a security risk, I guess I'll just keep using the Webmin File Manager.
– Acans
Apr 16 at 13:09
1
1
ehm even that I would block myself ;-) Directly putting files into /var/www/ can crash your server: my experience in this is that a full disk is easily reached;even a 1Tb disk. (I host a fileserver with lots of pdfs where users can print them from the web based software so they do not even put the files on there directy. 5 years of pdfs is 1.6Tb :X ) We now host those files on an sepearate instance and not in /var/www/ ;)
– Rinzwind
Apr 16 at 13:13
ehm even that I would block myself ;-) Directly putting files into /var/www/ can crash your server: my experience in this is that a full disk is easily reached;even a 1Tb disk. (I host a fileserver with lots of pdfs where users can print them from the web based software so they do not even put the files on there directy. 5 years of pdfs is 1.6Tb :X ) We now host those files on an sepearate instance and not in /var/www/ ;)
– Rinzwind
Apr 16 at 13:13
I ended up going with a shortcut instead of trying to access it directly. So anything in /home/user/media can be accessed by a shortcut in /var/www/media. I don't know if it's safer, but at least I'm not putting thinks directly into /var/www or accessing it directly.
– Acans
Apr 16 at 15:25
I ended up going with a shortcut instead of trying to access it directly. So anything in /home/user/media can be accessed by a shortcut in /var/www/media. I don't know if it's safer, but at least I'm not putting thinks directly into /var/www or accessing it directly.
– Acans
Apr 16 at 15:25
add a comment
|
0
active
oldest
votes
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/4.0/"u003ecc by-sa 4.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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134367%2fcannot-access-var-www-through-ftp%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134367%2fcannot-access-var-www-through-ftp%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
"I'm trying to access /var/www" why? Just don't. What you want is an absolute security nightmare. Make a directorywatcher that evaluates what is put into the home directory and mv it to /var/www/ if it is acceptable.
– Rinzwind
Apr 16 at 13:00
I guess I'm just used to using Filezilla to add/remove/replace files from my web host and wanted to do the same on my local Ubuntu Machine. If it's too much of a security risk, I guess I'll just keep using the Webmin File Manager.
– Acans
Apr 16 at 13:09
1
ehm even that I would block myself ;-) Directly putting files into /var/www/ can crash your server: my experience in this is that a full disk is easily reached;even a 1Tb disk. (I host a fileserver with lots of pdfs where users can print them from the web based software so they do not even put the files on there directy. 5 years of pdfs is 1.6Tb :X ) We now host those files on an sepearate instance and not in /var/www/ ;)
– Rinzwind
Apr 16 at 13:13
I ended up going with a shortcut instead of trying to access it directly. So anything in /home/user/media can be accessed by a shortcut in /var/www/media. I don't know if it's safer, but at least I'm not putting thinks directly into /var/www or accessing it directly.
– Acans
Apr 16 at 15:25