Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
30 views

Mac OS File Sharing and Windows Client (Permission)

I've a Mac Mini which I want to use as file server. I've the following directory structure that I want to share: Public <-- shared (UserA and UserB readonly; Admin is owner) |- FolderA <-- (...
0
votes
1answer
45 views

Windows 7 share folder with specific PC on network

I have small office network having 5 PCs running Windows 7 ultimate edition. All PCs are on same work-group named "WGXYZ" and connected to same home-group created by PC1. PC1 has printer which is ...
-2
votes
0answers
22 views

How can I compress folders in the WindowsApps Directory?

On Windows 10, store applications are stored in C:\Program Files\WindowsApps. I would like to compress some of these applications (that I never use and cannot delete, like "Your Phone" and "Print 3D")....
0
votes
0answers
14 views

Why can't I unlink a file not in use in Windows 10

I am using Python's os.unlink(), and get "access denied". A possible reason would have been if the file was kept open by some process, or by the system. But I cannot see that this is the case. ...
1
vote
1answer
50 views

Modify the rc.local of another linux-based OS safely

I need to modify the rc.local of my raspberry OS. If I insert the SD card in my Linux workstation, it says that "Geany tried to access the Unix Domain socket of another instance running as another ...
1
vote
0answers
33 views

Cannot append to file I created?

I have this WD MyBook NAS with some kind of PowerPC Linux on it. When I log in to the device, I can't seem to append to files that I create myself. Example session is like so: adib@constantinople:~/...
0
votes
0answers
9 views

How to back up entire user folder in google backup & sync

I'd like to sync my whole user directory to google drive, but when I select it in preferences, it says "can't sync "Admin"" (My user folder is called Admin). Is there a reason why I can't sync it, or ...
0
votes
1answer
13 views

Set permissions for “all” to same permissions as owner

I have a very large base of files with varying permissions. I'd like to allow everyone with access to the server the same permissions as I have currently (since I created all of the files). Is it ...
0
votes
2answers
74 views

How do you set Windows file permissions/security options non-recursively?

I somehow botched up my C:\ (root folder) security settings on Windows 10. They remained botched even after an in-place reinstall and somewhat botched after a full (no-save) reinstall. Right now if I ...
0
votes
1answer
27 views

Robocopy gets “Access is denied” copying from 2nd Windows 10 even though File Explorer can copy ok

I get "Access is denied" when my 1st windows 10 computer tries to copy files with Robocopy from my 2nd Win 10 computer. However, I can copy the files using File Explorer from 2nd computer to 1st ok....
0
votes
2answers
102 views

hidden files created in ubuntu visible in windows or MAC

I have a an external hardrive some directories and files are hidden using ubuntu (using . dot rename). I am wondering if these hidden files and directories will be visible if the HD is connected to a ...
2
votes
1answer
39 views

Two dir's of identical ownership, but `cat > f` produces differently owned files

Why do myfile.txt and myotherfile.txt have different ownership? The first directory, myhandle on my Desktop, was created using sudo chown. The second directory under /run/... was created as a ...
1
vote
1answer
114 views

Linux file/directory ownership: I can cp a file but not backup via unison

I have a question on Linux file/directory ownership that is allowing me to copy a file using cp, but not back it up via the utility unison. The problem appears to be in the change of ownership for a ...
2
votes
1answer
66 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 “...
0
votes
1answer
46 views

Combined NTFS Permissions & Combined Share Permissions

Can someone please clarify: What happens to combined NTFS permissions? Does the most restrictive permission prevail or the least restrictive permission wins? Is this the same to the combined share ...
1
vote
0answers
28 views

RedHat: chroot user to subfolder with a different user chroot'd to the parent folder

I have a RedHat server with SFTP enabled and a few accounts, this server is currently being accessed by an application to read the user's respective files, they do not have Write access. The server is ...
0
votes
0answers
20 views

Setting protective permissions and ACL’s in Mac os or Unix for a veracrypt or KeepassXC “Keyfile”

I am running Mac OS, and use both veracrypt and keypassxc to safely store passwords and documents. For both programs, there is an option to unlock your data (Keepass Database, or Veracrypt encrypted ...
1
vote
0answers
59 views

On Linux Samba share accessed from macOS, macOS has weird file permissions

The things I changed in my smb.conf on my linux machine are: unix extensions = no map archive = no map system = no map hidden = no [myshare] path = /home/bob/myshare browseable = yes read only = no ...
0
votes
0answers
7 views

Monit process permission issues

I have a celery consumer which is written in python and it executes a Perl script for every task in the queue. I have added the celery to init.d configuration, everything works as expected but when ...
-2
votes
1answer
45 views

Is there an easy way of summarizing the relationship between Samba access/permissions and linux file system permissions? [closed]

Configuring a Samba share can be a challenge if you’re not a professional admin. A hobbyist or home user will set up a Samba server once and probably not touch it in years thereafter - if they even ...
2
votes
1answer
409 views

Bad owner or permissions on ~./ssh/config after upgrade to Windows 1809

I'm using Windows 10 OpenSSH version. After update to Windows 1809 I've got C:\Windows\System32\OpenSSH\ssh.exe myhost Bad owner or permissions on C:\\Users\\XXX/.ssh/config But execution c:\...
1
vote
0answers
31 views

TextEdit says a file is locked but Finder says it's not and I have permissions to write

This file shows as follows in Finder: But in TextEdit it says it's locked, and trying to change this fails: It's a project from GitHub/NPM I just want to play with changes locally, not muck about ...
0
votes
1answer
83 views

Somehow the /var/www/html folder got converted to a binary file? How do I convert it back?

I was trying to transfer some files from home directory to /var/www/html folder. This was not possible due to permission settings as the system was saying I was not the owner of the folder. So after ...
0
votes
3answers
60 views

Script to create file that is writeable by all machines on a domain

Still new to powershell but I've been tasked with figuring out how to create and run a powershell script on every workstation on our domain so that it pulls Bitlocker status and then writes info to a ...
0
votes
0answers
44 views

Directory has 730 permissions but file has 644 permissions - security issues?

If a UNIX parent directory is designated to have the access permissions of "730" but a file inside that directory has permissions of "644", is this a problem?
-1
votes
1answer
88 views

Accidentally changed the attributes of all the files and folders of a user to Read-only

Story behind: I wanted to upload a file located in a hidden folder(by default). The file explorer that prompted by the file uploading site did not have the "Hidden items" checkbox in the View tab(didn'...
-1
votes
1answer
96 views

How to protect some files against an application on user level?

On multi-user Ubuntu system, how can I give my users a way to execute downloaded applications in a way, that the application doesn't have access to all files except specified whitelist (which is ...
1
vote
2answers
39 views

Where to install windows apps requiring write permissions to their directory

On Windows, i need to install several applications that don't use AppData but instead store their configuration files in their own root directory, therefore they need write permissions to it. Of ...
0
votes
3answers
59 views

chmod 1,2 and 4, what exactly do they do?

I was wondering about having only read, only write, or only execute permission, and what it means. If I have write permission only, does that mean I can append to, or replace the contents of the ...
1
vote
0answers
37 views

Linux file system permissions as root and non-root user?

I have a basic understanding on file system permissions in Linux (or I thougth I have so far...), but what I'm facing right now is confusing for me. To double check it and for demonstration, I've re-...
0
votes
2answers
81 views

How can I delete a Win10 folder whose permissions have been removed?

I have a folder that I want to remove. Somehow, all permissions from that folder have been removed. The parent folder has appropriate permissions for my admin account. I've tried to apply these ...
0
votes
1answer
99 views

Windows NTFS - Add permission to each explicit ACL in all subfolders

We have a folder structure with many explicit rights like root Folder - subfolder 1 (explicit acl, no inherit acl) - subfolder 2 (explicit acl, no inherit acl) --subsubfolder 1 (no explicit rights, ...
0
votes
1answer
137 views

mount ignores umask option in /etc/fstab for NTFS drive

I have a 1TB NTFS drive that I'm trying to mount using /etc/fstab at boot. The entry in /etc/fstab looks like this: UUID=0C6C7C9D6C7C82EE /mnt/ext1tb ntfs umask=707 0 2 The drive gets properly ...
0
votes
1answer
39 views

Opening a file in notepad and saving without corrupting

I have a music file that I want to open in notepad and then save as to another location, when I do this it corrupts the file. How can I open and save as the file without corrupting? I have tried ...
0
votes
0answers
81 views

Getting a 401.3 ACL error on every file

I used Xampp to manage my sites but it was very slow and I was getting a lot of headaches with that. I decided to start using IIS (Win 10) and it's great by its own administration panel. However, ...
0
votes
2answers
53 views

Account has lost all of it's permissions, how do I fix that?

I made a secondary account when a guest came, and went to the C:\Users folder, right clicked on the main account, went to "Give access to" and then "Remove access". I messed with some other options as ...
0
votes
1answer
51 views

My bash script locks file when Java tries to read it

I have a bash script in Linux (CentOS) that redirects output to a file. It takes a few minutes to run: ./myBashScript.sh >> file.csv I have a java application that tries to read the file (only ...
0
votes
1answer
83 views

How to prevent a Windows program from modifying attributes of a folder/file?

My current problem is that I am trying to prevent a program from changing the attributes(specifically Write permissions) of its own files in order to stop the program from updating itself since it's ...
0
votes
1answer
62 views

Permissions for Network Shares (SMB)

Good day. I have a file server (Windows 2012 R2) that houses a total of three network shares. I have been trying to figure out permissions for my domain users for some time and can't seem to get them ...
0
votes
0answers
168 views

“Access Denied” copying file to folder ONLY from phone

Windows 10, copying files (photos/videos) from USB-connected phone (Samsung) using Windows Explorer. I get a plain "Access Denied" Windows error message, no more information. It wouldn't be that ...
0
votes
0answers
43 views

grpquota and usrquota coexisting

I have a multi-user CentOS 7 system that has userquota and grpquota enabled, but I am having trouble having them coexist. My question boils down to either: 1) Is it possible to have grpquota take ...
0
votes
1answer
58 views

Find Location of File and Overwrite (Windows 10)

I have a file that I cannot delete due to inadequate permissions. I've already tried to change the file permission properties via the Windows GUI however, it said that I didn't have read permissions ...
0
votes
0answers
40 views

Can't deny 'change' permissions on drive without also denying read permissions

I need to allow Read permissions but deny Write permissions on this storage drive, but I seemingly can't, using the permissions dialogue. How do I go about this? Running Windows Server 2012 R2.
0
votes
1answer
40 views

How can I create and edit files from a Windows file share on Linux (CentOS)?

I have a Windows shared drive that I have mounted on my CentOS 7 machine using the instructions by Red Hat that I would now like to create and edit files on. However I must be elevated to create and ...
0
votes
2answers
1k views

How to change ownership of a file in Windows 10

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 ...
0
votes
0answers
40 views

how to create file which can not change file name

I want to create a file which can't change file name on Windows or any operating system? I try ussing function "read-only" on Windows but it not working. Am I wrong somewhere? or any sussgest for me.
1
vote
1answer
341 views

Deny delete access for a user to file but allow it execute access

I want to set permissions so that an executable file cannot be deleted or renamed but can be executed. When I deny it to be deleted, also it can't be executed. Why? Is there a way to make it ...
0
votes
2answers
47 views

How to correctly set acl for www-data files?

I have web files stored on my server. Currently only the root has a full access: drwxr-xr-x 6 root www-data directory -rw-r--r-- 1 root www-data file.php The problem is that the developers ...
2
votes
1answer
91 views

Can't Delete Empty Folder

On my Win 10 machine. It's an old folder from a google backup (not mine). I have it sitting on a secondary drive and I can't delete it. Here's what I know / have tried. The folder name has a space in ...
0
votes
1answer
170 views

Windows 10, Folder Properties > Security > Add, no object type “computer” available

Some how-to guides, like this one, require modifying folder permissions for a computer on the local network. In other words, provide special access permissions to a folder on this pc, to another ...