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/
Hi,
I am currently setting up an environment where users in groups can edit files around the /home directory depending on their group permissions.
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:
This is in a continuation of question here
I run this command as root user
chown someuser:someuser /mnt/my-address
and then
# ls -l /mnt/my-address
response is
total 16
drwx------ 2 root root 16384 Aug 16 11:04 lost+found
but when i do
stat /mnt/my-address
and response is
File: `/mnt/my-address'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: ca51h/51793
Hi,
I have recently configured my new WHM 'VPS optimised 3' and am trying to figure out how to specify which directory an accounts ftp connection defaults to.
Currently when an account user ftp's into their root they are automatically taken to the 'public_html' directory and are unable to go a level up to their home directory.
Right now when I create a new account the system generates a /home/{accountName}/public_html and associated folders.
Is there a way I can have the system create /home/{accountName}/{initialDomain}/www/public_html instead?
And as a followup any new domains created under that account, have it create /home/{accountName}/{newdomain}/www/public_html.
What got me started on all this is that I'd
Just changed from dso to suphp... changed all folders to 755 and all files to 644.
Now, even though it appears my ownership for files is correct user:nobody for public_html and user:user for all contents of it (has always been that way so not sure why other people are differnt)... I still want to chown to make sure.
I have a new installation of Ubuntu 12.04 and I want to have 2 or more users be able to test with apache/php/mysql.
Within default config at sites-available I added two different VirtualHosts, one for each user lets say : /home/user1/public_html and /home/user2/public_html
Now I can view the index.php from the user1 at localhost/index.php but I can't do the same for user2.
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.