Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
0
votes
1 answer

ubuntu, folder perms, drwxrwx---, php user in group, can't create file

i'm stuck & need help understanding file create permission for members of group. in php, i want to fopen / create a file in a folder that is owned by mysql:mysql (for importing data into mysql) folder -ld drwxrwx--- 2 mysql mysql 4096 Dec 14…
Steve Wasiura
  • 141
  • 1
  • 9
0
votes
1 answer

Php can't write anything

Just moved my websites to my first vps (centos 7). So i'm very new to linux. Now I have a problem: php cant write anything. Can't make dirs, files, edit them. Php runs as "apache" Things I tried: Chmod all dirs and files to 777 Chown all dirs and…
0
votes
1 answer

Permission denied for user in www-data group

I have a development server running wordpress. The wordpress files are owned by www-data:www-data. I wanted a quick way to be able to upload so I added my user to the www-data group and then did a chmod 775 -R for the plugins and themes folder. I…
Guerrilla
  • 243
  • 7
  • 18
0
votes
1 answer

WordPress can't install plugin even file permission is correct

I have apache2 server, of course apache2 is running on www-data account. All my WordPress files is own by root:webmaster, and have the g+w permission. Three of the accounts in webmaster group are www-data, sftp_www, and root itself. The permission…
srakrn
  • 143
  • 1
  • 1
  • 5
0
votes
1 answer

Default mode parameters affecting ACL permissions

I have just started working as sysadmin and encountered my first problem. What I am trying to do is set permissions of a directory so that all the subdirectories and files in the directory AND newly created files can be used only by groups and…
puding_
  • 3
  • 3
0
votes
1 answer

Ineffective permissions in Linux containers

When setting up and running a Docker instance, upon boot nginx gives a 403 Forbidden upon accessing static files. In the Dockerfile, I use the COPY command to move all the files to /var/www/app, then I use the RUN command to chmod the static…
spble
  • 1
0
votes
2 answers

why can't I ssh into my aws ec2 instance? Permission denied (publickey)

I created two ec2 instances, and was able to ssh into the first two fine. After creating the third, I get this error upon trying to ssh into any of them. This is what I'm running: ssh -v -i /Users/name/meteor.pem ubuntu@52.27.126.### To get: …
0
votes
1 answer

Prevent changing ownership of a file

I have file with 777 permission. How can I prevent changing ownership of that file by others? ie I need to prevent chown x:y myfile myfile is actually a log file written from web. it's ownership is www-data.
Harikrishnan
  • 1,159
  • 2
  • 14
  • 32
0
votes
1 answer

SSH and many other programs are not working after chmod -r 755 /etc

I have a new web-admin and he mistakenly ran chmod -r 755 /etc to try and disallow our shell users from reading any other files. As a result, SSH on our server does not work. How can we fix this?
arestifo
  • 11
  • 1
0
votes
0 answers

Protect web directories from other SSH users but allow apache access?

So my linux box has 2 users : root (which I use) dev (the user that my developer uses) I have a few directories on my web server which I need to restrict access from the "dev" user. So, for example : /var/www/html/www.mysecuresite.com (dev user…
YD8877
  • 325
  • 1
  • 5
  • 11
0
votes
3 answers

CHMOD to make directory writable by group not working

I'm trying to make the node_modules directory writable by www-group, but chmod isn't working. vagrant (user) is part of the www-data group as seen with the groups command. Why can't I permit www-data (group) write permissions to this…
Jack
  • 11
  • 1
  • 2
0
votes
1 answer

Local "incoming" dir

I need to create a directory on a Linux server where users can "submit" files, similar to the incoming directory on an ftp server. (Where they would not be viewable after submission.) Specifically, this is Fedora 20, though I'm hoping for a solution…
Joe Fruchey
  • 101
  • 1
0
votes
2 answers

Stop file being deleted on NFS mount

I have files stored on an NFS mount which I want to prevent being deleted. The use case is I have a demo version of a web application which uses the same images on every demo - when someone deletes a record it deletes the associated images, files…
bhttoan
  • 650
  • 3
  • 15
  • 27
0
votes
1 answer

Wordpress can't write on file

I've a problem with permissions/users on my new server. I moved my wordpress blog to a new CentOs server. In this server I've been provided with an ftp user. If I upload a file via FTP with this users, as expected the owner is this user, and the…
testermaster
  • 121
  • 1
  • 7
0
votes
2 answers

Apache2.4 and Php-cgi : which chmod for log file?

I'm using a Php lib (Monolog) to create my logs. When I delete my log file and access my website in order to generate logs, I see the file created into the good log directory: -rw-r--r-- 1 apache apache 0 Nov 21 15:22 portal.log But it's always…
Fractaliste
  • 151
  • 1
  • 6