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.
1,323
questions
0
votes
2
answers
370
views
How do I make a folder have recursive permissive access (rwx for every user and no owner) regardless of who creates files/folders and when?
I have a folder called /shared on the root level of my file system. I want to store files in there and user/file permissions are not important.
I am using Fedora 38
I can do sudo chmod -R 777 /shared ...
0
votes
1
answer
2k
views
Can't change file permissions with chmod in mounted devices
So, I wanted to share my Media via ftp by creating a symbolic link in the home directory of a ftpuser, to my HDD's partition 'Fun Drive'. What I wanted was that the ftpuser couldn't write to the Media ...
0
votes
0
answers
32
views
Why is my Windows laptop reseeting file permission when I write to a file on a drive mapped to my macbook across same LAN?
When my Windows laptop writes to a file in a drive mapped to my macbook, on the same LAN, it changes the permission of the file
from "-rwxrwxrwx" to "-rw-------" which means I must ...
0
votes
1
answer
78
views
Unnamed folder in '/' appears as (permission denied) in xdiskusage, but not in ls -a
Somewhat scarce in space in my '/' partition, I ran xdiskusage, and found a folder marked (permission-denied), about 2 GB in size. It doesn't have a name (unless the name is also denied). I've never ...
1
vote
1
answer
684
views
Set-ACL rules for child objects
I have a PowerShell script to create a directory (if it doesn't already exist), and then make sure that only SYSTEM and local admin accounts have access:
#Create directory if it does not already exist
...
0
votes
1
answer
267
views
Lost file permissions after a couple hours in Windows
I have a user, using Windows 10, signed in on their Microsoft Account.
They have no problems when the machine has first started, but after a couple hours they get a permission error accessing .jpg's. ...
0
votes
1
answer
689
views
Why aren't owner permissions applied when executing a script with suid set?
I have a bash file that I want to run with owner permissions when executed by a group user. So I set the file permissions with:
sudo -u owner_user chmod 4750 bash_script
The file then has the ...
0
votes
1
answer
2k
views
Can't access samba share as another user from same machine
I am running a home server with Ubuntu 22.04. There are two users on the device A,B
The directories I want to share are
/home/A/Pool/ShareA
/home/A/Pool/ShareB
Now, when I access the share from a ...
0
votes
1
answer
252
views
File permissions changing after editing with Notepad++ on Windows 11?
I'm using a program which creates settings files in XML format.
Out of curiosity, I opened said XML file, changed the property that contains the name of the profile (not the file name!) and saved it. ...
0
votes
1
answer
42
views
Only allow Read file permissions for Default Users group while not overriding the Read & Execute permissions for default Administrators group
I'm trying to prevent standard users from being able to execute a specific .exe file while still allowing administrators to execute it.
If I edit the file's security settings to Deny Read & ...
1
vote
1
answer
110
views
mounted drives on raspberry pi os lite bullseye are presently unwritable without superuser privilege
i'm running a headless media server off of a raspberry pi in my home, but i am presently unable to write anything onto it via qbittorrent (using the qbittorrent-nox package to run via webui) after ...
0
votes
1
answer
314
views
How to replace permissions with Setacl
I currently have:
(SET _KEY=C:\Windows\SystemApps)
%~d0\Batch\SetACL.exe -on "%_KEY%" -ot file -actn ace -ace "n:%username%;p:full
%~d0\Batch\SetACL.exe -on "%_KEY%" -ot file -...
0
votes
0
answers
818
views
bypass permission error in python while creating file in drive c://
how can bypass permission error while creating or writing data in python
def os_commands(): # permission error
string = '# ::2 localhostttttttttt'
with open(r'C:\...
0
votes
0
answers
120
views
Windows 10 Photos app: how to fix "It looks like you don't have permission to save changes to this file"?
I created a video (.avi file) using CamStudio and saved it. Now I am trying to trim the video using Windows 10 Photos app. After I clicked "Save a copy" it says: "It looks like you don'...
1
vote
0
answers
51
views
Can I create a group admin role to have all file permission to files own by its group in a multi-users linux system?
There is a shared hpc cluster used by multiple research groups. For each reasearch groups its user accounts will be created under a dedicated group.
Here is the case, there are multiple users in a ...
0
votes
0
answers
167
views
Why does Windows assign different file permissions to files on exFAT and FAT32 filesystems?
The question in the title describes what I think is going on, but there are a few moving parts here. I was trying to copy two directories, namely folder_one and folder_two, from a Windows machine to a ...
1
vote
0
answers
253
views
How to make exclusive folder to specific user in windows 10?
I have some photos/files that I don't want anyone to see it.
We have a shared family PC which I am the adminstrator, I want to set a folder only accessible by my username on windows, Is that possible?
...
1
vote
2
answers
913
views
Disable user from seeing other users folders - windows permissions
I have a data server where users login with there credentials \\myserver.me.com\users\ and then inside it there is a folder for each user e.g Tom-Hanks-user1 is a folder for a user Maggie-Bryan-user2 ...
0
votes
1
answer
183
views
Files on SMB share not writable by "some" applications
I have a problem with a shared network drive where, in principle, I can create and modify files, but some applications give an incorrect function error (or similar) when trying to modify a file on ...
1
vote
1
answer
86
views
So when we open a file with "Run as adminstrator" which user we are using?
So when we click the "Run as administrator" in any program it doesn't ask for a password? so what user is performing operations there?
Here is what I'm trying to do - I'm trying to edit /etc/...
0
votes
2
answers
986
views
What does the permission "Take Ownership" do for a user that does not have administrator permission?
So, I was messing around in a virtual machine (Windows 7, but it should be the same in Windows 10) in which I was messing around with folder/file permissions, and then I wondered what would happen if ...
0
votes
0
answers
29
views
Will my command-line utility be able to store data in its own directory?
My go CLI app uses a directory to hold themes and other read-only data in a subdirectory of the app itself. On first invocation the app creates that subdirectory from data embedded in the .EXE. So if ...
3
votes
1
answer
3k
views
Error: Could not cleanup old kegs! Fix your permissions on:
I'm trying to run brew cleanup, yet running into following error:
Error: Could not cleanup old kegs! Fix your permissions on:
% brew cleanup
Removing: /usr/local/Cellar/ansible/6.6.0... (28,050 ...
0
votes
0
answers
470
views
Block file://domain opening in chrome
When users open any pdf with chrome browser, they can see cnc path and then browse to other user folders. How can I prevent this so they cant open local files via chrome. On so many websites forums no ...
0
votes
1
answer
175
views
Error message when trying to rename directory on NAS share with Windows Explorer
Using SSH from my Windows 10 Notebook I copied the folder SichTmp02122022_Profiles to the directory schr (both residing on the same Share of my NAS, a My Cloud EX2 Ultra) according to:
cp --no-...
0
votes
2
answers
3k
views
How to deny all permissions except read & execute to a folder for a user, using 'icacls' command?
We would like to change the permission of the folder which currently has full permission to a user with the parent inheritance with the full permission. I would like to apply 'Deny' permission to the ...
1
vote
1
answer
392
views
Why filename with weird chars can be created but not accessed via CIFS?
I have a filesystem with some old files, which were probably copied there with some windows encoding in filenames (and not UTF8). When I try to backup them to samba share (Hetzner Storage Box) via ...
0
votes
2
answers
373
views
What are the access rules of "Standard access rights" and "Object-specific access rights" in Access Mask
I used NtObjectManager to get permissions of the named pipe \\.\pipe\InitShutdown:
PS C:\WINDOWS\system32> $a = Get-NtFile("\Device\NamedPipe\InitShutdown")
PS C:\WINDOWS\system32> $a....
0
votes
0
answers
67
views
How can I delete this file with odd permissions?
I accidentally created a file without delete permission.
"Everyone" has the following permissions: and "OWNER RIGHTS" has no permissions at all.
In string form, the security ...
0
votes
1
answer
315
views
set the permissions on all the files and folders within a directory (CentOS 7.0 )
I kind of new to Linux/Centos world, is there any way to set the permissions on all the files and folders within a directory. I know chmod 777 will set permissions on the directory, but if it already ...
0
votes
0
answers
257
views
Cannot remove McAffee off my computer
I installed McAffee a while ago and just realized it is still running through my task manager. Using task manager's "go to file location" I found the exe is running from C:\Program Files\...
0
votes
0
answers
17
views
Stopping specific file types from being created [duplicate]
I got infected with the shortcut virus for the second time. In short, my question is: can I stop *.inf files from being created on a specific external drive(USB)? Maybe some drive settings or a ...
0
votes
1
answer
98
views
Is it possible to make a file readable only for a specific executable file on Linux?
I have a https server, which uses a json to save the login information (registered users and hashed passwords), but I'm afraid someone may break into the machine and steal this json file. I thought ...
1
vote
1
answer
497
views
What's wrong with my directory file permissions and how to copy directory's file permissions to another directory?
I'm dealing with two directories, the one being the parent of the other (but that's irrelevant for the question). I want to read the files in one directory, using an application, but that seems not to ...
1
vote
1
answer
236
views
Generate tree path with write permission
I need to know what folder I can read and what I can write into. But the file system is huge, so I can't test it one by one or just generate a huge list with a script. I need to have a kind of ...
1
vote
1
answer
515
views
does files on ntfs have uid and gid?
I see that NTFS files have SID.But I'm using ntfs-3g user mapping, I'm able to map UID to SID of NTFS file but unable to find windows GID of the NTFS file. Does windows NTFS files have a GID?
In Linux ...
2
votes
1
answer
832
views
Mounting ext4 and making active user own the files
OK, so I could not come up with a meaningful title, but the problem is this: I have a removable drive that I created on laptop A. There my user was the first created, so all files on the removable ...
0
votes
0
answers
66
views
Having problems with file permission on windows 10
This problem started when I put my HDD on another computer that has my OS. Some of my programs won't open because I don't have sufficient privileges. The message said to contact the administrator of ...
0
votes
2
answers
337
views
Windows 11 “object name c:\” permissions best security practices
Question:
Should I change “advance security settings” c:\ [owner] from “everyone” to “system” or “admin” because each time I try to save a settings with select permissions for users/admins I’m ...
2
votes
1
answer
5k
views
How to reassign uid:gid to all users and automatically fix all file ownerships and permissions?
I want to reassign new uid:gid to all existing users and automatically fix all file ownerships and permission.
The user names will stay the same just the uids and gids will be updated.
How can I ...
0
votes
0
answers
58
views
Is there a mount unionfs like system to manage permissions?
I have a cloud account with a folder on it. I mount it correctly locally using rclone on Ubuntu. Fine.
But all the files are owned by me, all with the same rights (let's say 0664). I would like to ...
0
votes
0
answers
87
views
What's the best way automate sorting files into folders based on a dictionary correspondence between the file name and folder?
I periodically receive a folder full of jumbled files that looks something like this:
[Alice A] Messages 2020-01-03.zip
[Bob B] Messages 2020-01-05.zip
[Carl C] Messages 2020-01-08.zip
[Alice A] ...
1
vote
1
answer
694
views
ACL wget permission denied
ls -la:
total 0
drwxrwxr-x+ 2 root root 4096 Jul 11 21:40 ./
drwxrwxr-x 2 root root 4096 Jul 11 21:40 ../
the permissions on . have a plus so ACL is active...
getfacl .:
# file: .
# owner: root
# ...
0
votes
0
answers
61
views
Cannot deal with some files even as a su: "-rw-r--r--" vs "-rw-r--r-"
I have a few files that I cannot deal with
(e.g. head filename gives me head: filename: Permission denied).
xattr with these files shows / does nothing.
Here is an example session:
vlad@MacBook-03:~/...
0
votes
0
answers
83
views
Unable to delete a file that I am able to see and rename, showing file not found error on windows 10
I am unbale to delete a folder 'abc' neither it's inside folder 'history'. It shows 'Item not found' error.
However, if i try to rename these files, I am able to do so.
Moreover, even if i shred it ...
0
votes
2
answers
757
views
permissions of id_rsa.pub as 644 (-rw-r--r--) but the parent folder .ssh as 700 (drwx------)
I have a use case where my program needs to read the id_rsa.pub file under /root/.ssh folder.
The default permissions for id_rsa.pub are (-rw-r--r--) and for .ssh folder they are (drwx------)
This is ...
0
votes
1
answer
1k
views
Windows permission: Unable to create file despite having permission
I have a directory that have the same NTFS permission as another. But I cannot create any file in it while I can in the other one. However, anything else seems to be normal, I can modify existing ...
0
votes
1
answer
2k
views
How to revert ReadOnly permission changes on AppData folder?
Background
I have Windows 11 Pro on a Lenevo Thinkpad T14.
Today, I was trying to install some software. Long story short, I got an error that said "Cannot write to AppData folder", so being ...
0
votes
0
answers
699
views
Deny cut and paste from a folder on file server
I have a folder and I need that users can not cut and paste file from this folder (and its subfolders) to other path in their computers.
Is there a solution to implement this?
thanks,
0
votes
1
answer
819
views
Accidentally changed permissions of /usr/lib to 777
I apologise in advance for poor formatting because my laptop isn't working anymore. I'm on mobile.
I accidentally changed the permissions of /usr/lib to 777 (recursively, with -R). Everything was ...