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)

1
vote
2answers
9 views

What's wrong with these file permissions?

This is an embarassing question, but I can't seem to figure out the proper file permissions for my server. I want to create a directory in my public_html folder that includes read/write access for ...
0
votes
0answers
5 views

One of my pdf files in my apache server can be accessed the other can't, with the same permissions

I have two pdf files in my server: -rwxr-xr-x. 1 apache apache 1422861 Sep 11 2014 file1.pdf -rwxr-xr-x. 1 apache apache 340815 Aug 27 13:06 file2.pdf I can access the first one by going to ...
0
votes
1answer
27 views

Permission denied to file even though I am in that group

I know there is a question like this already, but it was confusing question and answer, and I think this should be simple I am testing deleting a file and I have two users admin_ftpuser works, ...
2
votes
2answers
24 views

Why can't I create a file in a directory where I have group write access?

There's a situation I don't quite understand. I have this directory, where the group 'webadmin' has rwx rights : eino@server01:~/test_dir$ ls -la total 8 drwxrwxr-x 2 root webadmin 4096 Aug 27 ...
-2
votes
0answers
35 views

Limit user's access to their home directory [duplicate]

How can I set permissions for a Unix user such that they can't access any files outside of their home directory?
3
votes
1answer
142 views

Exit bash when find gets to a folder with permission denied

I'm trying to write my second Bash script. Where i go through folders recursively and make a list of and count files and folders. In a way it works but if "find" gets to a directory where it has ...
1
vote
1answer
29 views

Is sed run as a different user?

I have a sed script that change some content in /etc/shadow. The actual change isn't important, will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow sed: ...
0
votes
0answers
16 views

Changing the permission of utmp and wtmp

I would like to change the permission of /var/log/wtmp and /var/run/utmp to 660 so that users cannot gain more info about the system (in this case, the logged in users). Does this have any negative ...
0
votes
1answer
17 views

Lock SSH DOR access the same as VSFTPD?

I'm quite new to Linux, I'm running CentOS 6.7 and I'm trying to follow best practice procedure of creating a user "instead of using root" but I want to restrict their SSH file browsing capability to ...
4
votes
2answers
70 views

Why do Linux/POSIX have lchown but no lchmod?

It seems that Linux supports changing the owner of a symbolic link (i.e. lchown) but changing the mode/permission of a symbolic link (i.e. lchmod) is not supported. As far as I can see this is in ...
2
votes
1answer
29 views

What is the meaning of the mode mask names from stat(2) and chmod(2)?

The stat calls have a series of symbolic names for the various bits in the mode field. From the stat(2) manual page: The following mask values are defined for the file mode component of the st_mode ...
1
vote
1answer
46 views

NFS change ownership issue

We are accessing NFS mounts across three hosts. The issue for us is that when we change the ownership of a directory on NFS mount on the server, the ownership changes are not taking place on the ...
2
votes
1answer
17 views

How can I use ACL to give one user control over a directory and all its contents

Two users, Foo and Bar. Foo wants Bar to work on a project in Foo's home dir. [foo]$ mkdir project [foo]$ # Set defaults [foo]$ setfacl -m d:u::rwx,d:g::rwx,d:o::--- project [foo]$ # Set defaults ...
1
vote
1answer
28 views

Run program in readonly mode

I have an apache running under user apache with a lot of permissions (rw to multiple directories). Now I want to let some users upload programs/scripts via webform and execute them, with php function ...
0
votes
0answers
29 views

Default file permission of a created file

Raspbian is the operating system I am using the pi user for FTP and have used the command chown -R pi /var/www to give pi ownership over /var/www. This allows pi to edit and read the files and ...
1
vote
1answer
44 views

Allow a single process to access a file

