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)

33
votes
4answers
57k 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 ...
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: ...
19
votes
1answer
51k 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 ...
17
votes
4answers
25k 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 ...
11
votes
2answers
16k 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 ...
9
votes
2answers
4k 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 ...
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
3answers
583 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
1answer
554 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
8k 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
154 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 ...
6
votes
4answers
1k 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). ...
6
votes
4answers
4k 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 ...
6
votes
2answers
4k 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
4answers
6k 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? ...
6
votes
2answers
8k 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 ...
6
votes
1answer
507 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
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
2answers
654 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
13k 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
4k 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 ...
5
votes
3answers
5k 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
5answers
1k 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 ...
5
votes
1answer
574 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
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
3answers
800 views

Cannot delete a folder in Windows 7

I have a few folders that I can't delete: I right-click > properties > security to try and give myself permission, but no joy: So I try to take ownership of the folder in advanced > owner... ...
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
139 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
3answers
638 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
3answers
2k views

why 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 ...
4
votes
4answers
5k 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. ...
4
votes
4answers
5k 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
1answer
304 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 ...
4
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?
4
votes
2answers
282 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 ...
4
votes
3answers
2k views

Permissions on a typical shared Linux web host

I am trying to understand the file permissions on a typical shared Linux web hosting account. I know how to set rwx permissions for the OWNER GROUP and PUBLIC entities of a file or directory. What ...
4
votes
2answers
7k 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. ...
4
votes
3answers
117 views

How do I edit a system file that seems to be in use?

I have tried to edit the file C:\Windows\System32\drivers\etc\hosts but Windows always says that the file is in use.
4
votes
4answers
10k 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 ...
4
votes
6answers
32k views

All files in my PC are stuck on “read only”, even as the only admin

Windows 7, 32-bit: There is 1 user account in this PC, and that is my account. What I do is, I right click to a folder and uncheck the read only option, apply, close. After when I reopen the ...
4
votes
2answers
486 views

about Linux read/write only permissions

My question looks similar to another thread: Linux directory permissions read write but not delete Here, I want to create a directory where I can give the permissions like: A user can create/upload ...
4
votes
2answers
9k 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?
4
votes
1answer
2k views

git management - user rights

I have to set up git for a development team. The team members must have different rights. Some roles should have read rights only, some should be able to push but not to create new branches or tags. ...
4
votes
1answer
8k 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 ...
4
votes
2answers
13k 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, ...
4
votes
4answers
823 views

How can I read a video file that is being created?

I have a very old video capture device (Dazzle DVC USB) hooked up to Windows7, and it works with the program that it came with just fine to create a MPEG2 file in a directory. However, I want to ...
4
votes
1answer
1k views

How can I use sed in /etc/apache2/sites-available?

I'm attempting to write a script that uses sed to copy the default file for apache and writes a new file, replacing /var/www ($DOC_ROOT below) with my own directory, $NEW_SITES_DIR. However, sed isn't ...