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)

2
votes
1answer
60 views

Stop user from deleting file in directory

This is the scenario There is one directory /test which is owned by oracle.dba I created new user TEST who will have permission to create NEW files but it should not be able to delete the files he/...
5
votes
0answers
55 views

group member unable to write to a group-writable file with reiserfs and extended ACLs

Users vi and rust share group rust and want to use some file in shared manner. rust$ ls -l myfile -rw-rw-r-- 1 vi rust 0 May 30 03:48 myfile rust$ stat myfile | grep Gid Access: (0664/-rw-rw-r--) ...
0
votes
1answer
29 views

How To Copy Lossless from OSX ext to FAT32 without Ownership/Permissions? [closed]

I sudo-copied documents from OSX extended filesystem to FAT32. Now, I see that two trees are different by size and by Stephen's command here vimdiff <(find /Volumes/fat32/ -printf "%P %u:%g %m\n" |...
0
votes
1answer
37 views

Why can't i delete file when i have the file's ownership? [duplicate]

As a root user, I created a file in / directory. I can only read this file when logged in as normal user (say A) as expected.I changed the ownership to A.Now A can read as well as write.But when I try ...
1
vote
1answer
76 views

User Permissions problem in CentOS 7: “Permission denied”

I thought that I knew how to set up permissions in Linux. I apparently don't. I have a user called "web3". This user was automatically created by ISPConfig (A server management application like ...
1
vote
0answers
26 views

Making CMake apply -DCMAKE_INSTALL_PREFIX to everything

I'm trying to build this app with CMake, as a non-root user. I've run: cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt but during make install, I get -- Installing: /usr/local/share/myapp/data CMake ...
1
vote
1answer
61 views

umask not working as expected in other than home directory

I try to set up a deployer user for CI with Teamcity. I followed the instructions from this question on ServerFault: What's the best way of handling permissions for apache2's user www-data in /var/www?...
1
vote
0answers
37 views

Locked myself out of Amazon EC2 [duplicate]

I'm working with an Amazon EC2 instance and at some point, I wanted to chown a directory recursively, and it looks like I applied the command to the whole file system. As a result, it is possible that ...
1
vote
1answer
59 views

why suid bit is unset after file modification

I have an (s|g)uid file world-writable: ls -lh suid_bin.sh -rwsr-srwx 1 root root 168 mai 23 16:46 suid_bin.sh logged with a non-root user account. I use vi (or another editor) to modify "...
1
vote
0answers
28 views

American Fuzzy Lop run test program as unprivileged user or in chroot

I'm attempting to test tcsh on OS X with American Fuzzy Lop as an exercise, but don't want to accidentally clobber any useful files on my system. Knowing essentially nothing about fuzz testing, I did ...
1
vote
2answers
190 views

VERR_ACCESS_DENIED when trying to add a raw disk to virtual box

I created a virtualbox raw disk pointing to a functioning, booting USB drive with a small linux distro on it. sudo ./VBoxManage internalcommands createrawvmdk -filename ~/VirtualBox\ VMs/MyTinyLinux/...
-1
votes
1answer
36 views

Extended permissions - after set acl, group cannot write [closed]

I want to use setfacl to set permissions to dir for the users group. I do something like this: mkdir /Employee chgrp employeers /Employee setfacl -m d:g::rwx /Employee And now, when I try to create ...
2
votes
0answers
75 views

apparmor - cannot load library

I'm trying to get apparmor set up on my system and am having troubles getting past the permission denied error: ping: error while loading shared libraries: libcap.so.2: cannot stat shared object: ...
2
votes
1answer
33 views

Find differences of ownerships between two home folders?

