file/directory permission centos 6.2 - centos

On Centos6.2 I am trying to get mod_wsgi (with Django) running. I serve two sites from one directory, and on Centos 5.2 everything works fine. In the logs I got "access denied errors" for the second domain.
To find out were the problem is I created a test directory in the home dir of user A with permission 777, and tried to access this as user B. On Centos 5.2 I can access the test directory, in Centos 6.2 not.
My first thought was that Selinux was active, but Selinux is disabled.
[root#server sysconfig]# sestatus
SELinux status: disabled
Any idea?

New directories in the home directory are created with permission 710. In the old Centos they were created with 711. Changing a directory to 711 does the trick.

Related

Linphonec on RaspberryPi: how to solve "bctbx-error-bctbx_file_open (Permission denied)"

In my setting I want the user www-data to be able to run linphonec, but there's one error in my way, that I don't know how to handle so far.
When starting linphonec as user www-data:
sudo -u www-data /usr/bin/linphonec
I get the error:
bctbx-error-bctbx_file_open: Error open Permission denied
Where do I have to give permission to user www-data for this to work?
When running it as root there's no problem but I don't want to give www-data root rights.
My setting is:
RaspberryPi 3/4,
with newest Raspian OS,
newest version of "linphonec-cli" installed
raspbi is only accessible in local network and router blocks outgoing calls from it to prevent missuse.
After checking with strace I realized thet the issue must be somewhere else, since I couldn't find a single EACCES error in the strace log.
The root of the error was in my basic configurations file (linphonerc) that I copied over from another existing user. I changed the root_ca directory (after copying the files to the new location and changing rw-rights and ownership). After that linphonec runs without the error when starting with -c parameter and path to linphonerc file.
So the reason was most likely that wrong/unreachable root_ca= configuration.

fail2ban and owncloud.log file

I am using the following configuration, ubuntu 16.04 apache2 php 7.0 owncloud 10.0.3. I think I have made an error when I setup ownclound. The data directory lives in /var/www/owncloud/data ( I believe that owncloud.log resides in this folder). I have deployed fail2ban and the issue that I am having is that fail2ban cannot access the data folder because I ran sudo chown -R www-data:www-data /var/www/owncloud/. The only way I access the log file is through the OWNcloud gui settings > general > log. where I can see the failed login attempts by me. I cannot seem to get Fail2ban to read the owncloud log.
I am new to ubuntu and Owncloud can anyone advise how to rectify this issue, owncloud is working fine and I am using ip addresses to restrict access to owncloud. Fail2ban was supposed to make the server secure so that I could open up owncloud to the internet.
Regards
Steve
You should change the permissions of the log file so that it can be read by everyone but written only by the php process. Do a 'chmod 755 /var/log/owncloud/owncloud.log'
By the way. I suggest that you migrate from Owncloud to Nextcloud. It is a full replacement, fully open source, more features and more secure. And it has a fail2ban equivalent brute force protection already build in :-)

Permission problems with Drupal directory

I really suck at permissions. I recently installed Drupal on my Ubuntu server and it was working like a charm. Suddenly it got stuck, and I got
There's no internet connection
error on Google Chrome and
Server not found error
on Firefox. However my Apache is still working.
My Drupal is located at /var/www/html/drupal test. However when I type cd drupaltest I got a permission denied error. I changed the permission with:
sudo chmod 660 drupaltest
After that I could get into that directory, but not any directory inside. I am constantly getting permission denied error. I tried adding the -R option, drupaltest/*, and even giving 770. The owner is my current user on the machine, but I still have no idea why I can't access the subdirectories.
Try chown -R owner:group /dirname

Solr 5.2.1 Access denied when trying to startup through powershell

I have Solr version 5.2.1 normally it starts up fine with no issues, this morning I attempted to start Solr and I got the following issue:
Starting Solr on port 8983 from C:\solr-5.2.1\solr-5.2.1\solr-5.2.1\server
Access is denied.
Access is denied.
Direct your Web browser to http://localhost:8983/solr to visit the Solr Admin UI
I restarted the computer yet I still get this access denied issue, which I have not encountered before does anyone have the insight into why this is happening? Thanks
The issue was that full control windows permissions were required to be set for the directory Solr was in.
Just update java version to java 8
Run command:
sudo bin/solr start
For example:
Vostro-3550:/opt/solr-6.0.0$ sudo bin/solr start
Then Open Browser and the past:
http://localhost:8983/solr/

Sinatra app being run by user 'nobody' in shared folder on VM

I have a folder on my host OS (Windows 8.1) which is set up as a shared folder with VirtualBox (running Ubuntu 14.04 Server). The shared folder is set up correctly, but is giving me problems regarding permissions when I try to run apps which are inside of it.
All the files in the shared folder are owned by root and the group vboxsf. I have added my current user and the Apache user to the vboxsf group using the following commands:
sudo adduser cornflakes24 vboxsf
sudo adduser www-data vboxsf
However, when I visit my web browser to test the app, I am greeted with the following error:
This web application process is being run as user 'nobody' and group
'nogroup' and must be able to access its application root directory
'/var/www/html/webdev/ruby'. However, the parent directory
'/var/www/html/webdev' has wrong permissions, thereby preventing this
process from accessing its application root directory. Please fix the
permissions of the directory '/var/www/html/webdev' first.
The webdev folder in reference above is actually a symlink:
lrwxrwxrwx cornflakes24 www-data webdev -> /media/sf_webdev.
How can I get around this?