Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
1
vote
2 answers

/var/mail Folder Permission (Setup Mail Server with Dovecot)

I am following a guide to setup a mail server and accounts on a Debian 7 OS and they ask to set up a folder permissions to match this: drwxrwsr-x 3 root vmail 4096 Jan 24 21:23 /var/mail But my server shows it like this: drwxrwsrwt 2 root mail…
Jack
  • 161
  • 2
  • 9
1
vote
1 answer

How do I chmod ACLs to groups with spaces in the name on Mac OS X?

I'm trying to add an ACL for the group "Domain Users", but since it has spaces in the group name it isn't parsed correctly by chmod: $ chmod -R +a 'DOMAIN\Domain Users allow…
MagerValp
  • 311
  • 1
  • 3
  • 9
1
vote
1 answer

Different permissions for different groups on one folder in OpenBSD?

Is it possible to have filesystem permission ACL's (or similar) in OpenBSD? I'm trying to make a folder where one group has read-write access while a different group has read-only access. I don't want to give world read access, and I don't want to…
ibrewster
  • 387
  • 1
  • 4
  • 16
1
vote
1 answer

Permission denied on owned file

I'm having issues setting permissions for a specific user. I have a directory /srv/git/ in which I'm trying to create a sub-directory test containing one file testfile (owned by www:www-data). testfile should only readable and writable by user and…
Bart Platak
  • 125
  • 1
  • 6
1
vote
1 answer

allowing php/apache to delete files in an ftp directory and subfolders

Basically, I am having an issue with a php script being able to move or delete files, and I know it has to do with permissions since that's what the php error from unlink() is telling me, but I'm not sure how to fix it. So I'm hoping if I explain…
slinkhi
  • 113
  • 5
1
vote
2 answers

Enable apache to create directory/files

I want to enable apache to automatically create files/directories. In some web hosts, for example, when I install wordpress, apache is able to automatically createwp-config.php file. But In my VPS, I have to manually create wp-config.php file. I…
ComMania
  • 61
  • 2
  • 7
1
vote
0 answers

Weird permissions getting set on directories after rsync

I've got a drive on a Mac (OSX 10.7.5) that I'm sharing on the LAN. In the system preferences, the share is set so System Administrator has Read & Write access, System Group has Read Only, and Everyone has Read Only. The files in the shared folder…
Betty Crokker
  • 231
  • 1
  • 4
  • 10
1
vote
1 answer

How To Block FTP Users From Changing File Permissions

I have been tasked with trying to reproduce an issue one of our developers is running into. On certain FTP servers, the FTP library he is using (Starksoft/Biko) returns a "530: Not Logged In" error. But, if we connect manually to these servers we…
1
vote
2 answers

I'd like all files created in a specific directory to automatically get 755 permissions, is that possible?

The relevant folder is over-written every couple of days but I want it's content to retain the 755 permissions. I've tried chmod g+s dir but to no avail. Is that even possible?
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
1
vote
1 answer

/var/run/saslauthd changing permissions on restart

On saslsauthd restart I keep getting following permissions on /var/run/saslauthd dir: drwx--x--- This makes e.g. Exim unable to talk to saslauthd. If I change permissions like this: chmod o+x /var/run/saslauthd ..Exim can talk to saslauthd again.…
LetMeSOThat4U
  • 1,371
  • 2
  • 17
  • 35
1
vote
2 answers

Best way to recover mysql from a "chmod -R 777 /" with databases intact

Question: What is the best way to recover mysql (or worst case: migrate away) from a "chmod -R 777 /" with databases intact? System: Ubuntu 12.04 LTS MySQL 5.5.24 64 bit Amazon EC2 cloud server. Background: Attempting to recover (or at least recover…
robertb556
  • 13
  • 1
  • 1
  • 3
1
vote
1 answer

Git prime/hub website deployment: documentroot changes save fine but permission denied for subdirectories

Following the instructions in A web-focused Git workflow I set up a prime and hub repository on my web server and then cloned the hub to my machine at home. I started testing commits and pushes with changed files in documentroot and the changes…
Ian
  • 251
  • 2
  • 10
1
vote
0 answers

CHMOD permission denied on SMB share

I'm mounting an SMB/CIFS share on my CentOS 6.4 server using /etc/fstab as follows: Mount windows share to /mnt/mywebsite //10.1.1.4/mywebsite /mnt/mywebsite cifs username=httpd,password=topsecret,uid=apache,gid=apache 0 0 I then issue…
Brad
  • 619
  • 1
  • 10
  • 28
1
vote
1 answer

Chmod operation not permitted?

I'm trying to deploy a rails app and i've done it before, but this time i'm having a weird issue. Why can i not run this chmod command? I'm currently logged in as user: csmsched -bash-3.2$ pwd /var/www/vhosts/mysite.com/staging -bash-3.2$ ls…
Catfish
  • 237
  • 2
  • 11
1
vote
2 answers

List all folders that have permissions of 777

Is there any way to list all the folders that have permissions of 777?
Anselme
  • 123
  • 5