Questions tagged [permissions]

In computing, permissions (often called "privileges," "access rights" or just "rights") are rules associated with objects on a computer or network. Permissions determine which objects can access which objects, and to what extent.

In computing, permissions (often called "privileges," "access rights" or just "rights") are rules associated with objects on a computer or network. Permissions determine which objects can access which objects, and to what extent.

For example, file permissions are rules placed on a filesystem object defining which accounts are allowed to access the object, and what actions those accounts can take on the object, such as read, write and/or delete.

3641 questions
41
votes
3 answers

Running Ansible task as a specific user

I am trying to run a specific Ansible task as a different user than the one who is running the playbook. My .yml file looks like this: --- - hosts: staging_servers tasks: - name: check user remote_user: someusername shell:…
errata
  • 543
  • 1
  • 6
  • 9
38
votes
9 answers

Need to fix file permissions in a user's home directory

Does anyone have a tool or script that will recursively correct the file permissions on a directory? On an Ubuntu Linux machine, a bunch of files were copied to a USB disk with full 777 permissions (user, group, other - read, write, execute) in…
mlambie
  • 1,221
  • 2
  • 16
  • 22
38
votes
9 answers

Which permissions/rights does a user need to have WMI access on remote machines?

I'm writing a monitoring service that uses WMI to get information from remote machines. Having local admin rights on all these machines is not possible for political reasons. Is this possible? What permissions/rights does my user require for this?
jpoh
  • 811
  • 1
  • 8
  • 13
37
votes
1 answer

Why doesn't SSHFS let me look into a mounted directory?

I use SSHFS to mount a directory on a remote server. There is a user xxx on client and server. UID and GID are identical on both boxes. I use sshfs -o kernel_cache -o auto_cache -o reconnect -o compression=no \ -o cache_timeout=600 -o…
Jan Deinhard
  • 2,383
  • 5
  • 26
  • 33
37
votes
3 answers

Copy a file's owner permissions to group permissions

How can I copy a file's user/owner permissions to it's group permissions? For example if the permissions are 755 I want them to become 775. Clarification: 755 -> 775 123 -> 113 abc -> aac Bonus if I can do this recursively for all files in a…
AnnanFay
  • 610
  • 2
  • 7
  • 13
37
votes
1 answer

What can user do with VIEW SERVER STATE permissions?

In SQL Server 2008 there is a permissions VIEW SERVER STATE. What rights this permission give to user? What SQL Server mean by SERVER STATE?
35
votes
8 answers

Bypass ssh key file permission check

I have an encrypted FAT volume (for compatibility) containing a private key file and other sensitive data. I want to connect to my server through SSH using my private key, but of course, as FAT doesn't support file permission, it ignores my key…
instanceof me
  • 495
  • 1
  • 5
  • 9
33
votes
8 answers

How to workaround the NTFS Move/Copy design flaw?

As anyone that has dealt with file server permissions is aware, NTFS has an interesting design feature/flaw known as the Move/Copy problem. As explained in this MS KB article, the permissions for a folder or file do not automatically inherit from…
David Archer
  • 599
  • 1
  • 6
  • 16
32
votes
5 answers

Is a reboot required to refresh permissions after adding a user to a new group?

On ubuntu server, I've noticed more than once now that after adding a user to a group that user doesn't have group permissions until I reboot the system. For example: User 'hudson' needs permission to read directory 'root:shadow /etc/shadow' So I…
Michael Prescott
  • 655
  • 2
  • 9
  • 15
32
votes
19 answers

How to convince a big boss that he does not need administrator privileges?

I've found a lot of times that "the big boss" in a company want to be able to install "anything" and to do anything in their computer. Of course we can tell him that it is bad because the IT system administrators lose control over the computer, and…
FerranB
  • 1,372
  • 2
  • 18
  • 28
32
votes
1 answer

Vagrant set default share permissions

When running a vagrant instance the project folder is mounted on /vagrant automatically. However is mounted with the following permissions # ll -d /vagrant drwx------ 1 vagrant vagrant 612 Jun 13 14:41 /vagrant/ I need it to be mounted with (at…
Fabio
  • 1,299
  • 2
  • 13
  • 18
32
votes
5 answers

Restrict access to IIS site to an AD Group

Is it possible in IIS to set up a site in IIS and only let users of a certain AD Group get access to it?
John
  • 345
  • 1
  • 3
  • 4
32
votes
1 answer

How does one get setfacl to set ACL permissions recursively on Linux?

I'm setting up a new server and wanted to give ACL a shot over the chown:chgrp:chmod style permissions. The man page for setfacl indicates that the '-R' option can be used to set the ACL recursively on files and directories. -R, --recursive …
Joe Holloway
  • 1,909
  • 3
  • 19
  • 17
31
votes
5 answers

Minimum permissions for a user to perform a mysqldump?

I want to start scheduling remote mysqldump crons, and I'd prefer to use a special account for that purposes. I want to grant that user the minimum permissions for getting a full dump, but I'm not sure the best way to go about that. Is it as simple…
Matt Simmons
  • 20,396
  • 10
  • 68
  • 116
30
votes
5 answers

chmod not working correctly in Docker

I'm building a Docker image for my Symfony app and I need to give permission to apache server to write into cache and log folders #Dockerfile FROM php:7-apache RUN apt-get update \ && apt-get install -y libicu-dev freetds-common freetds-bin…
storm
  • 403
  • 1
  • 4
  • 9