Questions tagged [file-permissions]

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.

Filter by
Sorted by
Tagged with
11 votes
3 answers
1k 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 not ...
Max Yankov's user avatar
11 votes
1 answer
6k views

Why does ping require the setuid bit?

In the Jessie version for the Raspberry Pi, ping requires the setuid bit to be set. What is the rationale for this?
Old Geezer's user avatar
  • 1,237
11 votes
2 answers
126k views

How do I change permissions on a directory

I'm using CentOS and I would like to know how to change permissions on a folder with multiple files in it. I have used the following commands on the folder as root (Let's say folder =A) : chmod ...
Linux NewB's user avatar
11 votes
3 answers
22k 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 ...
VVS's user avatar
  • 273
11 votes
7 answers
28k views

chown -R exclude some directory

I want to exclude some large content directory I'm Using it to chown Directory chown -R admin /home/admin/web/public_html is there anyway to exclude a subdirectory under html Like: chown -R admin ...
Mitra's user avatar
  • 211
11 votes
4 answers
42k views

How to make a folder read-only in Windows?

So I want to prevent myself writing into some files into folder. I always works with back_up folders in which I compare, transfer data to target projects. The problem is that sometimes on mistake I ...
Nemo759's user avatar
  • 379
10 votes
4 answers
11k views

Regardless of Windows language, how can I make the ICACLS command set a folder to have full access to everyone?

Background Say I have this command icacls C:\FullyAccessibleFolder /grant Users:(OI)(CI)F This works fine in English versions of Windows, but does not seem to work in French versions, giving the ...
Geesh_SO's user avatar
  • 445
10 votes
3 answers
29k views

Can I delete files created by others in a directory I own? [duplicate]

I created a directory somewhere with permissions rwxrwxr-x so that other users in my group can create files and directories in it. I do need to be able to delete the contents in this "public" ...
Miserable Variable's user avatar
10 votes
1 answer
7k views

Delete /usr/bin/emacs - Operation not permitted

I was about to reinstall Emacs from railwaycat/emacsmacport when I stumbled upon /usr/bin/emacs, /usr/bin/emacsclient and /usr/bin/emacs-undumped. angrybacon@sandman ~/ $ ll /usr/bin/emacs* -r-xr-xr-...
Mathieu Marques's user avatar
10 votes
6 answers
19k views

You dont currently have permission to access this folder error

I bought a new SATA Hard drive and installed a fresh copy of Windows 7 on it. I also installed my old one beside the new SATA HD. Now I want to access my images / musics and videos but I get this ...
Dave's user avatar
  • 131
9 votes
6 answers
48k views

Can't delete font files

I have 3 font files on my desktop that I placed there temporarily to do some testing with them. I installed them "temporarily" using Suitcase Fusion. Since then I am not able to delete those fonts ...
DaveyD's user avatar
  • 235
9 votes
4 answers
69k views

Windows - Can't delete folder from Recycle Bin and it won't restore