I have two home folders: /home/masi and /home/masi_backup and I would like to find the differences between files of the two directories. Pseudocode vimdiff <`ls -la /home/masi` <`ls -la /home/...
4
votes
1answer
79 views

Linux: Changing Permissions – No space left on device

I have an external drive. When I just plug the drive into the PC, with a default /etc/fstab file, the OS just detects it and it's there in the Dolphin browser. I can select it, I can navigate to it on ...
1
vote
0answers
12 views

Centos 6 FTP problem

I have a VPS running CentOS 6. I've tried multiple FTP servers but the following problem keeps me stuck. I want all users to have FTP access to their own folder in /home, so I configured Pure-FTPd to ...
0
votes
1answer
58 views

Clarification: permission and owernship by the apache process of web root

I've read through a lot of articles about correct/secure (1) ownership and (2) access permissions for directories and files in a web accessible directory served by apache (e.g. /var/www/). Either I'm ...
1
vote
1answer
30 views

change home folder permissions on exit/disconnect

I have a use case where my folder on the linux server needs to have its permissions opened up so I can use a sudo account to move files from my folder to shared folders. What then happens is often ...
1
vote
1answer
40 views

Apache does not have the permission to copy files from a mounted directory

My application on the server wants to copy a file from a remote directory mounted by sshfs to a local directory. The application code: shutil.copy('/data/somdir/somefile.txt','/var/www/App/...
0
votes
0answers
12 views

Understanding owner groups of a folder

I am having some problems understanding how users and groups permissions work in Linux. The command I am trying to launch is the following: ln -nfs /home/mmarteau/wfor.it/releases/release_folder /...
1
vote
2answers
54 views

Apache - 403 Forbidden

I know this question has been asked a lot of times but I'm completely stucked. My /var/www/html folder contains: mbfr/ |-- index.html | school/ |-- index.html I want to exemple.com serves the mbfr ...
1
vote
0answers
17 views

How do I open access (+x) to a directory behind symlinks in one move?

For example, to open access to /sys/bus/usb/devices/1-1/, the following need to be done: chmod a+x /sys/bus/ chmod a+x /sys/bus/usb/ chmod a+x /sys/bus/usb/devices/ # files in "devices" are ...
0
votes
4answers
85 views

Is there a way to show the permissions for a file without using `ls`

That's all - just wondering if there's other way to find out the permissions for a file without doing a ls -l to see the string of values there. As far as I know, there's no show option in chmod.
4
votes
2answers
59 views

Is it possible to create a “negative” ACL?

Is it possible to create an ACL to deny access to a specific user (say jdoe) to a specific file? I'm not interested in the trivial solution of an ACL that gives access to the file to all users except ...
3
votes
1answer
152 views

RHEL sudo still not allowed for user 'tina' [duplicate]

I'd like 2 users, 'tina' and 'lu' to execute a few utils like /bin/chmod. Here's the relevant portion of my /etc/sudoers file. tina,lu ALL=/bin/chmod /bin/chown /bin/chgrp Then I logged in as ...
0
votes
2answers
37 views

Confused by this chmod command [duplicate]

Why does the command chmod 6754 correspond to the file permissions rwsr-sr-? I understand that Read = 4, Write = 2, and Execute = 1, but what value does the s (setuid) permission or the dashes have?
1
vote
1answer
45 views

Limited access to a directory's contents

There is a file in a directory that me and the other users want to be able to read. I want the other users not to be able to see the other files in the directory. They should be able to read a ...
0
votes
1answer
6 views

Netatalk users can't read World/Other readable files

I'm using Netatalk to share documents with several Mac machines. Regardless of what permissions I'm using for the file (typically 775 for folders and 664 for files) they can't be read by users in the ...
1
vote
1answer
65 views

apparmor: mysql permissions--with no recent changes

UPDATE: I now know my issue was database corruption, but discerning it was somewhat tricky--apparmor appeared to be the cause for longer than it should've. I didn't note when first posting that even ...
1
vote
1answer
44 views

Migrating mounts with identical permissions not working

I have two mounts /mount1 and /mount2. I ran the command: rsync -azrt /mount1/* /mount2/ to clone everything from /mount1 to /mount2. I then altered the /etc/fstab (see below) to remove /mount1 ...
2
votes
1answer
34 views

No permissions?

Output of ls -l: drwxrwxrwx 16 btsync btsync 4096 Feb 25 15:41 documents I can cd into the folder no problems. Now: sudo chmod 776 documents I can no longer cd into the folder: bash: cd: ...
3
votes
1answer
22 views

White-list certain binaries and scripts inside a noexec/nosuid mount?

Just like the question. Is it possible to white-list certain executables from a noexec mounted FS? for instance, mine looks like this: /dev/vg/lv on /tmp type ext4 (rw,noexec,nosuid)
0
votes
1answer
42 views

Dealing With A System Which Is Not Letting To LogIn Due To Open Permissions [duplicate]

A colleague of mine told me that after he executed the below command, he's not able to login to the system. No user can login via ssh. Only normal users can login over physical console of the system,...
1
vote
1answer
28 views

cd: permission denied: binutils-2.21.1

I'm following Tools Used in 6.828 to configure. $ sudo tar xjf binutils-2.21.1.tar.bz2 generate folder binutils-2.21.1 $ cd binutils-2.21.1 cd: permission denied: binutils-2.21.1 $ sudo cd ...
0
votes
0answers
21 views

Can't make SUID work [duplicate]

I have 2 users: root and usr345 in the system. SUID bit allows the users to execute a program with permissions of it's owner. I created a file: # touch /home/usr345/update-iptables.sh Contents: #/...
2
votes
1answer
56 views

Ways to restrict remote user to only access a remote database

I want to be able to setup a remote user that can update a PostgreSQL database on a production server. I have two machines, one is a local server that I use as a command and control system, named ...
-1
votes
1answer
80 views

Getting “Permission denied” when trying to create a file despite correct permissions

I’m using Amazon Linux and running a script through a Jenkins job, including this line touch /usr/java/jboss/standalone/deployments/myproject.war.dodeploy which results in the error … touch: ...
4
votes
1answer
49 views

File permissions on Linux?

I am surprised that /mnt, /media or even /opt are not writable by myself on my own system (Linux-Ubuntu). Should I always use sudo for any action on these paths? Or would it be better to add myself ...
2
votes
1answer
54 views

File permissions while installing a python module

I would like to install sphinx-doc from the sources so I git clone the module then installed it with sudo python setup.py install. Using /usr/local/lib/python2.7/dist-packages/pytz-2016.4-py2.7.egg ...
0
votes
2answers
15 views

Shared, read-write, photo directory tree, for normal users

I.e. what I want is the Linux equivalent of Windows Public/Pictures. The problem is that Linux file manager Nautilus doesn't apply default ACLs when you move a file into a folder/directory (nor good ...
1
vote
0answers
61 views

gvfs and permissions on a remote external usb drive

I have transmission and deluge (trying to see if it's a problem with the app) and I'm having the same problem with both of them. When torrenting. I get an error " Operation not supported (/run/user/...
3
votes
1answer
54 views

ACL not working on directories

For some reason when I create new file from Windows I can change the permissions just fine but when I create a folder it won't let me change the permissions, I get this error: A device attached to ...
0
votes
2answers
98 views

Issued chmod 666 * in home directory, permissions problems resulted with all files

I was attempting to give any regular user access to two folders that reside a few branches down in my home folder. I thought I was in the correct directory and typed out sudo chmod 666 *, but ...
3
votes
1answer
69 views

How to revoke access for a particular user?

How can I revoke all access (r,w,x) for a particular user to a file or directory tree (while still giving read permission to others)? Does setfacl with mask allow this ?
0
votes
1answer
67 views

usermod -a -G group user not work [duplicate]

I use Ubuntu 12.04. I am trying to add the user gefalko to the www-data group. I use root@xxx~# usermod -a -G www-data gefalko If I understand correctly, I should now see www-data in the output of ...
0
votes
0answers
19 views

What does @ indicate in long file format? [duplicate]

NOTE: Don't know if this matters, but I'm running commands on OS X Terminal. What does the @ indicate about a file when it is listed in long format, ala: -rw-r--r--@ 1 <user> <group> ...
0
votes
1answer
23 views

Copy /home without root [duplicate]

I installed Xubuntu on a friend's PC and he understood, that is it greater than Windows 10. He has no practice with shell and dont want to use it! The PC is used by several people. He (the owner) is ...
6
votes
2answers
313 views

Sed with inplace editing changes group ownership of file

I have shell (php) script that gets in touch with target file this way: inspects whether file and directory are writable with php 's is_writable() (I don't think that this is problem) does in-place ...
0
votes
1answer
109 views

How can I execute any command as a normal user without sudo?

Is it possible to assign the sticky bit to sudo in order to execute any command as a normal user? Let's suppose that we have the user test and then: test@test$ apt-get update But I don't wanna use ...
-1
votes
2answers
58 views

writing into /opt/folder

I'm using gcsfuse with an app I am making to write files into /opt/storage that folder is owned by a specific user called lets say "hero" which is in a group called "hero" too: ls -al /opt: drwxr-xr-...