0
votes
2answers
35 views

Give Apache Permission to Serve Files Outside of /var/www

I have my apache server and its specific files in /var/www and I have a bunch of group documents that I want to serve out in another directory /company/shared_files. I wrote and alias and it seems ...
0
votes
2answers
29 views

Allow mysql user to be used just by specified user

Currently any system user can run: systemuser$ mysql -u mysqluser -p (assuming he knows the password). Is there a way to deny mysql (cli) to use particular mysql user? eg. systemuser$ mysql ...
0
votes
1answer
16 views

Allow user to execute “repquota -g /”

I need to allow an user to execute "repquota -g /" from a script without superuser permissions on debian Wheezy. I would not allow all superuser permissions to the user (in my case it is the www-data ...
0
votes
1answer
112 views

Change permission for home directory on debian [duplicate]

My Debian machine is running DirectAdmin and we have build our own CMS. By now, when we create a new website a new folder and user will created down the /home/ directory. As an developer to setup ...
1
vote
1answer
117 views

Correct Permissions VPS /var/www

This is a repost of an "off-topic" question on stackoverflow. My scenario is: I created a user and added that user to sudoers: visudo user ALL=(ALL) ALL Then sudo adduser user www-data and ...
0
votes
1answer
37 views

Recursively gave sudo group to all files in var

On a Debian server, in a hastened move, we changed the permissions of the /var directory recursively so that sudo was the associated group, and with write privileges, with these commands: chgrp -R ...
1
vote
0answers
83 views

What are recommended permissions for files in /var/log?

I am working on tightening the security for various servers (mainly Debian Linux), and one of the tasks is to tighten permissions on files in /var/log so that files are not world readable. But there ...
0
votes
1answer
385 views

difference between /bin/sh and /bin/bash(chrooted)

I am stuck in this issue: I have a new server which i access thru ssh, using PuTTy. In Configuration, i need to select which ssh shell i need in order to access the server with ssh. choices: ...
1
vote
1answer
650 views

'Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0' after uploading file to FTP

Every time I edit a file (in this case a PHP file) and upload it via FTP to my VPS, via the user 'xtreme', the file, when accessed, outputs the following: Warning: Unknown: failed to open stream: ...
0
votes
1answer
1k views

Apache gives 403: Forbidden despite permissions (seemingly) being correct

I'm running Apache as www-data, I have chown'd /usr/local/apache/htdocs (the document root) to this user + it's group, yet when I try to visit it, Apache gives me a 403. Is there anything I'm missing ...
0
votes
1answer
503 views

Best way to set up permissions with nginx + php-fpm on shared hosting?

I'm running a shared hosting server with nginx and php-fpm on Debian. Everything works fine, php-fpm has separate pools for each users running as separate users and they each have their own socks. ...
0
votes
2answers
72 views

Samba - Two users for different access

I have three harddrives and I want to have two permission groups: Group1: ShareDrive: Read / Write permission TVDrive: Read permission Personal drive: No Read / Write permission (ideally they can't ...
1
vote
1answer
408 views

Debian USER with read/write permissions for www

I have a Debian Squeeze server with an EasySCP admin panel. This panel set domain folders in /var/www/virtual/domain.name Every domain has a unique ID of vu2000, vu2001... Ownership of the files ...
1
vote
1answer
195 views

Proper way to set default permissions

I have Debian Squeeze server with set of users. All users must be able to work with shared files. So what I did is to set to all of these users same main group (e.g. editors) Then put files into ...
0
votes
1answer
292 views

MYSQL Permission: Access denied for user 'debian-sys-maint'@'localhost

Got a problem with a mysql server installation on Debian. (Not my server so I have no idea what caused this...) Installing new applications that add a database fail with error: ERROR 1045 (28000): ...
0
votes
1answer
579 views

proftpd on debian: super user and simple users with their folder

hi there sorry for my english im italian. Here is what i would like to do with proftpd i have a main user: webserver group: www-data must do anything in var/www/ and subfolders ( it actually works ) ...
0
votes
1answer
456 views

Rails /tmp/cache/assets permissions issue using Debian virtual machine hosted on OS X Lion

I am running Parallels Desktop 7 on OS X Lion. I have a VM with Debian installed, and inside that VM I setup a Rails development environment. I am using Parallels Tools to share out my OS X home ...
2
votes
2answers
42 views

How can I serve from apache several projects and disallow that users project from reading other's project?

Let's explain that mess, I have some projects in one server under debian 6, each one located at their respective /home/USER with it's respective user. I want the users that login as "project1" not ...
2
votes
1answer
2k views

Which permission is needed to open a TCP server socket on Linux?

I want to start a websocket server, but can't connect to it from other machines. Only when I start the websocket server with root permissions it works. So this seems to be an permission Problem. ...
7
votes
1answer
585 views

Do /usr/local and /usr/local/bin need to be group-writable? If so, why?

While it's possible that it's a fluke of a package I installed or the VPS image, it appears that /usr/local and /usr/local/bin (both of which are owned by root:staff) are group-writable by default on ...
2
votes
1answer
513 views

Grant password-less permission for specific script as specific user with sudo

I have a server running Debian Squeeze with the latest updates. I tried to set up the sudoers file to allow the user www-data execution of a specific shell-script as a specific user. I used visudo for ...
0
votes
3answers
630 views

Default File Permissions (Debian/Ubuntu)

I have files in /var/www that I've set permissions as follows: user:www-data chmod 755 How can I set it so all subsequent files uploaded (via SFTP) have those same permissions and I don't have to ...
0
votes
2answers
558 views

Debian add user permission

I'm giving my friend a host on my dedicated server. I created a new user for him: Debian server. adduser friend Adding user `friend' ... Adding new group `friend' (1000) ... Adding new user ...
0
votes
2answers
631 views

How can I remove a directory that I own when it contains subdirectories owned by another user?

I have created a directory /home/web/test on a Debian server using a basic unprivileged account web. Another account — tomcat — then created some subdirectories and files in that folder (as you might ...
0
votes
3answers
973 views

Starting daemons as www-data

Is there a good was to start daemons as normal user? I would like to place a little script on my homeserver to start und stop services like proftpd, mysql and samba. I tried it like this, but had no ...
1
vote
3answers
4k views

Write permissions on uploaded files - Linux, Apache, PHP

I am working on a PHP script that transfers files using FTP functions. It has always worked on my production server (which is a hosting service). The development server I have just setup (I am a ...
0
votes
3answers
2k views

Permission problems of mysql under Debian

After having had my huge hard drive crash (which was related to a LVM update of Debian, not the hardware) I am facing the next problem: I try to reinstall mysql after that crash and did a dpkg ...
1
vote
4answers
954 views

Access Control Lists in Debian Lenny

So, for my clients to who have sites hosted on my server, I create user accounts, with standard home folders inside /home. I setup an SSH jail for all the collective users, because I really am ...
3
votes
3answers
2k views

Backup data while keeping POSIX ACLs and permissions

I'm looking for a practical way to backup data from a server and keep all ACLs and permissions. I've looked at tar, but according to Google tar doesn't keep ACLs . I know rsync can keep ACLs and ...