I setup VSFTPD on my Ubuntu server 12.04, it worked very good. Until I tried to change the permissions of the user so the user couldn't go in the / directory and only in the directories inside /home/user/public_html.
It could have to do something with the fact that I did this:
sudo chmod 700 -R /
I have a user, ftpUser and he is inside a group, ftpUsers.
I setup VSFTPD on my Ubuntu server 12.04, it worked very good. Until I tried to change the permissions of the user so the user couldn't go in the / directory and only in the directories inside /home/user/public_html.
It could have to do something with the fact that I did this:
sudo chmod 700 -R /
I have a user, ftpUser and he is inside a group, ftpUsers.
I like to fix permissions on our fileserver via cron. In general I like to set everything to umask 027 ignoring any changes a user did.
My apache installation is running php as fastcgi, and the virtual
hosts are pointing to /home/*/public_html.
and the fastcgi are home/*/cgi-bin/php.fcgi
the public_html setup with selinux was:
/usr/sbin/setsebool -P httpd_enable_homedirs 1
chcon -R -t httpd_sys_content_t /home/someuser/public_html
The owner and group are the user, for example the user "someuser":
ls -all /home/someuser/
I have a CentOS 6.3 installed with httpd running and vsftpd but I am unable to balance permission between the user able to upload over ftp and their website working.
What I do:
I create a user with their home directory as `/home/username`
I create a sub folder called `html` for their website
I chown their directory `chown -R username:apache /home/username`
I chmod their directory `chmod -R 750
I am using centos 5.7 with cPanel WHM running fastcgi/suEXEC
I am trying to make a particular folder writable to allow a script to upload files but seem to be having problems.
The folder (and all recursive folders) I want to be writable is:
/home/mydomain/public_html/uploads
And I want only scripts run by the user "songbanc" to be able to write to this directory.
I have tried the following:
I have a CentOS 6.3 installed with httpd running and vsftpd but I am unable to balance permission between the user able to upload over ftp and their website working.
What I do:
I create a user with their home directory as `/home/username`
I create a sub folder called `html` for their website
I chown their directory `chown -R username:apache /home/username`
I chmod their directory `chmod -R 750
I have my root user and another user testuser. Now in the .bashrc of testuser, there are some aliases like la for ls -a. But when I login to testuser and try running la, it gives me the error:
-sh: la: not found
Even when I try to find $HOME, it says Permission denied (?)
This is slowing down my work!! Help!
I have an account on a hosted webserver, where I have SSH access.
Files put in /home/sandra/public_html are online.
DokuWiki recommends that the data and conf directory is not in Document Root, so I have moved them to /home/sandra/data/ and /home/sandra/conf.
The problem is, that apache can't write to these directories.
Ownership of /home/sandra/ is sandra.sandra.
Question
Are there other so