Questions tagged [permissions]

Access and restrictions of files, documents, accounts, computers, etc.

Filter by
Sorted by
Tagged with
1 vote
0 answers
8 views

Docker volume has permissions of Docker host user, not container user

I just moved my work data from a partition with Ubuntu to a partition with Fedora (more space). I'm running a container where the container-user is root and the Docker-host-user is me (id=1000, gid=...
user avatar
  • 11
0 votes
0 answers
26 views

bash: patch.exe: Permission denied; how to turn off security regarding 'patch' in program name in windows 10?

I stumbled upon a problem patching a .diff file using patch. I use bash under windows 10 and the result of of this operation is as follows: $ patch < patch.diff bash: /cygdrive/c/cygwin/bin/patch: ...
user avatar
  • 166
0 votes
0 answers
27 views

How do I apply the acl permissions for ALL files (those in sub-directories too) without changing folder permissions?

Need to give new user acl permissions on linux server without changing existing chmod permissions. New user doesn't belong to any group and doesn't own files. User needs to be able to write and read ...
user avatar
  • 1
0 votes
0 answers
27 views

Issue with add Multiple user account and SSH key using Bash script

As per our requirement we provided our devloper group: devs:r-x to /var/log/httpd directory. What is the best way to create a user account (in my case Dev User) in a Group using bash scrip, with the ...
user avatar
9 votes
1 answer
2k views

chown - Operation not permitted even as root user

I'm trying to chown a specific USB drive folder that has been mounted on my RPI 400. This is my lsblk -f result: sda1 exfat 1.0 WD Media 0C23-43CD 1.8T 0% /mnt/WD ...
user avatar
  • 91
0 votes
0 answers
20 views

Tool to find DELETE PENDING ghost files in Windows [closed]

I have discovered some "ghost files" in Windows Server 2016, which give access denied messages when trying to use them, but on close inspection are actually marked as DELETE PENDING. Are ...
user avatar
  • 111
0 votes
0 answers
35 views

Faking write permissions on Linux

Is there a way to make a file on GNU/Linux pretend to be changed, so that a write call says it succeeds, but the file remains unmodified? I have tried sudo chattr +i ./file and changing the file to ...
user avatar
0 votes
0 answers
28 views

How do I configure my Windows 10 so I can get read and execute rights but not copy rights on two .exe files, assuming it's possible?

I want to have in my user account read and execute rights on a couple of executables but without the ability to copy them. Searching in internet it doesn't seem possible with regular permission ...
user avatar
1 vote
0 answers
22 views

Installed Windows 10, file permissions causing all sorts of problems with cygwin

A little bit about my setup: Was previously running Windows 7 with 0Patch, finally installed Windows 10 (clean install). All of my data is stored within an encrypted VHD (TrueCrypt/VeraCrypt) on a ...
user avatar
0 votes
0 answers
24 views

How to enter gvfs on terminal as the superuser?

I am trying to access gvfs as the superuser but I can't for some reason; whenever I try to do so, I get this: ls: cannot access 'gvfs': permission denied Any idea why this happened and how to enter ...
user avatar
0 votes
1 answer
42 views

chown: changing ownership of '/etc/sudoers'

I want to work with kusnetes of AWS.  I tried to install AWS CLI, https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html This command: curl "https://awscli.amazonaws.com/...
user avatar
0 votes
0 answers
19 views

Allow users to edit files in a folder but not create new ones

I am trying to restrict file creation in a particular NTFS shared folder containing .xlsx files. We need users to be able to still edit and save the existing files. So far, I have tried setting ...
user avatar
  • 1
0 votes
0 answers
61 views

Why does SFTP return "permission denied" even when user has highest privileges?

that seemed to work-> sftp .. garyfiles@127.0.0.1 (on the same muchine) I want to implement an FTP over two Linux(Ubuntu 20.04) munchies in order to allow a user to upload files into my server ...
user avatar
0 votes
0 answers
10 views

Issue with User Group Function

We have a ‘devs' group and we want our developer to access the ‘httpd' directory in '/var/log/' to be readable by the users in the 'devs' group so we set their permission in our dev server. “group:...
user avatar
0 votes
0 answers
6 views

Assign "Read" permission to files in Chrome (Android 11) [migrated]

I want to open/read my HTML file in Chrome (Android 11). It can be displayed when deployed over an HTTP server. However, I want to read it locally from internal memory. It seems that newer Androids ...
user avatar
-1 votes
0 answers
32 views

Trying to remove folders; Keep getting "Can't Enumerate Objects in Container. Access is Denied"

I'm removing files that have no use to me, and I'm not able to remove the last two. The success I have had has been with a rather tedious process of accessing a Folder's properties, changing the owner ...
user avatar
0 votes
0 answers
31 views

SFTP user permission denied

