Permissions are the unix way of controlling access to resources such as files, directories and devices and may be specified for an owner, group, or all users.

learn more… | top users | synonyms (1)

3
votes
2answers
81 views

Restrictive “group” permissions but open “world” permissions?

I understand that with Unix file permissions, there's "user", "group", and "world" octets. For the sake of this discussion, let's assume that setuid/sticky bits don't exist. Consider the following ...
0
votes
2answers
155 views

touch: cannot touch ‘test’: Permission denied

I try crate file in directory but get touch: cannot touch ‘test’: Permission denied commands: [user@xxx api]$ ls -l total 184 ... drwxrwxr-x 2 root root 4096 2016-04-12 14:38 public .. ...
0
votes
0answers
43 views

Authentication required to edit Sudoers - User not listed

I made a small typo in my sudoers file, nothing a simple pkexec can't fix. The problem is that when I added my user with "adduser name" and added "name" to visudo, as well as the root and sudo ...
2
votes
1answer
54 views

Setting a disk space quota on a samba share residing on an ZFS pool

I have several samba shares, one of which is used for storing some backups. I want to set a disk space quota on said share, as the ZFS volume the share resides on is huge and multi-purpose... I don't ...
1
vote
1answer
36 views

Where does Linux track who is a group admin through the gpasswd command?

If I modify group membership and admins using the gpasswd command and add a user as a group admin Linux will allow that user to perform tasks otherwise reserved by root. Ex. [test1@centos ~]$ ...
-1
votes
3answers
35 views

changing permission after copy the directory? [closed]

I have two directory in two different path there are some common subdirectories and files between them I want to copy the content of first directory to the second one meanwhile I need the same ...
1
vote
2answers
26 views

Is it bad practice to call scripts from a users home dir from root tasks (eg. dhcp hooks)? [closed]

I have some small script that run at startup and on other events (for example, one that updates a dynamic dns hostname based on the machines IP changing). I would like to keep everything in my home ...
2
votes
2answers
27 views

User Admin - View Permissions when 750 is used for home

