General :: Chmod Doesn't Change Permissions On Files In Subdirs
May 15, 2011
I have a Qnap 219p NAS to which I have connected a USB external harddrive. I can access the external harddrive from my windows box using the network share, but at first i couldn't access the folders. The permissions set in the NAS GUI for the external drive is correct and are identical to the permissions set to the 2 internal drives.
I ssh'ed to the nas and used 'chmod -R 770 /share/external/sds1' - this granted me access to the folders, and some files. I can open all files in the root, but if I go just 2 folders 'deeper', i can't open the files in this folder, and in the folders after that.
In ssh, if i navigate to the folder wher I cannot open the files and use 'ls -l', i can see that the permissions (770) hasn't been applied to these files. How can I get chmod to apply the 770 permission to all files, folders, subfolders and files in subfolders etc., without having to chmod every folder one by one?
i have installed linux4 on vmware and now i am to copy any file but not able to paste it in any directories and when check the permissions there is no write permission for any of the directories .Not able to use chmod to change the directories permissions.
I had created a file under a directory & set the permissions through chmod command but when I create another file under this directory, I get the default permissions. Is this due to umask or can I set the file permissions through chmod under a directory.
I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories.
I would like not check first, and if not ok, then to write the permssisions. Means no use to write endessly on disk if not needed. How to check and fix the permissions to avoid writing (chmod o-rwx /home/*) ?
I run a small site and today I've discovered that my site is down. I found that cPanel has flagged the account suspended even though I haven't got any quotas on the account. I don't know what went wrong. I've tried to unsuspend the account in WHM but a certain part of the function failed.
safe_userchgid: chown: /home/crocbits/public_html: Operation not permitted at /scripts/cPScript/SafetyBits.pm line 93.
After searching the internet someone mentioned that the problem might lie in the permissions of the public_html folder. I had a look at the permissions and the folder had no permissions d----- When I try to chmod the folder I get this error:
chmod: changing permissions of `public_html': Operation not permitted
I have no idea what to do next. All the files in the directory are locked too. I tried to move them but this command isn't allowed either. I ran these commands under the 'root' user in SSH.
I work with this travel company that host sites for different agents. They have ALL the sites in one directory and each site has its own search.php file. How can I locate, and change all the search.php files permissions to 644 in one shot? Is this possible maybe with the find command? I read the man page for this but I am not sure how to write out the command.
I've hit a wall here; I'm attempting to find some way by which to view files and cd into directories on a device mounted read-only. So I need the permissions to read, write, execute (and the same with directories), but chmodding is out of the question because I don't want to alter the drive one iota.
I guess what I could do--what I was thinking of initially--was to dupe the whole drive and then mess with permissions. This wouldn't affect the original (actually I'm working on a duplicate of the original, but I'm treating it as if it were the original) but I was hoping for something that would maintain data integrity. This is a forensic application and not altering the data is very important.
I need to, through a bash script, go through a given directory (given as argument 1) to list out the relative path in this directory (including $1) for eact subdirectory which contains files. Directories which only contain . .. and eventually only subdirectories SHALL NOT be listed. It is this last requirement that makes it difficult for me.
I have been using the tree command for now, but I have not found a way to ignore paths to directories which only contains other subdirs or nothing at all in any easy way. I may offcourse test each directory after they are listed but this gives an extra loop to go through and I beleive it should be possible to do it directly when creatring the list. I guess by using find or ls in conjuntion with the tree command or by itself it should be possible but I am not to conversant of nested script commands.
I work in a shared computing environment and the default setting is r-x for group and others; it's upto the users to change this. I can chmod and change the permissions for all the files. However any new files created all have the default permissions. Is there anyway to change that so that I don't have to chmod everytime or run chmod as a cronjob?
i want secondary users can able to change the files permissions of primary group?user MAC is having www as a primary and httpd as secondary group. But he want to change the file permissions (chmod) httpd group files. Is it possible or not? I think its not possible. If it`s possible then let me know how?
I've been using Ubuntu for a few years and I am having issues trying to load .jar files and .exe files in Wine. I keep getting an error message that says my computer doesn't have permission to load these files. I've done some research and found people saying to enable the file as executable in the files properties, to enable executable in the permissions folder, and to allow source code on the Ubuntu Software screen, but whenever I try to check these boxes, they immediately revert to having a line through them instead. I remember when I was running Ubuntu a few years ago I was able to completely disable this restriction in terminal, but I can't remember what I did.
After burning files to DVD+RW, the owner is changed to root, and all permissions are read only. I want to periodically open these files, update them, and save to the DVD again, but I no longer have permission and cannot change the permissions since I am no longer the owner. I tried sudo commands, but get responses "Read only file system". I have erased and reformatted the DVD and started over but get the same results. I have Ubuntu 9.04, and have tried Brasero and Nautilus and get the same problem. Am I using the wrong kind of DVD/CD?
I've just read that I can't change the file permissions of files and folders if they are sitting in what was my old Windows D: drive. Is this correct? If so what is the work-around?
I don't want to have to cut and paste that entire D: drive's contents over to a recognised Ubuntu folder. I had in my mind that this D drive would continue to be my data dumping ground, to which I need read/write access to.
I have a NFS shared directory between two linux machines, one with RedHat3 and one with CentOS 5.4.On the CentOS 5.4 machine I have InfoBright installed. In that directory, I want to create files with InfoBright and then to select from them with MySQL on the RedHat3 machine.The problem is that InfoBright creates files with 660 permissions and mysql with 666, and I cannot SELECT from any file due to the fact that is not "readable by all"(this is the actual error). I can change the permissions manually, but I need them to be created with 666 permissions, so that I can import them automatically on the other side with a script.Is there any way to change the permissions of the InfoBright created files?
I just installed Karmic, but I can't copy an old user's home folder (/home/oldusername/) because everything is owned by root.I read but I'm concerned about messing up the system or the files in that old user's folder.So, how do I adjust the permissions of the files in /home/oldusername so that I can use openssh to copy them over my home network to my other computer? I have the ssh part figured out, but the files will not copy to the laptop due to permissions.
So i pulled some files off my buddy's computer via my wireless home network, i can access them but in the permission tab the owner is "nobody" so i can move the files. How can i change the permissions to enable me to move the files?