I have created a new sftpuser with below format. sudo adduser --shell /bin/false sftpuser sudo passwd sftpuser sudo mkdir -p /var/sftp/files sudo chown sftpuser:sftpuser /var/sftp/files sudo chown ...
user avatar
0 votes
0 answers
26 views

issue with 0x80070005 restricted access

I have 2 drives (C and F), on drive F there's also another windows installation with the same username as on C I didn't formated the drive F during windows installation on drive c because I don't have ...
user avatar
0 votes
1 answer
24 views

How to remove group and others permission in Windows 10

How to remove group and others permissions in Windows 10, such that end result will be similar to chmod go= -R ~? I can execute the Linux command even though I am not a superuser/admin and I am not ...
user avatar
  • 125
0 votes
0 answers
22 views

How to restrict the system account of a specific windows system from accessing a drive

I installed two windows 10 operating systems on my computer. For some reason, I don't want the system account of one of the windows operating systems to modify the files on this disk, and I don't want ...
user avatar
0 votes
1 answer
35 views

How to restrict permission to execute system-wide on Windows

Alternative title: How to change the default (system-wide) permission to execute files? I installed a new Windows 11 Pro System (not for me) and now I have to protect the system from viruses. I don't ...
user avatar
  • 101
1 vote
1 answer
40 views

Accidentally changed owner of `/etc/sudoers` to non root. Can't sudo or revert

On Raspbian, tried to change permission for /etc/sudoers.d/octoprint-shutdown to pi user to edit the file and it worked but now I can't sudo anything. The command I used to break it: pkexec chown pi:...
user avatar
  • 123
0 votes
1 answer
19 views

Error while transferring file permissions

I ran into a problem, wrote a script that compresses pdf files through a program and transfers rights to a new file by copying from the old one to differentiate access to new files. Here is the part ...
user avatar
1 vote
1 answer
30 views

Permissions depend on from where the command is executed

I have encountered a very strange behaviour I do not know how to solve: the action permissions depend on where the command is executed. My situation: I set up a Nextcloud server on a Raspberry Pi 4. ...
user avatar
  • 113
0 votes
0 answers
13 views

file association disallowed when move progs to different folder

I have many small programs in a folder called c:/mmm I have been using them for a long time without problem. I moved them to a subfolder called C:/mmm/nnn. that broke file associations, as expected, ...
user avatar
  • 21
0 votes
0 answers
14 views

how to give a permission to only specific OU to access shared drive? - windows server

0 There is an instruction to set up a Z drive as a shared drive, and give access authority only to A department. Department A is made by OU.The problem with this is that settings that give read/write ...
user avatar
0 votes
0 answers
9 views

Revoke FTP permissions to subfolder for a certain user

I'm working in a web project to which several people can access to the FTP. There is a particular user that should no access to a certain sub-folder, so I would like to revoke the access to it. The ...
user avatar
  • 118
0 votes
0 answers
27 views

Give domain user access to samba folders without join the Ubuntu server to the domain

In our environment, we have an Ubuntu server which is not a domain member. this server have also SAMBA service, and so far we use to access the files and folders (from the domain) via the local ...
user avatar
0 votes
2 answers
54 views

Method to set permissions equal to or less than something like "0740" in Linux

I want all files in every user's home directory to be 0740 or less permissive. Let's say a user has perms like this: -rwxr----- 1 doej users 321 Jan 6 2013 file1.txt -rwxrwx--- 1 doej users 555 Jan 6 ...
user avatar
2 votes
0 answers
32 views

How do I fix a quantum group membership? (I'm in the group, unless I look at the group, in which case I'm not in the group)

This happened (explanation on how we got to this below): PS C:\> Add-LocalGroupMember -Group "Network Configuration Operators" -Member myuser Add-LocalGroupMember : MYLAPTOP\myuser is ...
user avatar
0 votes
0 answers
47 views

When using su to switch to a non root user, su fails to launch the user's shell program despite seemingly good permissions on everything

The error always looks something like this, depending on which shell is configured in /etc/passwd. su: failed to execute /usr/sbin/jk_chrootsh: Permission denied OR su: failed to execute /bin/bash: ...
user avatar
  • 109
0 votes
0 answers
19 views

SFTP Editing the file changes the file owner [duplicate]

I have installed VSFTPD. All the files are owned by the root user and siteadmin group. chown -R root:siteadmin * SFTP user: myuser This SFTP user is also part of siteadmin group. So, chmod -R 770 * ...
user avatar
1 vote
1 answer
53 views

Rsyslog logs readable by all users

I have an rsyslog instance in a RHEL8 linux server that is used to collect logs from other systems. That works fine, and it stores all the logs in the /var/log directory with following format /var/log/...
user avatar
0 votes
0 answers
86 views

Why do I get permission denied when mounting drive as root?

