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)

0
votes
0answers
7 views

AFP share with local Unix users

I have a Solaris server on which I have a AFP share. I connect from a Mac client to that AFP share with local users from the Solaris server. So let's say I connect to the share with the Alice user. ...
0
votes
4answers
71 views

How would an administrator of a system prevent himself access to a file for 24 hours?

How would a single administrator go about locking himself out of a file for 24 hours? Rules: The file cannot be renamed or moved. The file is not an executable or system critical. Administrator has ...
0
votes
1answer
17 views

How do I archive a folder keeping owners and permissions intact?

Is there any way to archive a folder and keep the owners and permissions intact? I'm doing a backup of some files, which I want to move using a usb-stick, which has a FAT filesystem. So the idea was ...
1
vote
1answer
29 views

Folder permissions with cp --parents doesn't allow to copy another file

Scenario: with a script run by a normal user I want to copy several files, and replicate the dir structure. For example: cp --parents /lib/libacl.so /tmp/my_root/ cp --parents /lib/libc.so.6 ...
2
votes
3answers
75 views

How to delete that directory?

I have a directory, that I cannot delete with rmdir. I get always a permission denied error. But when list the directory (with ls -l) I get this: drwxrwxrwx 2 user user 4096 Aug 28 09:34 directory ...
36
votes
2answers
3k views

why is rm allowed to delete a file under ownership of a different user?

From the post Why can rm remove read-only files? I understand that rm just needs write permission on directory to remove the file. But I find it hard to digest the behaviour where we can easily delete ...
0
votes
0answers
19 views

Lubuntu won't let me change a file's permission

Yesterday I installed Lubuntu, and it works great. Today I've been messing around with my files (don't worry they aren't system files) and I came across file settings (keep in mind that I am the Admin ...
1
vote
0answers
23 views

Funny message when changing ownership of top directory in a mounted file system

For unknown reason, the ownership of this directory changed. This is a mount point: VM-data is /dev/sda3 which is a btrfs file system. When I changed it back, I got an error, chown: changing ...
0
votes
0answers
5 views

Limit read access for folder in samba share

So, I'm trying to make it so that one of my shares can be acessed by almost everyone, but inside this share I have a symlink to a mounted drive which I only want to be accessed by users of one ...
3
votes
2answers
275 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 ...
3
votes
1answer
28 views

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

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
30 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
40 views

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

There's a situation I don't quite understand. I have this directory, where the group 'webadmin' has rwx rights : $ ls -la total 8 drwxrwxr-x 2 root webadmin 4096 Aug 27 12:17 . ⋮ ...
-2
votes
0answers
38 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
153 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
17 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 ...
5
votes
2answers
89 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
30 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
48 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
18 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
29 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
31 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
45 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
63 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
36 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
85 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
68 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
40 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
27 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
48 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
786 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
27 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
29 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
50 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
18 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
55 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
110 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
72 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
42 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 ...