Chain of events: Empty Recycle Bin silently fails. Tried it repeatedly. Selected ranges of items in Recycle Bin and deleted them (some didn't work), narrowing down until only one item was left: a ...
Evgeni Sergeev's user avatar
9 votes
2 answers
44k views

Remove ACLs in Linux permissions

I have files that have a plus sign next to the permissions -rwxrwx---+ on a Linux samba server. I found the setfacl command to adjust the acl settings, I would like to remove the ACL completely, ...
thecomputerguru's user avatar
9 votes
2 answers
2k views

How do I reset file ownership at the command line when the files are owned by users from a dead domain?

I feel like telling a story, so if you want to get to the meat of the question, skip down to the horizontal line. Original title: Zombies from a dead domain won't give me my files! I ran into a ...
Spencer's user avatar
  • 285
9 votes
2 answers
12k 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 ...
ToddSmithSalter's user avatar
9 votes
2 answers
61k views

What does 'Inheritance' in the Windows Advanced Security Settings mean?

In windows 7 and 8 there is an option in folder or file's advanced security tab called enable or disable inheritance. What will happen if I enable or disable this option? What is its default value ...
Fsalad's user avatar
  • 1,197
9 votes
2 answers
16k views

How to preserve ownership and permissions in Dropbox?

I have two machines, a Mac and a PC running Linux, that I am trying to keep a certain file synced between using Dropbox. One of the files that I am syncing needs to be writable by another user (...
Michael's user avatar
  • 2,714
8 votes
4 answers
4k views

Can I share folders on a LAN using NTFS alone?

I've run several searches, here, here and here including many replies on SE to try and address a simple question: In a Windows NTFS only environment, if I wanted to use NTFS alone to share folders on ...
Dave White's user avatar
8 votes
5 answers
51k views

In sftp, how to set the default permission for all files in a folder?

I want to set the default permission for all files in a folder, including newly uploaded ones, to a certain value, say 644, instead of doing "chmod 644" all the time. Is there any command making ...
user866435's user avatar
8 votes
1 answer
21k 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 ...
Sam's user avatar
  • 83
8 votes
5 answers
58k views

Create file/folder permission without delete permission

Is there a way I can set create file/folder permissions for a user in Windows 7 without giving delete permission for a folder? I don't want the user to delete any files in that folder, but he should ...
Jishnu U Nair's user avatar
8 votes
3 answers
42k views

Add read permissions to all the directories of a path

I want to add (not modify other file permissions) for all the directories in the path written bellow. Something like chmod -R xx4 /home/mDB/admin/KNUCKLES/dbs/ The path /home/mDB/admin/KNUCKLES/dbs/ ...
Jorge Vega Sánchez's user avatar
8 votes
4 answers
7k views

How do I list the effective file permission in Linux?

i.e: Suppose the directory permission is 700, and the file under the directory is 570 Then the effective permission of the file is 500 Is there such a command that lists the effective permission by ...
user avatar
8 votes
3 answers
34k views

How to change ownership of a file in Windows 10 – "Access is denied"

I have a file that's created by a program, and apparently an interaction with the system and Google Backup & Sync somehow scrambles the owner and permissions of the file. (The owner shows up as ...
markspace's user avatar
  • 232
8 votes
4 answers
19k 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 ...
Rafael's user avatar
  • 183
8 votes
1 answer
27k views

How to set umask globally?

I am using a private user group setup, i.e. a user foo's home directory is owned by foo:foo, not foo:users. For this to work, I need to set the umask to 002 globally. After a quick grep -RIi umask /...
DevSolar's user avatar
  • 4,490
8 votes
5 answers
5k 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 have ...
Tom's user avatar
  • 419
8 votes
1 answer
59k views

Advanced Permissions not editable in Windows 10

Windows 10 Version 1511 build 10586.164. From a administrator's user account, when I open the properties of a folder and go to the advanced permissions, the "change permissions" button is gone; if I ...
Moab's user avatar
  • 58.3k
8 votes
1 answer
7k views

com.apple.quarantine is everywhere, how do I stop it?

Somehow, and at some point, I believe recently, my system decided to add the com.apple.quarantine attribute to some files. It was quite a pain and was stopping me running scripts that I'd written in ...
ian's user avatar
  • 402
8 votes
5 answers
16k views

File Name Warning for C:\Program

Since a few weeks I get the error message after login: File Name Warning There is a file of folder on your computer called "C:\Program" which could cause certain applications to not function ...
Thomas Weller's user avatar
8 votes
10 answers
14k views

Cannot delete flash9.ocx

Some kinda voodoo, indeed. Bought a new boot drive, and it's time to use the old drive for data. I thought I'd save some time by just wiping the unneeded system folders, instead of backing up, ...
Kara Marfia's user avatar
  • 2,051
8 votes
3 answers
23k 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 ...
James Mertz's user avatar
  • 26.4k
8 votes
2 answers
427 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 ...
Kyle Strand's user avatar
  • 1,776
7 votes
4 answers
123k views

How to copy files to /var/www on Linux?

I’m trying to copy files to the /var/www folder on Ubuntu 10.04. But I think I don’t have the permissions. How can I do this? Is there some specific permission I should set to this folder?
rogcg's user avatar
  • 221
7 votes
1 answer
15k views

Make read-only file read write from commandline windows

How can I make a read-only Windows file read+write for Everyone from the command line. I searched CACLS but the examples aren't great.
patrick's user avatar
  • 1,243
7 votes
9 answers
93k 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 folder'...
sprsr's user avatar
  • 209
7 votes
1 answer
6k views

How do I restore and accidental chmod (or chown, chgrp) of root directory?

I was altering permissions to log files and accidentally gave 777 to root. Doah. Could be worse I guess. And I caught it immediately and canceled the command's execution. Except the accident brought ...
xtian's user avatar
  • 995
7 votes
2 answers
14k views

How to force the deletion of a locked file that has no locking handle on Windows?

When I try to delete the file, using the GUI it says The action cannot be completed because the file is open in another program And using the del /f /q command line it says Access is denied ...
J. Doe's user avatar
  • 73
7 votes
2 answers
7k views

Group member cannot create files/directories in folder

I'm trying to set up my Linux server and I managed to get stuck at this point: I created a group called 'gitusers' and added a user to it (let's call him 'foo') I created a folder called 'website' I ...
MrSoundless's user avatar
7 votes
1 answer
9k views

ACL vs standard file permissions - which are used when accessing file?

ACLs and standard file permissions seem to be synchronized: $ getfacl test.cpp # file: test.cpp # owner: scdmb # group: scdmb user::rw- group::rw- other::r-- $ ls -l test.cpp -rw-rw-r-- 2 scdmb ...
scdmb's user avatar
  • 1,151
7 votes
3 answers
5k views

Command line to open the Advanced Security Settings dialogue

To view the owner of a file or to modify file permissions, you right-click a file, click "Properties", click "Security", and then click "Advanced". This is cumbersome if you do it repeatedly. I would ...
Damn Vegetables's user avatar
7 votes
8 answers
10k 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 ...
Simon Kuang's user avatar
7 votes
1 answer
2k views

Files created in Cygwin have corrupt Windows security settings

On one Windows 10 PC, when I create a file from a Cygwin bash shell, the Windows security settings for the file are corrupted. So, for example, if I type echo test > test.txt, when I bring up the “...
Claudius Turner's user avatar
6 votes
10 answers
18k views

Make some content on USB drive read only

I am having a 8GB pen drive, I need to put a PowerPoint into that and make it read only. Rest of the space should be usable for the user. Assuming the user will be using Windows only, what are my ...
Mitaksh Gupta's user avatar
6 votes
3 answers
16k views

Is it safe to chmod 777 everything?

I'm having trouble pulling the whole file directory from a rooted android device with ADB. There are special permissions errors. So I thought a solution would be to chmod everything so the ADB daemon ...
jiggunjer's user avatar
  • 1,411
6 votes
4 answers
22k views

Impossible to delete a file in Windows 7 (2) [duplicate]

I'm aware of similar posts on this, but they haven't fixed my issue. I have an .iso installation file previously mounted with MagicDisc that I am now unable to delete. I have of course unmounted the ...
geotheory's user avatar
  • 1,089
6 votes
3 answers
27k views

Restrict folder access in Ubuntu

I want nobody to access my private folder, I'd like to set a password for it or just make it only accessible by root user. How can I get it? I'm using Ubuntu.
Andres's user avatar
  • 175
6 votes
2 answers
11k views

ssh and home directory permissions

sshd will refuse to accept public key authentication if the user's home directory is group-accessible, even if ~/.ssh is set to 700? If the permissions on ~/.ssh are acceptable, why do the permissions ...
Blacklight Shining's user avatar
6 votes
2 answers
7k views

Windows 8 Security shows all "permissions incorrectly ordered"

I have a strange folder/file security problem with a new Windows 8 Pro machine and I spent 3+ hours on the phone with Microsoft today and they don't have a 'fix' but have heard of it a "couple of ...
user222796's user avatar
6 votes
1 answer
6k views

User write in a subfolder when cant access parent?

I was wondering, i have a webfolder and have permissions set to 770 with group being www-data. I would like to give access to one folder to a friend so he can edit images, css, etc. I made that folder ...
user avatar

1
2
3 4 5
27