The directory is located on my windows partition, but I have never had the same problem earlier.
I'm using Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-virtual x86_64) and changed the permissions of the "etc" directory to 444 (sudo chmod 444 etc).
I have many file permission problems, as being a newbie, I unfortunately set permissions on everything somehow to 777 (chmod -R 777 /). I believe I've done this from the root directory logged in as the root and now can't really do much at all but log in as another user.
I need to mainly change the ssh permissions, but obviously can't because it won't let me log in as the root user.
I have a file which was saved to a CIFS share from Outlook. The file permissions are 777, so I should be able to read the file from the Linux host the file goes to. However when I try, I get file permission errors (unable to read the file). If I have the root user change the permissions (say from 777 to 775), I am then able to read the file as expected.
So after finding a workaround and fixing permissions regarding my external Hd problem from earlier, I now cannot access the "file system." I still have access to the desktop and my user folder, as well as links I had already made to folders such as "www" within the "var" which is direction inside the root file system.
I use for example to change everyone's permissions:
chmod 777 file
Now, what if I want to preserve the current permissions?
I know there's something like
chmod xx7 file
in case I'd only want to change the world permissions, but I can't work it out (forgot).
Thanks!
Is there a way to change who can chmod (change the permissions of) a particular file?
It is only the owner of the file (without sudo-ing it), if my experimentation has been correct?
But what I want to do is allow on the group to be able to edit the file permissions, and not the owner.
This isn't possible under the traditional Unix file system I don't think, but I'm wondering if there is a sneak
I'm trying to change file permissions on a windows server for a domain. It works fine except for one little problem. There is a co-worker that logs in using the same user as mine but on my computer I have full file permissions and on hers the file is read-only. Any help?
I am trying to change the file permissions for the entire directory. Presently all the files in the dir have the following permission,
-rw-------
And I wish to change it to,
-rw-r--r--
I know I need to use chmod but since I need to change it for the entire dir, is there a command that will change the permissions for the entire dir in a single go?