problem with ftp file permissions - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: problem with ftp file permissions (/thread-9378.html) |
problem with ftp file permissions - xtragicerror703 - 01-26-2010 05:31 PM okay so i installed ispcp for the first time and i have a tiny issue. i can't upload via ftp, i can connect but i can't upload. in order for me to upload i have to login to SSH and change all the file permissions within the htdocs folder just to edit them. what can i do please. RE: problem with ftp file permissions - kilburn - 01-26-2010 05:57 PM My crystal ball is broken, so I can't answer you if you don't provide: 1. "ls -lah /var/www/virtual/domain.tld/htdocs" output 2. FTP error message that you're getting 3. vuXXXX user that should own this website RE: problem with ftp file permissions - xtragicerror703 - 01-26-2010 06:17 PM debian:~# ls -lah /var/www/virtual/domain.com/htdocs total 16K drwxrwxr-x 3 vu2004 vu2004 4.0K 2010-01-26 02:16 . drwxrwx--- 9 vu2004 www-data 4.0K 2010-01-26 02:19 .. drwxr-xr-x 2 root root 4.0K 2010-01-23 14:31 imgs -rw-r--r-- 1 root root 1.5K 2009-12-09 01:43 index.html FTP error im getting. an error occurred while copying a file to the FTP server, Make sure you have permission to put files on the FTP server. Details: 200 type set to I 227 Entering passive mode (192,168,1,103,131,35) 550 index.html: permission denied. RE: problem with ftp file permissions - kilburn - 01-26-2010 08:34 PM These files are owned by root, so you obviously get permission denied errors when trying to change them. Run "chown -R vu2004:vu2004 /var/www/virtual/domain.com/htdocs" as root, and you'll be able to correctly handle files through FTP afterwards. Now, try to create a new website and see if the default files are created as root. If this is the case, you've hit a bug. Otherwise, you changed the permissions somehow and it's your fault. RE: problem with ftp file permissions - xtragicerror703 - 01-28-2010 12:40 AM yeah thats true. although when i use that command, i can do anything and everything. but i have to apply that code to each and every domain i create so that i can use ftp. but thank you for that command. RE: problem with ftp file permissions - alpracka - 06-02-2011 05:31 AM Hallo, thanks for this thread, it solved my problem in part. But.. I'm using one SSH account for access on server - the root user. I'm editing all the virtuals I need etc. But when i change someting in virtuals htdocs, the rights changes to "root" insted of "vu2033" eg. It causes problems like described above and I have to manually change the rights, if other users are accessing via FTP of "vu2033" account. So I wanna ask, Is there a option how to "fix" this? I dont want access on server via unsecured FTP. Thanks for help! RE: problem with ftp file permissions - kilburn - 06-02-2011 03:23 PM Give the normal users (vuXXXX) a password and connect through them instead of connecting through the root user. RE: problem with ftp file permissions - alpracka - 06-03-2011 01:26 AM I tried: passwd vu2033 //and i have set password chown vu2033:vu2033 /var/www/virtual/hisdomain.com If I try connect via SSH on vu2033 user, the server interrupts the connection gracefully immediately after login . If I try create new user normally, SSH connection works. Anything wrong? Thanks for help. RE: problem with ftp file permissions - kilburn - 06-03-2011 12:37 PM (06-03-2011 01:26 AM)alpracka Wrote: If I try connect via SSH on vu2033 user, the server interrupts the connection gracefully immediately after login . If I try create new user normally, SSH connection works. You also have to change the user's shell (edit the /etc/passwd file directly). |