0
votes
1answer
26 views

Using sudo in a Git hook to set permissions after deploy

I run a few sites on Ubuntu and I'm setting up a new deploy worflow as follows (the example uses the staging environment): On my dev machine, I do git push staging which pushes to a bare repository ...
0
votes
0answers
17 views

Can't change files with Transmit through SFTP. Wrong permissions

I'm having an Ubuntu Server installation. In a folder deployed a wordpress installation and because of the file uploads, plugin updates etc I chowned the entire folder and its subdirectories to ...
-2
votes
1answer
51 views

Ubuntu Server running Plesk subversion command only accessible to root user

I have a VPS through myhosting.com the VPS is running Ubuntu 12.04.5 LTS with Plesk 12.x when I log into my VPS with the root user and do svn help I get the standard reply telling me the basics of the ...
0
votes
2answers
74 views

How can I set the default permissions for files uploaded by apache2?

When I upload files through php, it writes the file with the permissions 644 (-rw-r--r--). I have my /var/www/html folder setup with setgid, so that all files uploaded are set to a group that should ...
0
votes
1answer
172 views

Why is /usr/bin/env permission denied to rails server?

I've just set up rails on an apache server running on Ubuntu, and when I try to go to the root page it gives this error: An error occurred while starting up the preloader. It exited before signalling ...
3
votes
2answers
968 views

Why would chmod give “No such file or directory” when running recursively?

I can change the permissions of the file directly: # chmod --changes --recursive ug+rwX /var/www/shared/tmp/cache/assets/BA0/280/sprockets%2F286302903364106648b609d708884f78 and I can also ...
2
votes
1answer
962 views

Can't FTP to /var/www/html on Ubuntu (groups set…)

So I'm having some issues with vsftpd. I need the webroot to be in /var/www/public because I have multiple users accessing it, so I can't put it in a users directory. Now that directory has "chown -R ...
0
votes
0answers
106 views

Creating SFTP Users chrootdirectory /var/www

I am trying to create a new sftp user in Ubuntu 12.04.4 and am running into some trouble. After creating the first sftp user, I document the commands for later user and then delete the user and try ...
3
votes
2answers
310 views

Prevent the possiblity of writing data to an unmounted mount point directory [duplicate]

I have an Ubuntu server where I'm automounting an external hard drive each boot. To do this, I've created an empty folder on the root partition, and the drive gets mounted "inside" this folder. ...
0
votes
0answers
339 views

svn: E175013: Unable to connect to a repository at URL

I'm trying to get xbt-tracker from googlecode.com/svn but for some reason I get the following: svn co http://xbt.googlecode.com/svn/trunk/xbt/misc xbt/misc svn: E175013: Unable to connect to a ...
0
votes
0answers
28 views

Scripts not running as www-data on Ubuntu Server

I have a dedicated server running Ubuntu 10.04 LTS. Every other apache setup I've used defaults to running scripts as www-data. This one, however, is running everything as my username on the server ...
0
votes
1answer
73 views

How can I change the Postgres data_directory folder location?

I use Ubuntu 12.04, postgresql 9,1 postgis 1.5. I want to change database location. I use instruction http://www.whiteboardcoder.com/2012/04/change-postgres-datadirectory-folder.html The only ...
0
votes
1answer
100 views

have changed a folder to www-data, but apache is still not able to create file on it

I have several folder that I use for uploading file from PHP. I have change the group permission of this folder to www-data ( a group that apache2 also shares ). but somehow I am still not able to ...
6
votes
2answers
2k views

Logstash can't read files it should have access too

I've added user logstash into group adm using the command $ usermod -a -G adm logstash. One of the files that the logstash agent is trying to read is /var/log/nginx/foo-access.log, which has the ...
1
vote
3answers
789 views

Using a non-root to deploy a git repo to the web root

What is the best way to set up users and permissions for a production web server that uses git to deploy to the server? Background Running Ubuntu 12.04, I have apache severing files under /var/www ...
0
votes
1answer
748 views

Javascript 404 not found, but PHP and CSS loading

I've got a Ubuntu 10.04.4 LTS cloud server running the default LAMP stack. My website is serving my PHP pages, the images and CSS to go with them, and most of my JS is loading, but there is a ...
0
votes
0answers
97 views

