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
7
votes
1 answer

Do /usr/local and /usr/local/bin need to be group-writable? If so, why?

While it's possible that it's a fluke of a package I installed or the VPS image, it appears that /usr/local and /usr/local/bin (both of which are owned by root:staff) are group-writable by default on Debian Squeeze. Is there a reason that they need…
Isaac
  • 534
  • 2
  • 11
  • 24
7
votes
2 answers

Cronjob not running as apache

I have a cron job that runs a PHP script and creates files (images). But the cron job is running as me (being me my own username), not apache, nobody, httpd, www... and all the files created belongs to this user. If I run the the same script through…
rlcabral
  • 183
  • 1
  • 1
  • 6
7
votes
3 answers

A network share folder is invisible to users

I have a network share folder that I was recently cleaning up permissions to. I took off the four individual names from the access permissions to the folder, and added a new security group (Universal) with standard Read/Write permissions to that…
7
votes
3 answers

How to specify file permission when putting a file using OpenSSH sftp command

I am using various SFTP clients for uploading files to an SFTP server and I have a problem with default permission used when putting files. When requesting to put a file, SFTP client like WinSCP or Filezilla will send the SSH_OPEN command without…
Adi Roiban
  • 823
  • 3
  • 8
  • 12
7
votes
3 answers

How to set default umask for Tomcat webdav servlet?

The title says it all. I need Tomcat's webdav servlet to create files with rw-rw-r-- rights, but it keeps creating it as rw-r--r--. I tried to set up umask in /etc/profile, but it didn't help (although manualy created new files has desired…
calavera.info
  • 173
  • 1
  • 1
  • 3
6
votes
3 answers

How to Fix Directory with all Question Marks as Permissions

I'm using CentOS 7 and trying to list a directory's contents but can't. When I try to list the contents, I get the following output: [entpnerd@myhost ~]$ ls -ali /data/sharedlogs/otherhost/ ls: cannot access /data/sharedlogs/otherhost/vcs: Not a…
entpnerd
  • 165
  • 1
  • 6
6
votes
3 answers

Log file permissions in Linux

I am trying to write a simple script that monitors /var/log/messages file. The file by default doesn't have read permission for users, when I allow read access to this file my script works perfectly, but the problem is that file gets rewritten each…
Maksim Vi.
  • 167
  • 1
  • 1
  • 5
6
votes
6 answers

File permissions issue on OS X El Capitan and SMB share

Since we upgraded to OSX El Capitan we experienced some strange file permissions errors with our SMB server. We have a ubuntu server machine hosting our working files over a SMB shared folder to each of our Mac workstations. We use Git over SMB with…
Ambroise Maupate
  • 171
  • 1
  • 1
  • 4
6
votes
3 answers

Forward SFTP user to chroot subdirectory after authentication

I've set up a SFTP server using OpenSSH, everything works fine and the users I created can connect. After authentication, the users find themselves directly inside /chroot, a directory they are not allowed to write into. So I've put a /subdirectory…
zerodot
  • 221
  • 2
  • 6
6
votes
1 answer

Permissions when copying/moving on the same volume on a Windows 2008 R2 server

Does http://support.microsoft.com/kb/310316 still apply to 2008 R2? I see other questions here on SF like: How to workaround the NTFS Move/Copy design flaw? that discuss the issue, but I was searching around to see if that KB article still was…
TheCleaner
  • 32,627
  • 26
  • 132
  • 191
6
votes
3 answers

How to maintain file/folder ownserhip and permissions over time?

We have folders on a number of our (debian) servers that require various users (both real and system) to be able to read and/or write. We've come up with a particular file permissioning and ownership model that makes everyone happy but for a variety…
Torrance
  • 191
  • 6
6
votes
2 answers

Symbolic link to mysql database

I had to make a symbolic link on one of databases to another location on MySQL (Debian 6.0). So /var/lib/mysql/dbname points to /home/user/dbname, but MySQL gives MySQL error: 1017 (Can't find file: './dbname/tbl201206.frm' (errno: 13)) I have read…
John
  • 1,493
  • 3
  • 26
  • 46
6
votes
2 answers

Improved ACL editor for Windows file permissions

I have recently been doing a lot of updates to our network drive permissions... such as consolidating direct user permissions into group permissions. The built-in ACL editor (Advanced Security Settings dialog) is adequate, but its limitations are…
6
votes
3 answers

Can Linux file permissions be fooled?

I came across this example today and I wondered how reliable Linux file permissions are for hiding information $ mkdir fooledYa $ mkdir fooledYa/ohReally $ chmod 0300 fooledYa/ $ cd fooledYa/ $ ls >>> ls: cannot open directory .: Permission…
puk
  • 285
  • 1
  • 6
  • 18
6
votes
1 answer

Dovecot 2 /auth-userdb permissions

Error in log file: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +r perm: /var/run/dovecot/auth-userdb, euid is not dir owner) Section of 10-master.conf: service auth…
peg_leg
  • 93
  • 1
  • 1
  • 7