Questions tagged [chmod]

A Unix tool for changing file permissions

248 questions
1
vote
1 answer

Permissions to use for Wordpress on Ubuntu with Webmin

What are the best permissions for a Wordpess install on Ubuntu managed by Webmin? Currently, root owns all the files and all of the files are also set to the root group. I'm using the virtual server GUI on Webmin to manage multiple virtual sites…
user65712
  • 387
  • 1
  • 8
  • 17
1
vote
1 answer

Made a mess of privileges for /var/www

I've got an installation of Ubuntu 10.10 running in virtualBox which I'm going to use for some local development. I've installed PHP, Apache and MySQL and want to use vsftpd to access /var/www so I can develop on my Windows installation (from which…
james246
  • 141
  • 2
1
vote
1 answer

What should be the directory mode for /var/www/html folder?

I am having trouble uploading files to my /var/www/html folder. This is the current mode: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.). I logged in as "user", what mod should…
yoko
  • 13
  • 1
  • 5
1
vote
2 answers

chmod a folder permanently

kind of a newbie to server stuff. I am running a centOS setup with whoosh search engine for my django app. Everytime I restart or rebuild my index i get a warning that states IOError: The path to your Whoosh index '/www/test/mysite_index' is not…
ApPeL
  • 141
  • 4
1
vote
0 answers

Lighttpd 403 Errors on HTML and PHP pages

I installed lighttpd on CentOS 5.5 64-bit. Everything seems fine and running except I cannot get past 403 errors on both HTML and PHP pages. I have used CHMOD and CHOWN, changed ownership in the config file, done everything possible and have been…
Brian
  • 11
  • 1
  • 3
1
vote
2 answers

revert chmod 777 / -R

while executing a command i made a mistake and executed (ubuntu 10) sudo chmod 777 / -R # okay you may laugh now all my filesystem has 777 permitions , obviously i dont know which where the permitions for every folder and file in my…
user70247
  • 125
  • 2
  • 5
1
vote
2 answers

Every file in a specific folder always 777?

I want to create a folder that is accessable via FTP on an Ubuntu Box. There are four users that are allowed to connect via FTP and I want them to be able to share files without restrictions. Is it possible to change every file to chmod 777 at the…
Grokla
  • 13
  • 1
  • 3
1
vote
2 answers

Lost Permission on Files using wrong chmod syntax Centos 5.5

I was trying to remove write permissions on an entire directory, and I used the incorrect command: chmod 644 -r sites/default I meant to type chmod -R 644 sites/default The result was this: chmod: cannot access `644': No such file or directory $…
alloutfallout
  • 123
  • 1
  • 3
1
vote
3 answers

chmod of 400,000 files inside multiple subdirectories?

Howdy... I'm looking to chmod 777 a whole bunch of files. Alternatively, since it's more secure, I could also settle for a chown www:www of these files to make them web accessible. Now, since I have over 400,000 files, sudo chmod -R 777 ./* and sudo…
Julian H. Lam
  • 277
  • 4
  • 13
1
vote
1 answer

Why cannot I create a file in a folder I own with chmod 655, but 755 works?

I have a backup folder owned by a system user (mongodb) and chmoded 655. When I try to create files in it, it raises a permission issue: root@maquina:/var/backups/mongodb# su -s /bin/bash mongodb -c "/usr/bin/touch test.txt" /usr/bin/touch: cannot…
Thibaut Barrère
  • 691
  • 1
  • 9
  • 17
1
vote
3 answers

What is the purpose of executable file access rights in Linux?

I never understood this, because if you have access to read a file, doesn't that mean you would be able to copy it somewhere else, thus allowing you to execute it anyway? What am I missing?
Fragsworth
  • 1,181
  • 2
  • 12
  • 14
1
vote
1 answer

Default owner of new files and directories?

How does one configure an Ubuntu 10.10 system to behave like this: User creates a new directory or file. User is the default owner of this file. The file's (or directory's) permissions default to where the owner has RWX, and everyone else has…
bitcycle
  • 155
  • 1
  • 9
1
vote
2 answers

Should I set permissions to 777 for setup and config file?

I am writing a large PHP application (with setup) for the first time and am wondering about the security precautions I should take for permissions. setup.php uses uses fopen/fwrite to generate a config.php based on POST data that comes from…
John D.
1
vote
1 answer

Can't read directory owned by my group

I moved the postgres data directory to a separate partition and it works great. The directory is owned by postgres user and postgres group. d-wx------ 11 postgres postgres 4.0K 2010-06-11 08:28 data/ I added myself to the group > sudo addgroup me…
Jonathan
  • 23
  • 2
1
vote
0 answers

permissions and rights on a shared drive

I don't understand exactly how things work and how to solve the following correctly. I have a mounted HD to my server, to this I upload and download photos from domain X. This works perfectly. Domain x has these owner/group numbers: 2000/5000, I can…
Joost
  • 111
  • 2