What's the right way to create a Ubuntu user whose home directory is /var/www/SITE?

First of, I need to state I'm a complete ignorant when it comes to server administration on Ubuntu, and I'm doing what I can. I have been trying to do this for hours with no luck. Basically, I want ...
0
votes
1answer
34 views

Apache2 Ubuntu File Permissions

With a fresh Ubuntu LAMP stack, I'm wondering why Apache serves up a Forbidden: Permission Denied error for my site. Apache2 was setup with the default user/group www-data. It's document root is ...
2
votes
2answers
3k views

Where is the runuser command on Ubuntu Server?

When I type in my console "runuser", I am getting "command not found". I though this command was pretty standard, but I cannot find it on my system. I am on the root user but I do not have the ...
0
votes
4answers
365 views

Apache taking ownership of file and folder

I have django site running on Ubuntu with apache2 configured with mod_wsgi. The media (folder where user uploaded files go) is owned by ubuntu user (with sudo access) and the group of media folder is ...
2
votes
2answers
155 views

/proc/net/tcp cannot be read

As root: root@xxxx:~# ls -l /proc/net/tcp -r--r--r-- 1 root root 0 Jun 4 17:19 /proc/net/tcp As a normal user: production@xxxx:~$ ls -l /proc/net/tcp ls: cannot access /proc/net/tcp: No such file ...
-3
votes
1answer
103 views

Automatic configure permission of file to 777 after uploaded [closed]

I have my own server. When client uploaded a file to my server through FTP, the permission of the file uploaded is 755. It means if client uploaded a file to my server, client cannot modify the file ...
0
votes
0answers
219 views

Problems running screen without root permissions

I'm running Ubuntu 11.10 on a VPS and have problems running screen for non root users. Screen is working fine with root though. When I run it as root and hit "tty" I receive the following output: ...
0
votes
1answer
65 views

Secure way to have a user that can move and change files in a FTP folder structure?

We have an FTP where customers can drop their files. We want to run a script that sweeps the files out of the folders every 15 minutes. The current permission and folder structure looks like this: ...
1
vote
1answer
103 views

Ubuntu Samba share not writable by Apache on another machine

I have a basic shared folder on a ubuntu desktop (VM) that I want everyone to have 100% read/write to it. I can set this up, and use a mac to connect and mount the folder but logging in as the ubuntu ...
0
votes
1answer
184 views

How to add write permissions to php/apache? [duplicate]

I've got the following scenario: There's a folder named "uploads". It's owned by "root" and it's group is "webmasters". Permissions are set to 755. drwxrwsr-x 2 root webmasters 4096 Mar 20 22:49 ...
0
votes
3answers
831 views

How to set acl on my fstab file?

I would like to enable acl on my remote server. So I type the following command df to know on which partition I am : Here is the result : Filesystem 1K-blocks Used Available Use% Mounted on ...
0
votes
1answer
714 views

How to give the Apache group write access to log files, and an FTP user read-only access

Ubuntu 11.10 server I have a user bob who's home directory is /home/sites/bob. In that there are directories public_html and logs. Apache runs under the www-data user. bob's primary group is ...
0
votes
1answer
200 views

Ubuntu LAMP Permissions

I just installed Ubuntu Server 12.10 and I selected the LAMP, OpenSSH and mail server packages during the install. The only other thing I've done is install nmap via apt-get. I can SFTP to my server ...
0
votes
3answers
132 views

Bulk change of ownership

I recently migrated a server to another machine in our rack. They ownership/permissions didn't transfer when I moved /home from machine1 to /home on machine2 (both Ubuntu machines) The user accounts ...
0
votes
2answers
345 views

Apache per user permissions

Ok so I looked at a number of resources, per Google, and questions on here an none seem to be what I require. I come from a Windows IIS background so maybe my thought process is flawed and that ...
0
votes
1answer
88 views

Can't access directory of another user after giving equivalent access to both

I've edited the /etc/sudoers file through visudo and added www-data ALL=(git) NOPASSWD: ALL git ALL=(www-data) NOPASSWD: ALL so now the user "git" should be able to ...
0
votes
1answer
122 views

New EC2 ubuntu user file permissions

