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
10
votes
2 answers

Windows Service can't access network share

I have a Windows service running on my local machine. It's configured to run under NT AUTHORITY\NETWORK SERVICE. The program access a network shared drive on a computer in the same subnet. That shared directory has "Everyone" set to "Full…
Brian T
  • 203
  • 1
  • 2
  • 4
9
votes
2 answers

What should be the right logs permissions for NGINX on CentOS?

on /var/log/nginx/ I have access and error logs. Some are .log errors and others have .gz I think I messed up with the permissions. Some files are created by root/root, other files are created using the user configured in nginx.conf, etc. What…
Pikk
  • 339
  • 1
  • 6
  • 19
9
votes
2 answers

My server Admin wants me to set public write permissions on a directory

I'm relatively new to web development, so please be patient. I'm primarily an iPhone developer, but have recently done a site for someone else using shared hosting. I could write to files in PHP on that site fine, without having to think about…
Alex Coplan
  • 585
  • 1
  • 10
  • 19
9
votes
1 answer

etckeeper, Git checkout, and broken file permissions in /etc

I wanted to figure out why, after a etckeeper commit, I had a problem with rebooting (already solved thanks to this great thing). I played with etckeeper, did git checkout some_commit_sha for a quick look and then git checkout master. And it seems…
koddo
  • 215
  • 1
  • 4
9
votes
2 answers

Why can the root user edit read-only files, but a regular user with sudo access can't?

If you try to append to a file with no write permissions (say, the /etc/sudoers file which is is owned by root and has 0440 permissions), if you're the actual root user, this works. However, if you're another user using sudo, you get a permission…
fields
  • 690
  • 1
  • 10
  • 21
8
votes
1 answer

Managing Security Groups for NTFS Permissions

To start off with, I work for a company that a long time ago when they implemented file shares for each division, they also broke the cardinal rule of NTFS permissions and used explicit permissions for users on certain folders. To give an example of…
8
votes
4 answers

Stop users from saving files with specific extension in specific directories

Background Users who cannot be stripped from server administrator rights tend to forget that hell will break lose when they save database backups (.bak) on C: and fill the drive. Question Is it possible to stop users who are server administrators…
QWE
  • 261
  • 1
  • 3
  • 6
8
votes
1 answer

Should /usr/local/bin be owned by root?

Package manager Homebrew (I'm on OS X, but I'm curious about Unix-based security in general, as it pertains to directory permissions) set the owner of /usr/local/bin to my user (it's root by default, right?), which means that now I can install…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
8
votes
1 answer

Folder permissions, red x on user object

On shared folders on the file server, for the domain user name object under the security tab, the icon has a red x. There are no symptoms, the users have full access, there is just a red x on the icon for their name. Why is this? For clarification,…
Matt Bear
  • 874
  • 3
  • 12
  • 28
8
votes
1 answer

What do you do to fix corrupted or blocked permissions on company file shares?

Lately I have been working with one of our storage guys on a project that has involved some scrutiny of big file shares that have been used by the company for years. Frequently, we run into directories or files that are inaccessible to us (with…
ewall
  • 1,064
  • 3
  • 15
  • 23
7
votes
2 answers

how can I mount a windows share with rw access?

The question is in the title. Here is what I tried but the folder is read only. sudo mount -t cifs -o username=maazza,domain=MYDOMAIN //192.168.123.2/company-files /mnt/test I am on debian jessie. I read something about forcing an user id and a…
maazza
  • 254
  • 1
  • 6
  • 14
7
votes
5 answers

How to add a line to the end of a file which I can access via sudo?

I have tried: sudo "some string" >> test.txt But I am getting permission denied warning. Can anyone help?
ChrisInCambo
  • 1,751
  • 3
  • 15
  • 13
7
votes
2 answers

Tell Apache to create error.log/access.log as different user

If you tell Apache to use CustomLog files, Apache2 will create these files on startup. And it always gives them to user root:root. How can I change this behavior? Background Apache runs with SuexecUserGroup www-data www-data and at the same time, I…
BurninLeo
  • 900
  • 3
  • 12
  • 30
7
votes
2 answers

mysql doesn't start after relocating data dir

I have a web-server where the default installation of mysql places all its database files in /var/lib/mysql. The partition where /var is mounted has only 2GB of space, so after running in space problems, I decided to relocate mysql's data…
king_nak
  • 203
  • 1
  • 2
  • 6
7
votes
4 answers

Is it Secure to Grant Apache User Ownership of Directories & Files for Wordpress

I'm currently setting up WordPress on an Ubuntu server 12 everything runs fine but there is an issue when it comes to automatically updating and uploading media via WP as Apache "www-data" user does not have permissions to write to the directories.…
Oudin
  • 341
  • 2
  • 5
  • 10
1 2
3
64 65