If I am the owner of a file, then is there a way I can give another process (running under another user that doesn't have read/write permission to that file) permission to access it? I want only that ...
1
vote
3answers
60 views

Where are my saved files in home folder?

I reinstalled my UBUNTU 12.04 after facing some crashing issues with my software. I have separate partitions for / and /home. Output of df -h: root@sougata-SATELLITE-L750:/home# df -h Filesystem ...
0
votes
1answer
29 views

chmod 755 has stopped access to databases

I am trying to set wordpress permissions from some blog site. My session dropped out and I reconnected but at the default path and not in the directory. I went back to the guide and ran this command: ...
1
vote
1answer
22 views

Restrict a process to accessing only a specific directory

How could I run a process dostuff such that it can only access files/folders in the directory somedir?
1
vote
1answer
34 views

Can't run c program in other partition

I'm in dual boot with Windows, and i've created a shared ntfs partition. I' ve cloned a project from github, use make to compile it but seems it isn't recognized as runnable. I've added the right ...
5
votes
2answers
78 views

Allow owner to create & read files, but not modify or delete

I would like to give a user permissions to create and read files in a particular directory, but not to modify or delete files. If the user can append to files that is ok, but I'd rather not. This is ...
4
votes
2answers
67 views

Preventing the creation of a specific directory

I'd like to cover the basis on a vulnerability which tries to download itself and save the result in a newly created directory inside the /tmp/ directory. To be on the safe side, I wish to make it ...
1
vote
1answer
55 views

directory permissions [closed]

I'm currently working on a PHP server explorer, and I have to determine if a directory is empty or not readable because of insufficient permission. My web application is running under the user ...
0
votes
1answer
22 views

When I extract a zip file on my hosted server the permissions are different than my own server. How do I simulate the extraction on my hosted server?

I have an application, let's say Bootstraptor. When I extract it on my hosted server, it extracts fine and all the directories have permissions 755 and the files have 644. And the application works ...
5
votes
2answers
39 views

Restrict USB access on a Debian

Is it possible to restrict the permissions of USB ports on a Debian (Linux) system ? For examples : Suppressing the ability to plug any kind of material excepted USB key? Giving the ability to ...
0
votes
0answers
9 views

Verify file permissions [btrfs]

I did a fresh installation of OpenSUSE and copied all my files from the old home directory. The user and group names hadn't changed, and all the files seem to have proper permissions. However, I ran ...
0
votes
0answers
14 views

Why do I need the execute permission to upload files via SFTP? [duplicate]

I have an directory with 664 permission so the owner and group should be able to read and write. drw-rw-r-- 2 sftpuser sftpusers 4096 Aug 8 14:02 sftp But when I try to upload a file via sftp I ...
1
vote
2answers
24 views

Checking that user dotfiles are not group or world writeable

I need to check whether user dot-files are not group or world writeable: The below command will list all the files: find /home/ -name "\.*" -perm /g+w,o+w Output: /home/system/.java ...
2
votes
1answer
42 views

How to make new files have 0664 permissions rather than 0644?

I have a directory of subdirectory and files, with the files' permissions set at 0664. The directory and subdirectories are set at 2775, so all new files made have the same group set as the ...
1
vote
0answers
13 views

Correct permissions for a cache directory

I have setup a PhalconPHP project on an AWS EC2 instance. To get thinks working I gave the cache directory 777 permissions. I realise this is bad practice - what would be the correct permissions for a ...
15
votes
3answers
777 views

Can I make a public directory under a private directory?

I have a personal folder /a/b on the server with permission 700. I don't want others to list the contents in /a/b. The owner of /a is root. Now I need to open the full authorities of directory /a/b/c ...
1
vote
1answer
23 views

Deny permission to move a soft link

I have a soft link that was accidentally moved as a result of a user drag/drop operation in a Filezilla UI. Is there a way to prevent a user from moving the link but leaving all other permissions ...
0
votes
1answer
25 views

ls displays files copied from an external drive with a yellow background

I copied some files from an external drive and now they appear with a yellow background under my ZSH shell on OSX. I believe that its a permissions thing as the normal ones display "drwxr-xr-x" and ...
1
vote
0answers
28 views

Can't determine where umask is being changed

On my RHEL system, my /etc/login.defs has the line UMASK 077. I have one user who has a .cshrc which changes his umask to 022. I also have a second user who does not have a .cshrc or .bashrc or any ...
2
votes
1answer
48 views

Give permissions to change permissions

I am running a script to deploy a website on a server. It gives me the following error: DEBUG [4223cc8a] Command: /usr/bin/env chmod +x /tmp/mysite_staging/git-ssh.sh DEBUG [4223cc8a] changing ...
0
votes
0answers
16 views

Failed to change last modified date of the file after do some edit in /var/www

on ubuntu server (14.04) I have a virtual host which is in /var/www and my linux user is group of www-data. But I noticed that, if I change something on a file in /var/www last modified date does not ...
4
votes
1answer
53 views

How to stop yum changing file permissions

If you upgrade a package, yum sets the file permissions to the permissions that are set in the new version of the package. How can I stop it doing this? I use puppet, and by default the directory ...
4
votes
3answers
107 views

Compression / archiving that keeps permissions and file owner?

I know that similar questions have been asked about permissions, but which form of compression or archiving keeps the permissions and file owners of each file and directory? I was considering the ...
2
votes
2answers
70 views

Is it possible to change the directory permission to its previous state?

I have accidentally changed the permission of "/usr/bin" directory and its files by the command: $chmod 775 /usr/bin -R First, there was a problem with sudo but I fixed it. Now I am suspicious that ...
0
votes
1answer
39 views

Always get Error: Operation not supported for: find /Path/ -type f -exec chmod 755 {} \;

I want to change the access permissions for MP3 files on an external 2,5" HDD on my Raspberry Pi on which I run an actual version of Raspian. To do so I tried to use the following command: find ...
1
vote
2answers
46 views

The Deny the permission of mounting any drives to a user

I'm using Linux Mint 17.2 Cinnamon. There are multiple partitions on /dev/sda. /dev/sda1 is where the system resides, /dev/sda2, ..., /dev/sdaX are NTFS partitions. There are two users admin and ...
2
votes
2answers
50 views

warning: Filesystem seems to be mounted read-only

I have an old SGI indigo with an EFS file system (Extent File System ), and the password needs to be reset. I can mount the hard drive, but read-only. I need write permissions. # mount --rw -t efs ...
0
votes
0answers
12 views

What permissions apply if specific user's permission on file or directory differ from user's group to which this user belong to in Linux? [duplicate]

Case 1: User has "rwx" permissions to certain file or directory. But has no permissions "---" in group it belongs to. Question: who wins - Does user have "rwx" or "---", effectively (not what's ...
0
votes
0answers
16 views

Is there a way to change file/folder ownership on a server in Ubuntu/Kali-Linux? [migrated]

I accidentally changed file ownership of a folder in Windows 7 and now nobody can edit, copy, view, move it, etc. Not even the administrator account account can change it back. I tried icacls and ...
0
votes
0answers
30 views

Jboss startup ownership issue

Facing few issues with jboss startup . After jboss startup , permission of few files got changed because of which we had to manually change the files and start jboss . $ ls -l /etc/init.d/online ...
-1
votes
2answers
31 views

How to make an existing directory (and sub-directories) to be suddenly writable by ROOT ONLY?

Let's say i have a directory, at: /tmp/uploads/ And inside got several recursive directories and files created by DIFFERENT USERS before. So now, suddenly how do i make that above directory to be ...
-2
votes
1answer
49 views

How to make a NON-WRITABLE directory?

Actually i'm aware of a "PHP Web Folder". There seems to be some potentials of incoming attacks. So that i want to make sure this whole directory is READ-ONLY (Only writable by ROOT). Let's say the ...
3
votes
3answers
137 views

Symbolic link creation failing: change ownership issue

I am facing some issue with creating soft links. Following is the original file. $ ls -l /etc/init.d/jboss -rwxr-xr-x 1 askar admin 4972 Mar 11 2014 /etc/init.d/jboss Link creation is failing with ...
0
votes
1answer
43 views

Could not chdir to home directory when create and login a new user?

I'm a new user of CentOS and now I want to create a new user of my system and let it can only access one directory. First I create a group named test. Then: useradd -g test -d ...
2
votes
1answer
41 views

Using ACL Permissions without allowing other groups to access a directory?

0. Add user bkupusr to group extbk leeand00@hostname:/home/leeand00/$ sudo groupadd extbk leeand00@hostname:/home/leeand00/$ sudo usermod -G extbk bkupusr 1. Created directory structure: ...