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
6
votes
3 answers

How do I add permissions to group to match user permissions?

Some one messed up /usr/local/ permissions, so that nobody else can access it. Now I would like to duplicate user permissions to group permissions, since chmod g+rx -R /usr/local is unsafe. How should this be done? Using linux (ubuntu 10.04).
TiansHUo
  • 175
  • 8
6
votes
1 answer

403 Forbidden error on Mac OSX - Apache and nginx

There are a million questions like this on Google, but I haven't found a solution to my problem. The default Apache install on my Mac is giving 403 Forbidden errors for everything (default directory, user home directory, virtual server, etc). …
Tom Lianza
  • 331
  • 1
  • 3
  • 11
5
votes
2 answers

Linux complex file sharing between users

Let's start with the elephant in the room: I have no formal training and I've been given a couple of small servers to manage for various, off-topic reasons. This to say that my knowledge is patchy. Please bear with me. One of the servers is…
theuncle2k
  • 51
  • 1
5
votes
2 answers

Application logging broken under Tomcat 9: permission denied to /var/log/myapp

I have a Java webapp that runs under Apache Tomcat on Ubuntu Linux. When I upgraded from Tomcat 9 from Tomcat 8, the application was no longer able to write log files to /var/log/myapp. I can't figure out why it doesn't have permission to log to…
5
votes
1 answer

File Permissions have Question Marks? How did this happen? How to scan for them?

I have a bunch of files that are messing up my backup system (via rsync). The permissions are all question marks. How does this happen? How do I find them / scan for them? This partially breaks my backup system and I need to clean them up before…
5
votes
1 answer

What is the difference between aclinherit and aclmode?

ZFS filesystems can have the aclinherit and aclmode properties set on them to control how inheritable ACL entries interact with object creation and Unix-style permissions operations. Unfortunately, the official documentation is a bit…
Kevin
  • 1,580
  • 4
  • 23
  • 35
5
votes
4 answers

Permission issues with Samba and OS X

I'm having some serious permission issues with Mac client machines (OS X Snow Leopard) connected to a UNIX server (running CentOS) through Samba. No matter which permissions I set for a file on the server, the Mac ignores them and changes the…
synchronicity
  • 85
  • 1
  • 2
  • 7
5
votes
1 answer

Are directories with mode `drwxrwxrwt` safe in /tmp on a *nix system?

drwxrwxrwt 2 root root 4096 Aug 20 2015 .font-unix drwxrwxrwt 2 root root 4096 Aug 20 2015 .ICE-unix -rw------- 1 root root 0 Aug 20 2015 ipt.err -rw------- 1 root root 90 Aug 20 2015 ipt.out drwxr-xr-x …
John
  • 887
  • 4
  • 15
  • 25
5
votes
3 answers

Linux mysql server will not start, or restart

Intro Im running MariaDB and Apache on my linux machine and today I ran into some problems. I connect to the server via SSH and here are some of the issues Im facing. I have absolutely no idea what Im dooing here. What I am doing Step 1: mysql -u…
Oldenborg
  • 153
  • 1
  • 1
  • 5
5
votes
1 answer

Any way for openssl to generate private key with 400 (-r--------) permissions from the start?

I use openssl to generate private keys and CSRs in a script. The script needs to generate the key first, then call chmod 400 whatever.key to change the permissions of the private key to something more secure. Is there any way to eliminate the…
thomasrutter
  • 2,527
  • 1
  • 25
  • 34
5
votes
1 answer

Can't execute files in particular directories

We are encountering a bizarre issue were non-root users are unable to execute any files (scripts or binaries) in certain directories. This transcript demonstrates the issue: [root@b6 /]# mkdir q [root@b6 /]# cp /bin/echo . [root@b6 /]# cp /bin/echo…
AgileZebra
  • 151
  • 5
5
votes
4 answers

umask for www-data user running PHP on Ubuntu

Setting up a new webserver in Ubuntu 14.04 and trying to wrangle file permissions for PHP generated files. By default, all the directories and files in /var/www are owned/grouped to www-admin. Directory permissions are rwxrwsr-x and file permissions…
HorusKol
  • 751
  • 5
  • 13
  • 31
5
votes
1 answer

What security mechanism prevents write access to certain folders in Windows?

There are certain folders in Windows 2012 R2\8.1 where the contents are not writable - one example is Program Files\WindowsApps (which stores apps downloaded from the Windows Store). Obviously this is by design - to prevent people from modifying…
5
votes
2 answers

correct file system permissions for joomla installation on linux

My question is pretty general. Lets assume I have a linux distribution web server, with the /var/www/ is the web directory. I used my superuser account to upload and unzip the Joomla installation .zip folder. The linux system user for web users is…
jeffery_the_wind
  • 255
  • 2
  • 4
  • 9
5
votes
2 answers

How to copy the permissions of a file to another?

Say I have two files: -rw-rw-r-- 1 webapp webapp 215 Jun 21 2012 index.php -rw-rw-rw- 1 root root 58 Dec 17 11:02 patch.log I would like to give patch.log the same permissions as index.php. I can do it manually: chown webapp:webapp…
BenMorel
  • 4,507
  • 10
  • 57
  • 85