Most current file systems have methods of administering permissions or access rights to specific users and groups of users. These systems control the ability of the users to view or make changes to the contents of the filesystem.

learn more… | top users | synonyms (1)

75
votes
5answers
103k views

Permissions on private key in .ssh folder?

I changed my permissions in my .ssh folder and now when I use a piece of software that uses my private key, I have to type my password each time. What should my permissions be on my id_rsa file to ...
36
votes
1answer
29k views

How do file permissions apply to symlinks?

Let's say you have this structure: + directory -- file1 -- file2 -- file3 -> /tmp/file3 file3 is a link to another file3 somewhere else on the system. Now let's say I chmod 777 the directory ...
33
votes
2answers
4k views

How come one user can delete another user's 755 files?

I have a backup upload script that scp’s files to another server using the user upload. Another script on the target server then chown’s these to another user and sets the file mode to 755. If I then ...
28
votes
1answer
87k views

Give write permissions to multiple users on a folder in Ubuntu

There is a folder that is owned by user tomcat6: drwxr-xr-x 2 tomcat6 tomcat6 69632 2011-05-06 03:43 document I want to allow another user (ruser) write permissions on document folder. The two ...
23
votes
6answers
40k views

Why does chown report “Operation not permitted” on OS X?

I am trying to do the following on my Mac (10.6.7): sudo chown myusername:wheel ./entries but Unix/Mac is returning "Operation not permitted". When I ls -lash the culprit file, it looks as follows: ...
22
votes
3answers
2k views

Subverting the execute flag on Linux systems. Why is this possible?

Whilst reading this, I found the following exploit: % cp /usr/bin/id ~ % chmod -x ~/id % ls -al ~/id -rw-r--r-- 1 edd edd 22020 2012-08-01 15:06 /home/edd/id % ~/id zsh: permission denied: ...
19
votes
3answers
19k views

Why can't I edit a “Program Files” file on Windows 7?

I'm having trouble editing this file on Windows 7: C:\Program Files (x86)\CMake 2.8.7\share\cmake-2.8\Modules\FindJNI.cmake If I edit it in Cygwin (vi) or TextPad, those two programs see the ...
19
votes
2answers
9k views

Ensuring new files in a directory belong to the group

I want to create a shared directory when a number of users (all belong to say mygroup) can create and edit files. I would like all files in this directory and subdirectory to belong to mygroup I have ...
17
votes
6answers
2k views

Password protect a folder

What are the available options for password protecting a folder? I'm talking about requiring a password to actually access the folder, not just user access rights. Is the third-party software out ...
16
votes
3answers
47k views

Reset File and Folder Permission of External Hard Drive Data to default in windows 7

I have External Hard and changed some security setting of files and now I am not able to access in my other system. I am admin in this system is there any tool that can make all setting of all content ...
14
votes
3answers
25k views

Linux – cannot remove owned file with 777 permissions

I've couple of files that I cannot remove using rf -Rf command. I'm the owner of those file and the group assigned to those files is also a group my user is in. What's even weirder is that I can edit ...
13
votes
5answers
12k views

Why can't I delete a file where I have group write permissions on?

I have a file with the following permissions: root:data, and chmod set to 775. My normal user, let's call him boby, is in the data group. Why can't I delete the file with the user boby? ...
13
votes
3answers
43k views

Windows 7 - Cannot remove read-only attribute

I am logged in on my admin account. When I was trying to edit a python project using PyCharm (an IDE), it told me that the folder was marked as read-only (square box). I open the folder in explorer, ...
10
votes
3answers
1k views

How do you edit hosts file on Windows 7

I'm trying to edit the hosts file (C:\Windows\System32\drivers\etc\hosts), because I want to setup a local redirect for my website (like I've always done in XP). However, I can't save the changes! I ...
10
votes
1answer
8k views

Folder needs admin permission for every single action

Ok, I already created a thread and it said, I should visit another thread, and if the problem isn't solved to create a new one with more details. So here I am. I have, the following Problem: I own 4 ...
10
votes
3answers
9k views

How to prevent USB from .fseventsd, .Trashes, .Spotlight-V100 folders and .DS_Store files?