I am trying to mount a USB drive on my Linux computer. But whenever I try to mount it gives me this error: root@penguin:~/drives# mount /dev/bus/usb/001/002 drive1 mount: /root/drives/drive1: ...
user avatar
0 votes
0 answers
45 views

Using iptables inside an unprivileged (rootless/fakeroot) network namespace results in permission error with `/run/xtables.lock`

I'm using unshare to create an unprivileged network namespace: unshare -Unr This gives us a network namespace that should be capable of using iptables. However upon running it: iptables -L We get: ...
user avatar
0 votes
1 answer
37 views

need to create a batch file to run at logon of each user to check for folder with its user ID in path & create if not ther, apply full control to user

This script creating folder but it is applying permissions to all the users who ever logged into the server. if not exist \\xxxxxxx\userhome$\%username%\ mkdir \\xxxxx\userhome$\%username% || goto :...
user avatar
1 vote
0 answers
45 views

Run script with root permission as normal user

Problem: How can I run a script owned by root with root permission as normal user? Let's take for example a folder /path/to/folder. First I make sure that the folder and all content is owned by root: ...
user avatar
1 vote
0 answers
28 views

NTFS with UserMapping under Debian (LMDE 5)

I've a dual boot system with Windows 10 and LMDE 5. I'd like to setup file permissions correctly when mounting windows NTFS partitions. The .NTFS-3G/UserMapping was created correctly. When using sudo ...
user avatar
  • 121
0 votes
0 answers
26 views

How to unmount a mountpoint I mounted with FUSE earlier, after `sshfs` process is gone?

I used sshfs example.com:/path/to/remote/directory foobar to successfully mount a remote directory at a mountpoint I created with mkdir foobar (I own the directory). But the mounting was done on a ...
user avatar
  • 2,134
0 votes
0 answers
42 views

How can I allow all users to read/write/modify/delete files on Samba share? (re: home network)

I'm having difficulty understanding file/directory permissions especially with Samba. On my server (Debian 11, Samba 4.13.13), I've created several different users and added them to samba (ie. ...
user avatar
  • 1,175
1 vote
1 answer
35 views

How to Manage SSH Key Permission in NTFS When Sharing Among Multiple System

I often work with remote hosts on multiple devices, mostly Windows and Linux machines. To avoid deploying my SSH keys everywhere, and circumvent the hassle of syncing SSH configuration, I put my SSH ...
user avatar
0 votes
1 answer
34 views

how to call bash function on login as root user

I'm using Arch (with Xfce) and need to run a bash function when I log in to my OS. The function that I wrote, needs to be run by root access. This is the function: my_func() { sudo -v sudo chown ...
user avatar
  • 101
0 votes
0 answers
195 views

Linux in QEMU / UTM VM: davfs2 mount works but has root access only

Using a Macbook M1 running Ubuntu 20.04 (arm64) under UTM virtualizer (is QEMU based) works fine, but I cannot access the host file system. I shared a host folder using the UTM interface and that ...
user avatar
0 votes
2 answers
72 views

SSH not working after creating ~/.ssh/config: "Bad owner or permission"

I am new to the Linux world and trying to learn how to use SSH with LearnLinuxTV; the author, Jay, created a user ssh_config with: Host myserv Hostname xxx.xxx.x.xx Port 22 User root I can ...
user avatar
  • 1
0 votes
0 answers
44 views

chmod 000 permission macOS

I'm trying to change the permission of a test file on my Mac using the command chmod. Everything is ok except for the user permission that doesn't change. How can I fix the problem? I have already ...
user avatar
0 votes
0 answers
43 views

GIT and SSH Setup on Ubuntu 20.04

First of all, I am very new to Ubuntu so I am very sorry for probably making some beginner mistakes. What i have to do: Setup GIT and SSH What I did so far (step by step): create key ssh-keygen -t ...
user avatar
  • 1
0 votes
3 answers
204 views

rsync permissions errors at destination even though root, possibly due to sticky bit?

I'm using rsync to backup local files to a usb disk. That has been working fine for years, but now rsync is reporting filesystem permission errors, even though run as root on a rw filesystem. This is ...
user avatar
  • 3
0 votes
0 answers
31 views

Windows 10 Pro: Various issues with missing privileges

Our company received two Dell OptiPlex with Windows 10 Pro preinstalled from a contractor. While trying to install a certain Commercial off-the-shelf software, we were experiencing strange issues ...
user avatar
0 votes
0 answers
26 views

Migrate files and programs to new User on Windows

I have been using a Windows 10 computer that was tied to an old Microsoft Account. I am trying to migrate my files and programs to a new User Account that I tied to my new Microsoft Account. Both ...
user avatar
-1 votes
1 answer
81 views

Samba server permissions

I have a Ubuntu server installed on the "server" with 5 users (+ root + transmission). These 5 users (omichron_group) are windows/mac users. I tried to read the samba manual/doc but i ...
user avatar

1
2 3 4 5
82