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)

44
votes
4answers
74k 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 ...
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 ...
24
votes
1answer
19k 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 ...
22
votes
1answer
66k 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 ...
22
votes
3answers
1k 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: ...
18
votes
5answers
31k views

Why does chown reports “Operation not permitted” on OSX?

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 ...
18
votes
3answers
15k 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 ...
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
2answers
6k 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 ...
11
votes
2answers
20k 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 ...
10
votes
1answer
5k 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
5answers
8k 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? ...
10
votes
3answers
27k 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, ...
9
votes
3answers
661 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) ...
8
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 ...
8
votes
1answer
824 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
2answers
10k 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 ...
8
votes
2answers
21k 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 ...
8
votes
3answers
10k 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
200 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
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
4answers
5k 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 ...
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
3answers
5k 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
2answers
5k 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 ...
6
votes
1answer
634 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
1answer
1k 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) ...
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
1answer
1k 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 ...
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
4answers
7k 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. ...
5
votes
2answers
911 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
3answers
16k 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 ...
5
votes
2answers
9k 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 ...
5
votes
3answers
6k 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 ...
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
313 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
655 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
3answers
6k 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 ...
5
votes
4answers
11k 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
2answers
1k views

All folders in all drives are set to read only on Windows XP and can't be changed

I am using windows XP and all of my folders on all drives are now read only. When I remove the read only check, it gets set back to read only. Why? I cannot write any file from my flex application. ...
5
votes
2answers
2k views

Hosts file is not editable, even as root user

I am trying to edit my hosts file on Mac OS X Lion 10.7.4. I've tried all the Terminal trickery I can, but I always get "Operation not permitted" when attempting to modify the file. I've tried: sudo ...
5
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 ...
5
votes
2answers
160 views

What is this hidden directory doing on my Desktop?

On my Mac I just encountered a hidden directory on my desktop. I don't recall putting it there. When I type ls -la in Terminal on the desktop I get the following: The last folder is what triggered ...
5
votes
2answers
4k 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, ...
5
votes
4answers
1k views

Accidentally moved folder to System Volume Information

I accidentally moved a folder with lots of subfolders and files to System Volume Information on a Bitlocker-partially-encrypted flash drive. Now I can't move them back (not even with control-Z). The ...
5
votes
0answers
3k views

What does the @ mean in the Mac OS X file permissions? [duplicate]

Possible Duplicates: what is the @ after the permissions for in ls -l on a mac? ls -la symbolics… what does that last symbol mean? Running a "ls -l" on a folder I get : .... ...
4
votes
4answers
6k views

“X cannot be done because file is open in another program” Possible to figure out which? [duplicate]

Possible Duplicate: How can I identify what application is using a given file? Every once in a while I'm told by Windows that I cannot perform a certain action (like deleting a file) ...
4
votes
2answers
297 views

How can I see what process has a lock on a textfile?

I'm struggling to edit an config file for a webserver. The file is a text file, and I can open it in a text editor, but not save it. When I try to save it, it says that another application is using ...