apologies if this question is caused by a fundamental misunderstanding. But as main admin of a server: I want to make it so that users cant see each others home folders. (so I chmod 750 the home ...
0
votes
2answers
30 views

How to isolate my browser?

I want to protect my data against a browser exploit, by forbidding Firefox to access any file beside : ~/.mozilla/ ~/Downloads/ I tried to create another user account with which I would run ...
3
votes
2answers
54 views

Primary and secondary groups

So I've got the basics of primary and secondary groups down, but still have some questions I can't seem to find solid answers to: Can many users belong to the same primary group? Can one user's ...
0
votes
0answers
29 views

Enable Apache(UNIX) to write on a Windows SMB Share

I want to connect a virtual SMB drive to a Linux server to let peoples save their files/data in a "cloud". To do this, i'm using wordpress, and now what i have to do is to let the apache User write on ...
3
votes
3answers
49 views

What are the conventional file permissions per filetype before umask is applied

I am looking for a list that specifies the conventional file permission of all the different file-types before the umask is applied. I read in man 1p touch that the default for a regular file is: ...
0
votes
0answers
99 views

SFTP connection using public key (without password) not working

I need to provide sftp access to a client to my ftp server and this is working fine. For them to access our server without using password - we have followed the below steps on our server. Created ...
1
vote
1answer
34 views

How to avoid that Geany editor changes owner of file when it's edited?

I use Geany to edit files in a web app that resides in /var/www. The owner and group of /var/www and all sub directories and files are www-data:www-data. My user account is a member of that group and ...
1
vote
3answers
62 views

Predefined group ids across Linux distros?

In order to successfully implement w/r access via ACL for external storage with ext4 fs I need to assign default group id for files on storage. LSB_5.0.0 say: This specification makes no attempt to ...
0
votes
1answer
36 views

Why can I delete a file that doesn't belong to me? [duplicate]

This should be an easy one... I have the following situation in my ubuntu server (ftpuser is not in the root group): ftpuser$ ch /var/www/ ftpuser$ mkdir test ftpuser$ chmod 775 test now login with ...
0
votes
1answer
21 views

Setting the SUID for the user at the beginning

I want to add suid. The folder has this permission drwxrwxrwx and I want to change it to srwxrwxrwx. Everything I have tried and read about replaces it at the end of the groups. How can I make it so ...
0
votes
1answer
27 views

About file permissions and file owner

I was trying to install a Joomla on my Macbook Air under XAMPP. I successfully installed it, but when I try to open the front-end, I keep getting this mkdir():permission denied error. Two questions ...
1
vote
0answers
28 views

Access directory as a different user

On a Debian (Jessie) server provided by my university, I have a mounted directory (say it's /MagicDir) that can only be accessed by one user (say magicuser). Not even root can access this directory! ...
1
vote
1answer
37 views

What are the filesystem permissions for a cron job?

I'm working on a production server. It has some daily cron jobs, and here's the filesystem permissions on them: cron.daily$ ls -Al total 24 -rwxr-xr-x 1 root root 332 Dec 3 10:33 0yum-daily.cron ...
1
vote
1answer
47 views

Adding user to ownership in addition to another user [closed]

I had some problems with permissions, the programmers of my website wanted me to add the admin user to the apache group and then set some permissions. My knowledge of Linux is quite limited, so I ...
1
vote
1answer
35 views

How to set up permissions on external hard drive in order to use it to backup using rsync?

So I have recently installed arch linux, and I was looking into a good way to back up my data. Looking at the wiki, I decided I followed this gude: ...
0
votes
2answers
45 views

Apache and symbolic link in /var/www/html

I'm trying to create a symbolic link to /home/user/www from /var/www/html so I can access the directory in my home folder from the URL: http://localhost/www/ I did: ln -s /home/user/www /var/www/html ...
0
votes
0answers
42 views

Arch linux filesystem permission read-only

I've just installed Arch Linux and done some installations and thought I'm done, but I figured out that I have no permission to write to my file system or do anything. It's just read-only as in the ...
0
votes
1answer
32 views

Minimum file permissions to rename file

I put a 64-bit ELF file in my unprivileged user's home directory. I wonder which permissions do I need to have only possiblity to rename this file being logged in as unprivileged user. From what I ...
0
votes
1answer
35 views

FTP - user to upload file to different user's directory

I installed vsftpd and configured SFTP. I have a standard user who is named, let's say, user1 with all perms. I don't want to give the password to my friend. I only want him to access a specific ...
1
vote
2answers
57 views

How do I make there be no group owner of a file in Mac OSX?

How do I make there be no group owner of a file in Mac OSX, since chgrp nogroup file doesn't work? If I try, the group owner doesn't change at all.
1
vote
2answers
42 views

Files are created with old group ownership even though the creator doesn't belong to old group anymore

I am currently preparing for LPIC Level 1 exam and I have been practicing management of user accounts on CentOS 7 system installed on VirtualBox. Firstly, as root, I created a user 'foo' with group ...
1
vote
1answer
32 views

How do I Encrypt a Flash Drive Using SecurStick?

I am trying to use SecurStick to encrypt a flash drive. I found these instructions online. However, when I unzip the archive and place the files on my flash drive, I cannot run the SecurStick program ...
3
votes
1answer
69 views

How to NOT preserve permission when using scp

I am trying to copy data to one of my servers. Some of the files that are copied have permission 444 on the source machine. This is very annoying, since if the transfer gets interrupted while one of ...
1
vote
3answers
200 views

How come root can do this, but sudo can't? [duplicate]

I am set up as a sudoer on my Debian machine, and I use it all the time to install software etc... I came across this interesting situation that I am scratching my head about: I tried to enable the ...
1
vote
0answers
32 views

rsync + chmod only selected files

I'm trying to sync specific cron files between 2 servers and change the permissions for them. However, the command I am trying is also changing the permissions on the main directory. Command used: ...
0
votes
1answer
28 views

Giving a user permission to modify/edit/delete files in “/” directory (Not using Terminal, but with File Explorer)

I'm currently having an issue trying to give a user the permissions that the 'root' user has, which is to modify anything in the / directory. I've changed the /etc/passwd file but still no luck. I've ...
1
vote
1answer
44 views

How can I check read permission of /proc/*/* files?

Files in /proc/ seem to be world-readable, but return permission denied: $ ls -lh /proc/5589/smaps -r--r--r-- 1 root root 0 Mar 18 13:11 /proc/5589/smaps $ cat /proc/5589/smaps cat: ...
0
votes
1answer
17 views

Debian 8 files created with no group permissions

I have setup Debian 8 and have it running well. I have network access set up using samba. When I create a folder over the network it has the permissions drwxr-sr-x. When I copy a file into a folder ...
-1
votes
1answer
53 views

Unable to execute certain programs even as root [duplicate]

I am unable to execute certain programs in various folders even as root. The programs have the correct permissions on them. For example see below [root@ODHI01VMA02 bin]# ls -la java* -rwxr-xr-x 1 ...
0
votes
2answers
47 views

[mntent]: line 15 in /etc/fstab is bad while running sudo mount -o

Running sudo mount -o rw,remount /mnt/Data reports above error. Here is the fstab file # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a ...
0
votes
1answer
27 views

Samba unix permissions messed up despite mask

I'd like to configure a share on a standalone samba serve where users have rw to their own files, but r to others in the same group (rwx and rx on folders respectively). It works well when users ...
-1
votes
2answers
39 views

Why would a user not be able to delete a file they created

Reposting the question about deleting a file. We have a script that is used to transfer files between two SCO Unix systems. The script has been rock solid for years. Recently the firewall unit at ...
0
votes
1answer
31 views

executable files to normal files via terminal CentOS7

Today I copied some files from the shared folder (Host is a Win7) to my VM ( Guest is a CentOS7). I did this with root permissions. Then I copied th files to my apache location /var/www/html/test I ...
1
vote
3answers
61 views

Given the permissions, owner and group of a file, what's the algorithm that determines whether a given user can read/write/execute a file? [duplicate]

As I understand it, a file has 3 sets of permissions: owner permissions, group permissions, and everybody else permissions. Moreover, the file has is assigned to a owner, and a group. How linux ...
1
vote
2answers
54 views

How can I create a sub-directory where my group has no write permissions?

I am working in my Tomcat deployment directory. The files in the directory have the permission: drwxrwsr-x. 10 tomcat www 4.0K Mar 15 15:14 webapps A sample sub-directory within webapps looks ...
0
votes
0answers
30 views

How to make a text file readable for only a local PHP file on server — not to everyone on web?

I have a PHP script that takes some sensitive data, hashes it, and then compares it against hashes in a text file on the server. Both the text file containing hashes and the PHP script are located in ...
3
votes
1answer
99 views

SELinux + MergerFS (fuse) not working well together

I have been trying now for several days to get my new server up and running. I am running CentOS with MergerFS to pool my drives and samba to host to my windows machines. All of this running in ...
0
votes
0answers
33 views

Samba4 AD privilege problem

I mounted NFS share to debian. Below following fstab record: //192.168.14.24/estimating /srv/samba/WDEstimating cifs ...
3
votes
1answer
41 views

Protecting files from rm -rf in writeable directory

Say, there is a directory ~/docs with owner boo and group boo and permissions rwxr-x---. Assume there are important files apple.txt and orange.txt in docs which user boo wants to protect from himself ...
4
votes
1answer
53 views

Multi-user permissions setup

I've been trying to figure out a good permissions scheme for my multi-user file server. I currently have about 5 users, each storing files in their home directory. These files are also being ...
1
vote
1answer
26 views

Moving non-writeable files vs moving non-writeable directories

I'm a bit puzzled about the following behavior (Linux, Debian 8.3, ext2 filesystem) test@linux:~$ ls -ld directory/ file drwxr-xr-x 2 root root 4096 Mar 10 18:51 directory/ -rw-r--r-- 1 root root ...
2
votes
0answers
50 views

git push/pull with ssh key

I have a 'git --bare' repo on a linux machine. I wish to allow another user from a different machine to push/pull to it. I have their ssh key. Is there some way I can allow them to execute the ...
3
votes
3answers
95 views

Is giving all permissions to www-data group a good idea?

I constantly have problems with read & write & execute permissions by Apache/me. There is a user "konrad" (it's me) in "konrad" group, and there is a user "www-data" in "www-data" group used ...