I have the website content on the centos 5 server saved in Dropbox. In that way i can easily access them without having to use ftp. However sometimes it happens that Dropbox chmod's random updated files to 666. This causes the error: "this file is group writeable" Why does it do that and how should i prevent it? Should i maybe create a cron script that looks for chmod 666 files and automatically corrects them? Still that would be a lousy fix though....
123055
I have two machines, a Mac and a PC running Linux, that I am trying to keep a certain file synced between using Dropbox.  One of the files that I am syncing needs to be writable by another user (different UID on the same machine, not referring to another dropbox user) besides myself.  To be more specific, this other UID is actually a daemon.  So, either the file needs to be owned by that other user, or else write permission is needed for "group" and/or "other".  Initially I have set it up this way on both machines.  In addition, the directory containing the file is already owned (chmod 777) by the user that needs to have write access to the file.   However, whenever the file gets synced from one box to another, it appears that Dropbox completely ignores both sets of permissions, and changes the permissions on the newly updated file to be owned by me with permissions 0644 (rw for me, r for everyone else).  If the file isn't owned by me it even changes ownership back to myself! As a result, the other user no longer has write permissions until I manually go in and re-chmod the file.  Additional things I have tried that have not worked:   made sure the user account (for the "other user") on both machines has the same UID.  Not sure why this would be necessary, since my primary account doesn't have the same UID on both machines. chmod u+s &lt;dir&gt; and chmod g+s &lt;dir&gt; where  is the directory containing the file in question. changing ownership of the file to the other user and placing it outside the Dropbox directory, and creating a symlink to the file in the Dropbox directory.  Dropbox actually deletes the symlink, leaves the original file (outside the Dropbox directory) unchanged, and creates a new copy of the file where the symlink used to be!   How can I set things up so that my permissions and/or ownership are preserved?
2499
Today I uploaded my site to the server, and I get errors like the following:     Unable to generate the derived image located at public://styles/sponsor_image/public/TerraThermaSponsorLogo.png.   Image styles cannot generate images. I have tried to set permissions on styles/* folders with chmod -R 775 styles/, and even tried chmod -R 777 styles/. The folder's owner is OK. I don't get what can be wrong.  The directory associated with public:// is sites/default/files, and it is OK.
90949
There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
98286
When I open my website it shows me this:  The following directories must be writable by the web server: tmp/cache tmp/templates_c  Please correct by executing: chmod 777 tmp/cache chmod 777 tmp/templates_c or the equivilent for your platform before continuing.   When I run these 2 commands it tells me that these directories don't exist.  How can I solve this problem
30210
If I have two users called john and sally. Both are part of the users group. john creates a directory with permissions 775. sally then puts a file there with 644 permissions.  Even though the file obviously has no group write privileges. Can john then modify/delete that file in the directory he owns but the file he does not own?
91005
I am having an access problem to some files and directories that I have tracked down to the group assigned to access them.    When I manually change the name of the group in the properties/permissions menu for a directory from the default setting (MyGroup) to www-data used by my Drupal Website, the directory error messages I get are gone.    There are a large number of files and directories that require this change.  If believe using chmod will change the owner which is set correctly and being new to Ubuntu, I am reluctant to experiment without a better understanding of how owner and groups work in the permissions settings.   What command changes the Group setting for a directory?
122141
I having a weird problem on my VPS with Ubuntu 14.04 as the server. I tried creating a directory with php mkdir using the code below  &lt;?php      mkdir("/items/foldername", 0777, true); ?&gt;   Whenever i run this script,the folder gets created but with 755 permission instead of 777.  I have tried all available options I can see none is working. My php script is using www-data.   I have tried the following   sudo chmod -R 777 items  sudo chmod -R g+s items I added www-data to the root group
18338
Today I was told a tale by a Unix trainer where the root password got leaked to the students, and one of the fellas removed the execute permission from /usr/bin/chmod itself. How do you recover chmod in this case and make it executable again? Let's say getting it from an external source or recompiling it is not a preferable option, is there some smart hack that can recover this chmod itself?   Note that this happened a long time ago and I'm not looking for a solution for some current problem, just curious about what ways Unix provides us around such an issue.
61824
So there's chown which lets you change the owner and group of files and/or directories. But there's also chgrp which only changes the group. Why was chgrp created? Isn't it redundant?
109488
I am trying to sync my Firefox profile folder using Dropbox, but there are several files that Firefox changes quite frequently   Folders: Cache, OfflineCache can be excluded Files: urlclassifier3.sqlite, places.sqlite - these files are big and are changed anytime   OS: Windows 7  Does anyone know how to exclude files listed in #2 from Dropbox sync?
20739
I'm logged into a server as user "ubuntu" and I've got files that look like this:  -rw-rw-r-- 1 www-data www-data 33150 2012-06-04 22:17 file-a.png -rw-rw-r-- 1 www-data www-data 36371 2012-06-04 22:15 file-b.png -rw-rw-r-- 1 www-data www-data 41439 2012-06-04 22:16 file-c.png   The ubuntu user is a member of the group www-data:  groups ubuntu   produces  ubuntu : ubuntu www-data   So shouldn't I be able to change other permissions since I have access to the file? I'm not an expert on the user/group stuff. So this is just perplexing me.  I'm trying to run:  chmod o-r *  I realize I can do it with sudo, easily, but I'm trying to understand why I can't modify the files without sudo.
60239
I am configuring a Linux work station that will be used by a small number of users (20-30). These users will belong to a small set of groups (5-10) with each user belonging to at least one group and potentially multiple groups. On the work station there are files that should only be writeable by members of a particular group. Each file is only writeable by members of one group so standard Linux permissions should work just fine. I have two questions.  Who should own the files that already exist? I was thinking either root or creating a set of dummy users corresponding to the groups. Is there a better choice that I am missing? It seems like this is unlikely a unique situation so I was hoping there was a standard convention.  The second question is where should I put the files. If I made dummy users I could create subdirectories in /home/. If root owns the files do I go with /srv/groups/ or maybe `/share/? Again is there a convention?
114939
I want to grant a single user write permissions to a directory owned by root over command line. With chmod, it seems that I can only change the permissions for owner, group and other, not for a specific user.
96426
Every time I create a new file or folder in Linux, it is accessible for r/w by myself, not the group. I want to change my system setting such that every new file or folder will be automatically accessible by the group. Is there anyway?
25307
Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups.  I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the upload process to work, so I created the folder and then set permissions as such:  chown apache:apache -R uploads/ chmod 755 -R uploads/   The only problem now is that the FTP user can not modify the uploaded files at all.  Is there a permission setting that will allow me to still upload files and then modify them later as a user other than the webserver user?
13101
A file in a directory has a Group ID "501" After checking /etc/group, Group ID "501" was not found how is that possible ?
91769
In Java, I'm dynamically creating a set of files and I'd like to change the file permissions on these files on a linux/unix file system.  I'd like to be able to execute the Java equivalent of chmod. Is that possible Java 5? If so, how?  I know in Java 6 the File object has setReadable()/setWritable() methods. I also know I could make a system call to do this, but I'd like to avoid that if possible.