Hi I've just set up a new EC2 ubuntu server at AWS yay. Im logged in as ubuntu@mydomain.com first I installed mysql, php5 and apache2, no problem. now I want to edit my ...
-2
votes
3answers
72 views

how to change directory permissions

i want every directory permission set to 755. So i want to change any directories having permission other 755 to 755. How can i change this without even touching the directories which is already set ...
0
votes
1answer
155 views

Write permissions of www-data user and public key issue

I am using Ubuntu and I am having the following problem. I am using a PHP function called exec to get the latest git changes from my remote repo. E.g.: exec("git pull");. The file is placed in ...
0
votes
1answer
607 views

Ubuntu: Postfix, maps permissions?

I just loaded up Postfix on Ubuntu 12.04 (following several guides), and most said to change the file permissions in the /etc/postfix/maps (user.cf, alias.cf, domain.cf) to 700 and owned by the ...
0
votes
1answer
240 views

“Target the specific user you will be using and assign it user id 0/group 0”

I am trying to virtualize an Ubuntu machine using VMWare vCenter Converter, but ran into permissions issues. I followed the instructions of part 1 and 2 on this page but when I got to "For Ubuntu ...
0
votes
1answer
392 views

Cant access folder on server- Permission denied

I am running a vps with ubuntu 11.04. After a clean Modx install I've tried to access http://www.encepence.pl/manager and I've got a permission denied by my server. the thing is that I can easily ...
1
vote
1answer
644 views

Unable to use images outside of images/logos/base for my Nagios map due to permissions

I am using hostextinfo statements in order to display icons in my map. For example: define hostextinfo { hostgroup_name apple-devices icon_image base/apple.png icon_image_alt Apple ...
0
votes
1answer
49 views

change Ubuntu folder permissions for short periods of time

I'm building a site using the Yii framework. It's hosted on Ubuntu and I'm developing on Windows. When I upload changes to the live site (via filezilla), I need to change permissions on folders or ...
3
votes
1answer
361 views

Permission Mystery - apt-get and other system utilities have 000 permissions

I'm trying to track down this strange behavoir for years now. Always after installing software-updates the permissions of a lot of system-tools are broken as you can see below. I am reasonable ...
2
votes
1answer
1k views

fopen: failed to open stream: Permission denied on directory with 755

I am getting the error fopen(/var/www/photos/testphoto.jpg): failed to open stream: Permission denied when PHP is attempting to write a file to /var/www/photos, whose directory permissions are ...
0
votes
1answer
922 views

“Permissions denied” after moving to a new server

We have moved our website to a new server (Ubuntu 12.04 LTS) which I had set up with ISPConfig 3. The Problem: Everything works fine, but PHP gives me a "failed to open stream: Permission ...
0
votes
2answers
335 views

Folder permissions keep changing from www-data to root

A folder under the directory /var/www/xml keeps changing permission from www-data toroot, meaning that no php file is able to write into the folder. I think this happens when I restart the server. ...
0
votes
2answers
620 views

Change file permission from -rwxrwxr-x to drwxrwxr-x

I have a php file which is trying to read and write xml files on my Ubuntu server, however the problem is that it does not have permission to do this (permission denied error). I have tried the ...
1
vote
0answers
284 views

SFTP connection to Windows Azure virtual machine permissions issue

I've set up an Ubuntu 12.04 VM on the Windows Azure cloud. I can connect to it using WinSCP, but I can only alter files in the user directory (/home/myuser). Which really beats the prupose because I ...
2
votes
2answers
662 views

Apache write permission in public_html?

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 ...
0
votes
1answer
1k views

Could not chdir to home directory /opt/scm: Permission denied

I'm trying to set up a simple repository host on my linux server under "/opt/scm", but I'm getting this error when attempting to SSH in as my scm user. Could not chdir to home directory /opt/scm: ...
0
votes
1answer
756 views

Cannot write file with apache despite 777 permissions on Directory

I did a clean install of Ubuntu 12.04 and then added a php script that was working fine on Ubuntu 10.04. The script writes a new file to a directory. The Directory is owned by www-data:www:data and ...
1
vote
3answers
153 views

Granting PHP permission to send/receive requests

I've written a PHP websockets server based on this library: https://github.com/Flynsarmy/PHPWebSocket-Chat This library operates as a server, and handles all incoming requests. The client can ...