Questions tagged [permissions]
Access and restrictions of files, documents, accounts, computers, etc.
366
questions
67
votes
5
answers
215k
views
How do I get permissions to delete files on Windows 7?
I updated my laptop's OS from Windows XP to Windows 7. There are some leftover files from Windows XP on the computer now. If I try deleting them I get the following error:
You need permission to ...
23
votes
0
answers
28k
views
ls -la symbolics... what does that last symbol mean?
Possible Duplicate:
what does the @ mean on the output of ls on os x terminal?
when I type ls -la I get this familiar output...
drwxr-xr-x+ 38 kent staff 1292 Nov 6 11:09 .
drwxr-xr-x ...
20
votes
7
answers
45k
views
Editing/Creating files in C:\Program Files\WindowsApps
Lately, I've been quite annoyed at the fact that I can't edit files in C:\Program Files\WindowsApps folder. I've used the takedown command, in elevated CMD, and changed permissions, to allow admins to ...
64
votes
7
answers
92k
views
File I can't take ownership of
I downloaded a file from the internet (I can link to it here, but in the interests of not annoying other users, I won't post the link), and I can't delete the file with the message:
You need ...
567
votes
16
answers
479k
views
Reload a Linux user's group assignments without logging out
When assigning a user's secondary group list using:
# usermod -G <grouplist> <user>
is it possible to force this group assignment to take effect without logging out all running sessions?
...
462
votes
18
answers
850k
views
Windows SSH: Permissions for 'private-key' are too open
I've OpenSSH 7.6 installed in Windows 7 for testing purposes. SSH client & server work just fine till I tried to access one of my AWS EC2 box from this windows.
It seems like I need to change the ...
135
votes
6
answers
141k
views
What should I do about com.apple.quarantine?
I've downloaded some .jar files from the internet and want to use them under Mac OS X. But the OS seems to have tagged them with the extended attribute com.apple.quarantine (no indication of this ...
84
votes
4
answers
260k
views
Create an SSH user who only has permission to access specific folders
I installed SSH, but I found if I use my original account to login to Ubuntu, it has too many permissions.
I want to constrain the user to only have permissions for specific folders in Ubuntu. How ...
49
votes
8
answers
214k
views
Using custom fonts without administrator rights?
I know you can put custom fonts in say C:\Windows\Fonts and applications will be able to find and use them. However this is only possible when you have administrator access to the machine, which is ...
26
votes
11
answers
76k
views
Reset default ACLs for C:\Program Files\WindowsApps
I had to take ownership of the special folder C:\Program Files\WindowsApps to fix a problem with icons. The issue is now resolved, so I'd like to reset the permissions to the way they were before I ...
641
votes
7
answers
899k
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 ...
102
votes
8
answers
61k
views
What does the @ mean on the output of "ls" on OS X' terminal?
When doing an ls in a directory I get the following output:
drwxr-xr-x@ 12 xonic staff 408 22 Jun 19:00 .
drwxr-xr-x 9 xonic staff 306 22 Jun 19:42 ..
-rwxrwxrwx@ 1 xonic staff 6148 25 ...
70
votes
2
answers
54k
views
Permission to make symbolic links in Windows 7?
How can I grant a particular user the permission to create symlinks in Windows 7?
I've searched through "Group Policy" and Google, but haven't found anything.
On a side note, is there a way to ...
52
votes
3
answers
7k
views
Do I really need recursive chmod to restrict access to a folder?
If I want to restrict access to a folder secret on a shared machine, do I really need recursive chmod on the folder
chmod -R g=,o= secret
or is chmod on the folder sufficient?
chmod g=,o= secret
...
776
votes
10
answers
631k
views
How to recursively chmod all directories except files?
How to chmod 755 all directories but not files (recursively)?
Inversely, how to chmod only files (recursively) but no directories?
245
votes
9
answers
861k
views
How can I give write-access of a folder to all users in linux?
I installed apache2 on Ubuntu just now, and noticed that the /var/www folder is protected. I can just sudo everything but I would rather just give it write access.
How can I do this?
I tried sudo ...
114
votes
14
answers
256k
views
How can I always run the command prompt as administrator?
As a developer, I often have the need to open a command prompt for various purposes. For example, I use iisreset to restart my local web server.
I typically open the command window in one of two ways:...
3
votes
1
answer
958
views
Why FUSE might be considered insecure on server?
OpenSUSE comes with several predefined permissions settings. Paranoid one is most restrictive. While I understand why it blocks stuff like virtualization or tty broadcasts for non-root users I don't ...
46
votes
2
answers
135k
views
Allow specific user permission to read/write my folder
I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that?
chown wouldn't do it because I still want to be able to be the owner of ...
3
votes
3
answers
694
views
Two Files Will Not Delete From HDD
I'm prepping to upgrade to Windows 10, finally, and I'm running into some trouble while clearing out my storage HDD. There were two files on there, an EXE and an OCX file relating to Adobe Flash 10. ...
398
votes
7
answers
1.0m
views
How can I make chown work recursively?
I've got a directory called pdfs that contains a bunch of sub- and sub-sub-directories. I want to change ownership on all PDF files in all of the subfolders. I just tried this:
chown -R someuser:...
22
votes
4
answers
21k
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 ...
16
votes
8
answers
54k
views
How do I retrieve files from Time Machine backups from another computer?
Really it's the same computer - I just did a fresh install of Snow Leopard. When I try to open the Documents directory from my old user account I get
The folder "Documents" can't be opened because ...
7
votes
2
answers
19k
views
Reset all permissions on Windows 7?
I have an external hard drive and I did something which I shouldn't have done, and I am annoyed that many files are prompting me about Administrator permissions to move a folder. They are regular ...
6
votes
1
answer
7k
views
How to assign permissions to manage windows service when UAC is enabled?
I have following scenario:
I'm local admin on my computer with Windows 7 Enterprise and UAC enabled
Computer is not in domain and is not under group policy
I run some program without running it as ...
5
votes
7
answers
6k
views
Deleting "undeletable" files in Vista
I recently upgraded my workstation from XP SP3 to Vista Business, and during the upgrade Windows moved my old C:\Windows directory to C:\Windows.old. I got all of the stuff I needed out of that ...
134
votes
3
answers
253k
views
What is the "wheel" user in macOS/OS X?
I recently reinstalled iTunes and I noticed something peculiar.
The original version of iTunes has a user in the permissions known as wheel that is set to "Read Only".
I dragged this version ...
110
votes
6
answers
123k
views
recursively change owner windows 7
Somehow I accidentally set all the files in a subfolder to "No Owner' and I can't seem to change all the permissions. I can change one by hand by changing the owner then setting permissions but how ...
77
votes
3
answers
584k
views
Chmod to allow read and write permissions for directory
I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a ...
20
votes
1
answer
63k
views
What does NOEXEC flag mean when mounting directories on RHEL?
I am trying to understand the NOEXEC flag when mounting.
I am having an execution issue within the /tmp directory on someone elses machine that I cannot access atm where the /tmp directory is mounted ...
17
votes
4
answers
59k
views
How to prevent a file from accessing the internet?
There are some .exe and .dll files belonging to some programs on my laptop which communicate with the internet without my permission (for self-update generally). I want to prevent those files one by ...
17
votes
4
answers
18k
views
Unix: Is there a way to "copy" file or directory permissions?
I have two files in a directory. One has correct permissions and the other has not. Is there a way I can "copy" the set of permissions from one file to another?
11
votes
2
answers
55k
views
NTFS Permissions - Create Files and Folder but prevent Deletion and Modification
Objective: A shared folder to which users can create files but not modify or delete them. Users should also be able to create subfolders.
I have granted my security group the following advanced NTFS ...
10
votes
2
answers
36k
views
Run task scheduler task on demand from limited user account in windows 7
My goal is to for a limited used to be able to run a netsh script that requires administrative privileges:
netsh wlan stop hostednetwork
netsh wlan start hostednetwork
From my administrative account ...
9
votes
2
answers
163k
views
Lack of permission to open user folder
I've experienced some error with my windows vista installation for reasons unknown (just a DELL from late 2008).
Whenever I try to start up, the computer immediately reboots without letting me in.
I ...
7
votes
2
answers
13k
views
Sudoers NOPASSWD for single executable but allowing others
Operating System: Arch Linux
Linux version: 4.16.11
Sudo version: 1.8.23
What I need:
be able to execute any executable with a sudo with a password prompt
be able to execute one executable, /home/...
6
votes
1
answer
18k
views
Understanding how to use Icals & Takeown to make changes and reset in Windows 10
Take ownership of a windows folder and its contents
Make Changes
Return ownership to original
Understand the process
Use Icacls and takedown in a windows 10 environment
Before using ...
5
votes
1
answer
12k
views
Understanding 'Access Denied' so that permissions can be reverted - icacls and takeown
Before taking ownership of files and folders I would like to understand how to view the current permissions so that they may be reverted.
I am reciving an 'Access Denied' message to view or save ...
4
votes
2
answers
7k
views
Remove files from a root-owned directory using sudo with wildcards
Let's say I have a folder, /var/log/nginx which is protected (owned by root, and no one else can read or write into it). Even using sudo, I can't do sudo rm -f /var/log/nginx/ab* without getting "No ...
4
votes
2
answers
2k
views
After re-installing Windows XP I've got a folder I don't have rights to any more. How can I regain control?
On my second hard drive there's this folder:
D:\73dca78350f1e7f756d03ee8
It contains two sub folders - "amd64" and "i386".
After re-installing Windows XP I can no longer access these folders. I ...
129
votes
5
answers
149k
views
What does the dot mean at the end of `-rw-r--r--`? How do you set it with `chmod`?
Some of the files in my directories under Linux have a . at the end of the permissions listing.
What does the dot mean at the end of -rw-r--r--?
How do you set it with chmod?
91
votes
4
answers
157k
views
How to make new file permission inherit from the parent directory?
I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to ...
70
votes
1
answer
55k
views
What is the difference between the default groups on Mac OS X?
Two questions:
What's the difference between the groups "wheel", "staff", and "admin"? What do they do?
specific use case: I'm trying to setup a local CVS repository as stated in the Apple webpage so ...
38
votes
8
answers
58k
views
rsync file permissions on windows
I have an rsync service that syncs files from remote machine to a machine that drops them on a network drive.
I need the copied files to take on the native permissions of the destination folder.
...
27
votes
3
answers
20k
views
Can't execute a script on a mounted external drive
The /mnt/ext is mounted to an ext2 filesystem, an external hard drive. For some reason I can't run scripts from there. Please see the session below.
luntain@plato /mnt/ext $ echo "echo success" > ...
26
votes
5
answers
44k
views
Why would SYSTEM continue locking executable file handles after the app has exited?
I'm seeing strange behavior on my Windows 7 machine; it appears that when an executable runs, SYSTEM keeps a handle to it open for the next minute or so. Here's my most recent encounter:
I installed ...
22
votes
6
answers
205k
views
Change Windows 7 file permissions from command prompt
How can I change Windows 7 file permissions using the command prompt?
I want to change permissions in program files, but cacls is not working for me.
21
votes
6
answers
95k
views
How to reset folder permissions to their default in Ubuntu?
I recently typed the command
sudo chmod 777 -R /
after that some things like
sudo -i
are not working normally. So I am wondering if there is any way I could reset the folder permissions to their ...
18
votes
2
answers
2k
views
How can I list permissions of every component in a file path?
Sometimes it is necessary to determine on which directory in a path access rights are limited. Here is an example:
$ ls /sys/kernel/debug/usb/devices
ls: cannot access /sys/kernel/debug/usb/devices: ...
15
votes
5
answers
87k
views
Can't change permission/ownership/group of external hard drive on Ubuntu
I have an external hard drive connected to my Linux box. I wanted to setup a web server to access files on it, but the permission on all files and directories on the drive are rwx for the owner which ...