If you give somebody your USB drive to put files on it, it is so annoying to clean up afterwards, all these useless for other than OSX platforms artifacts, which pollute the disk. Is it any solution ...
9
votes
3answers
822 views

What does third symbol in “rw-” file mode mean in OS X ls manual page?

I have trouble understanding ls's manual regarding a file that has rw- mode. Here's the quote: If r, the file is readable; if −, it is not readable. If w, the file is writable; if −, it is ...
9
votes
4answers
6k views

Linux Group Permissions not being enforced correctly.

I am running Ubuntu 10.04 server and am having some very counter-intuitive experiences with users/groups. For example: sudo touch test_file # create empty file sudo groupadd test ...
9
votes
3answers
758 views

Where does the file owner on Windows matter, seeing that there are ACLs?

Coming from a Linux background, I'm used to a file having an owner, and a owning group. Access permissions can be set separately for owner, group, and others, and that's it. Now on (NT-based) ...
9
votes
2answers
13k views

Setting differing ACLs on directories and files

Quick ACL question: I want to set up default permissions for a file share so that everyone can rwx all of the directories and so that all newly created files are rw. Everyone who is accessing this ...
9
votes
1answer
3k views

How can I fix “you do not have permission to mount this file” error in win8.1 enterprise?

I recieve this error whenever I attempt to mount a disc image (iso) under win8.1 enterprise using the right-click context menu. So far I have tried; run explorer elevated (couldn't make it happen) ...
8
votes
4answers
20k views

How to create a Windows 7 fileshare that requires NO authentication

This almost seems like a silly question, and yet I can't find the combination to keep the safe open. I am trying to create a fileshare on a Windows 7 Pro workstation. I want NO authentication ...
8
votes
2answers
13k views

Forcing group and permissions for created file inside folder?

I need that for the folder /var/www when my user testuser creates a file the permissions are g+rwx and the files belong to the group www-data Any idea of how could I do that ? Cheers. EDIT: I'm ...
8
votes
1answer
1k views

What are “Paste Item Exactly” and “Duplicate Exactly” in Finder?

While holding Opt and Shift, the Finder menu items Duplicate and Paste Item become Duplicate Exactly and Paste Item Exactly. These require administrator permissions. How are they different from the ...
8
votes
3answers
11k views

Windows XP cannot access a Windows 7 shared folder

I have a small business network, where there is a centralized imaging machine. This machine then has a shared folder with all the stored images. Originally the imaging machine was an XP, and the ...
8
votes
2answers
243 views

Maintain permissions bits when writing new file with VIM

In Vim, when I write a copy of the current buffer to a new file using :w [filename], it appears that Vim uses the default (i.e. set by umask or whatever) file permissions for the new file. If the ...
7
votes
1answer
4k views

Linux - group member cannot delete file with rw permission

Below shows a file, /tmp/testfile, owned by user1 with group changed to wheel that also includes user2. The file has rw permission for the group. So shouldn't any member of the group be able to delete ...
7
votes
4answers
2k views

How can I recursively set read-only permissions?

I have a very large and deep directory. I would like to make all of it read only. The problem is I guess I have to distinguish between files (which will get a=r) and directories (which will get a=rx). ...
7
votes
2answers
6k views

Auto-set permissions when uploading to Amazon S3 with Transmit 4 [closed]

Does anyone know how to auto-set the read permissions for "World" upon upload of a file to Amazon S3 with Transmit? It is currently a two step process in my workflow: upload the file change ...
7
votes
5answers
2k views

Windows File Access Denied

I seem to have a general problem with "access denied on Windows". It manifests itself every time if e.g: My bat file calls a compiler creates a file on disk My bat file renames a file But I also ...
6
votes
5answers
10k views

Extract file and folders with specified permissions

I pack a folder with lot of sub-folders and files in Windows with 7zip, upload to VPS and then run the command: tar -xvzf file.tar.gz then all unpacked files and folders have permissions of 777. ...
6
votes
3answers
6k views

Why are file permissions retained when moving files within the same volume?

Ocassionally, we have the problem that a file has permissions different from the folder where it's in. Now I found out that there's a KB article explaining the reason behind this: By default, an ...
6
votes
3answers
7k views

Limit every user to his own home folder only

i have a linux server which users connect to with SSH. my users only upload and download content from their /home folder. Basicly, I want them to be limited to see and use only their home folder. I ...
6
votes
3answers
10k views

Add multiple @groups to valid users

In smb.conf I have the line valid users = @Staff @Directors Is this a valid syntax to add two groups to the valid users line? It does not seem to work right on our xp pro clients. If not which of ...
6
votes
2answers
2k views

How do disk permissions fall into a state of disrepair?

I used OSX's Disk Utility to Verify Disk Permissions and found a lot of system files had incorrect permissions. I'd say all of them were more open, allowing others to read or write. Also, many had ...
6
votes
1answer
707 views

Permissions issue when trying to execute command in post-commit hook in SVN

I have a dull problem that I can't seem to solve. What am I trying to do? post-review --repository-url=http://xxx.xxx.xxx.xxx/svn/testRepo2 --revision-range=6:7 --server=http://reviews.example.test/ ...
6
votes
2answers
5k views

Why do you need execute permission on the parent directory to rename a file

On Linux/Unix file-systems, I understand the reason why you need the execute permission on the parent folder to read or write a file: the execute permission gives you access to the inode on the file, ...
6
votes
3answers
2k views

Windows 7 permission denied error

I've tried every single solution out there and nothing works. Here's the deal; I had WIndows XP. I backed up some stuff to an a drive. I installed Windows 7. Now I'm trying to access the files I ...
5
votes
3answers
2k views

Wwhy do we need execution permission to change a directory in Unix?

Here are the permissions given on the machine: drwxrwxrwx 4 root root 512 May 16 09:32 STC_10 drwxrw-rw- 4 root root 512 May 5 11:22 STC_11 Now here is the Problem: cd ...
5
votes
1answer
25k views

How do I add permissions via command line for “everyone” on external HDD

I have an external HDD and I kind of messed up the file permissions but when fixing it I thought it is ok bc with my username I can access the files perfectly fine. Now that I use this with two PC ...
5
votes
2answers
1k views

How do I delete a hard link to an executable I don't own?

I used the following command to create a hard link to an executable: ln `which xcrun` gcc The link worked as expected. However, it seems I don't have the permissions to remove it. $ rm gcc ...
5
votes
4answers
4k views

Why is setuid ignored on directories?

On Linux systems, you can successfully chmod u+s $some_directory, but instead of forcing the ownership of new subdirectories and files to be the owner of the containing directory (and setting ...
5
votes
2answers
13k views

Windows - Use Local Service and/or Network Service account for a windows service

I've created a window's service that monitors files on a specific directory on our Windows OS. When a file is detected, the service does some file I/O, reads the files, creates sub-directories, etc. ...
5
votes
2answers
2k views

File permission. Write and execute only?

Is there any use if a file has only write and execute permission and not read permission?
5
votes
1answer
329 views

Windows 8's Confusing Security

I'm using Windows 8 Pro x64. My account in the PC is an administrator account. Among several logical drives in the PC, admins have full control permission on all drives. I've confirmed this by drive's ...
5
votes
1answer
3k views

Bash: permission denied for file write

I followed this tutorial guide on "How to Create Linux Proc Files in C Program using LKM". I've successfully made my module and loaded it in. Now I want to echo to my proc file to make sure the ...
5
votes
1answer
740 views

What is the + at the end of Unix permissions in a long listing format?

Here's an example drwxr-xr-x+ 6 reza reza 204 Mar 5 20:23 .ssh/ Although I am the owner of this directory, I cannot modify it without using sudo! Why is that? how can I remove '+' here ...
5
votes
4answers
12k views

Make shell script executable in Mac os x without entering the terminal

I have a client that has a mac os x leopard (10.5). I want to be able to ask him to save a shell script that I made in his desktop and execute it, but I can't open the terminal without the client ...
5
votes
2answers
2k views

Share the Documents, Pictures, Music, Video User Folders between different OSes

I have a dual-boot configuration: Windows 7 Ultimate and Windows 8 Consumer Preview. I need to create a similar setup on both OSes, so that I do my work, testing, benchmarks and everything else on ...
5
votes
1answer
14k views

giving read and write access to group and folder

Say I have a group called mygroup and I want it to have a permission of rwx (777) to the folder /var/www . How do I do this? What is the appropriate command to do this in ubuntu?