Questions tagged [file-permissions]

Most current file systems have methods of administering permissions or access rights for specific users and groups of users. These systems control the ability of the users to view or modify the contents of the filesystem.

Permissions on Unix-like systems are managed in three distinct classes. These classes are known as user, group, and others.

Permissions on Windows systems can be granted to users, groups, computers, or other built-in security principals such as SELF or CREATOR OWNER.

Permissions are generally configured in an Access Control List (ACL, pronounced ackle) with each entry in the list being referred to as an Access Control Entry (ACE).

965 questions
16
votes
3 answers

Program file exists in /usr/bin, but cannot be used

Clearly my file exists in /usr/bin $ ls /usr/bin/ngrok /usr/bin/ngrok However, when I attempt to chown it I receive an error $ sudo chown my_user:users /usr/bin/ngrok chown: cannot dereference '/usr/bin/ngrok': No such file or directory Further…
Jorik
  • 177
  • 1
  • 3
16
votes
2 answers

setfacl to reset file to default permissions?

I have a directory with the following default ACLs: default:user:phptutor:rwx However, none of the files/directories in that directory have that default permission (because it was added after they were created). How can I copy the default ACLs of a…
hopeseekr
  • 281
  • 1
  • 2
  • 9
15
votes
9 answers

wget starts downloading then stops "cannot write to"

I'm using wget to mirror some files across from one server to another. I'm using the following command: wget -x -N -i http://domain.com/filelist.txt -x = Because I want to keep the directory structure -N = Timestamping to only get new files -i = To…
John Mellor
  • 310
  • 1
  • 3
  • 9
14
votes
1 answer

What is a S-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX-XXXX called in Windows security?

I copied two trees, a source and a destination, that I copied with robocopy like this: robocopy /MIR C:\Windows\System32\tasks\ C:\temp\robocopyTasks\out\ robocopy /E /Copy:S /IS /IT C:\Windows\System32\tasks\ C:\temp\robocopyTasks\out\ Then I…
leeand00
  • 4,869
  • 15
  • 69
  • 110
14
votes
5 answers

Copy file permissions, but not files in Unix

(From : https://stackoverflow.com/questions/15245144/copy-file-permissions-but-not-files, closed because off-topic) I have two copies of the same directory tree. They almost have the same files in both (one version may have a couple extra or missing…
Mariano Paniga
  • 261
  • 2
  • 9
14
votes
1 answer

What is the t in drwxrwxrwt or the value of t?

ls -al / shows a folder: drwxrwxrwt 2 root root 4096 Feb 26 09:00 tmp What does the last character t mean in drwxrwxrwt?
ohho
  • 1,005
  • 8
  • 19
  • 34
13
votes
2 answers

apache2: Saves files on /tmp in a 'system-private-[hash]' instead of just saving folders as defined in the code

For some reason, when I try to save a file (generated by PHP under /www/appname/module) - it is saved under /tmp/systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08 and when aiming files to get saved under /tmp/somename…
Rick Sanchez
  • 241
  • 1
  • 2
  • 11
13
votes
3 answers

Can Samba support full Windows-ACLs?

I've set up a Samba 3 host with AD integration and an ACL enabled filesystem. Using a windows client I can set users and groups permissions. Up to now, Samba just maps to POSIX ACL's rwx permissions, which prevents me from using "Modify" or "Full…
13
votes
4 answers

How do I force specific permissions for new files/folders on Linux file server?

I'm having an issue with my install of Ubuntu 9.10 (file server) and its samba permissions. Logging in and reading works fine. However, creation of new directories by users restricts access for other users. For instance, if Bob (Windows user who…
humble_coder
  • 533
  • 2
  • 6
  • 14
12
votes
1 answer

Nginx doesn't have permission to access files with the same ownership

i've just installed nginx on an Archlinux box and encounter this problem: Nginx is configured to run as "nginx", a new user/group that I added, in /etc/nginx/nginx.conf: user nginx nginx; For doublecheck: $ ps aux | grep nginx nginx 9678 0.0 …
Lamnk
  • 1,095
  • 3
  • 11
  • 17
12
votes
2 answers

Unable to assign group permissions with ICACLS on Windows Server 2012

I cannot get icacls to accept my group for adding permissions. I am using an elevated power shell with the following command: icacls 'C:/foo' /grant:r 'Group Foo':f I get the following error: Invalid parameter "Group Foo" I have tried using the…
12
votes
3 answers

FTP and Apache permission issues

Im having issues as to which user should own my www directory - ftp or apache? When set to the ftp user, the user can add, remoe and easily modify files but php file system actions generate permission denied errors (ofcourse because they require the…
kehers
  • 351
  • 1
  • 3
  • 6
11
votes
2 answers

What is the best way to fix NTFS file permissions to inherit parent?

When XP clients move files on the same volume, the permissions are moved with it. With Windows 7 clients and up, when a file is moved, the permissions are inherited. Unfortunately, we still have a lot of Windows XP clients which after time causes…
Ryan Mortier
  • 498
  • 3
  • 8
  • 19
11
votes
2 answers

How are r-- directory permissions supposed to work on Linux?

I have created directory a created has these permissions - the other user has drwxr--r-- 5 user user 4096 2012-09-15 19:30 sites When do an ls -l on the directory as another user ls -l /home/user/sites this is the directory output. I…
vfclists
  • 1,632
  • 5
  • 22
  • 37
10
votes
2 answers

DFS replication and the SYSTEM user (NTFS permissions)

Question for which I'm having trouble finding an answer on Google or Technet... Does granting the SYSTEM user permissions to DFS-shared files and folders have any effect on DFS replication? (And while we're at it, is there any good reason not to…
HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
1
2
3
64 65