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
1answer
17 views

Detect changes in permissions

Is it possible to detect the files in a folder that have changed their permissions? I have read about the command find and It detects files that have changed the date of last modification but changing ...
-2
votes
0answers
28 views

Error when compiling nginx [on hold]

I use CentOS 6.5 and nginx 1.7.8. When I compile no matter what configure options use, I get this message: -lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz make[1]: Leaving directory ...
0
votes
1answer
40 views

Preventing user from accessing parent folders [duplicate]

I have a user who I only want to be able to access /var/www/ucp/ (his home directory). I have executed the following command on the / directory, the /var/ directory and the /var/www/ directory: chmod ...
2
votes
2answers
96 views

How to deny mounting permission?

Consider the following situation: /dev/sda1, /dev/sda2, /dev/sda3 are 3 partitions of the /dev/sda disk. Ubuntu is installed on sda1 and /home mounted on sda2. Only one user foo on Ubuntu system so ...
1
vote
2answers
48 views

assigning read/write privileges for a folder to a user in CentOS 7

I am logged into a CentOS 7 server as root. I created a folder /somefolder. I want someusername to be able to write to that folder via scp from a remote computer. What command should I run so that ...
-1
votes
2answers
30 views

Cannot access a directory with permissions drw-rw-r— [duplicate]

I am having a very strange permission issue when trying to access any of the files in a certain directory as a specific user (adventho). This has been working fine for several months and I just ...
3
votes
2answers
45 views

how to set more than 3 level of access permissions for a single file/folder?

normally I can only do 3 levels: owner, group, others But I want 6 for group1, 5 for group2, 0 for all other groups how can I do this?
2
votes
3answers
70 views

chroot permission denied! But Im root!

I am trying to chroot into an old HD to change a forgotten password, but chroot says permission denied? what gives? I am root! The harddrive I am trying to chroot into is an old version of edUbuntu ...
0
votes
2answers
38 views

Service start and Permission denied

I have a script that execute a java program, and I want to create a service to start this script at boot time. So I've created a script called run.sh. /test/run.sh #!/bin/bash java -cp ...
0
votes
0answers
24 views

Automatically creating windows shares when logging on to CentOS7

I am in charge of researching the suitability of deploying CentOS 6 or 7 to around 200-400 macs in a triple boot (OSX,Win7,CentOS 6or7) configuration. We currently dual boot Win7 & OSX using ...
0
votes
1answer
50 views

Cabal error: Cannot run c compiled programs

I have an old version of cabal-install so I downloaded cabal-install 1.20 and When installing it errors out. Additional note: ghc 7.8.3 OS: CentOS 6.6 Error: Building network-2.4.2.3... ....... ...
0
votes
0answers
29 views

Linux user in group can't cd into directory with executable permission

(Ok, originally asked this on StackOverflow, got it downvoted with a suggestion to post on SuperUser, where I got a hint (but no luck) with using FUSE to mount media. As serverfault seems to have the ...
1
vote
1answer
62 views

Mounting a NFS file system by changing default owner

I want to mount a NFS file system with user/group ownership of <admin> . How it can be done ? mkdir /cert chown admin.admin /cert mount -t nfs 192.168.2.149:/portalweb /cert/
1
vote
1answer
38 views

Hard Linking Other Users' Files

Suppose User A and User B have disk quotas of 1 GB. Also suppose User B creates a 900 MB file with permission 0666. This allows User A to access that file temporarily (for some project, etc.). Notice ...
1
vote
0answers
12 views

give group permissions to specific device

I have a panning web camera I built, (future robot arm). The camera pans via a web interface (cgi scripts and JS interface) which access an arduino. To enable sending of commands via the interface, I ...
1
vote
1answer
47 views

How to give permission to group to read/edit unowned files on archlinux?

I'd like to be able to read files from external hdd or other partitions without having to su root every time or chmod the whole partition to myself/group. How can I give myself/group permission to ...
1
vote
1answer
16 views

Permissions issue with script

I was trying to run a script to set my Oracle environment in RHEL. I ran it as ./foo.env, but it wouldn't run because of a permissions issue. I then ran it as . ./foo.env, and it ran successfully. ...
1
vote
1answer
38 views

doesn't symbolic link changes it's permissions if I remove permissions in actual file?

I actually started learning Unix and while doing so I stuck here. Though It may seem silly question I'm actually unclear with it so please help me. I've a file as somefile.txt and a symbolic link ...
2
votes
1answer
29 views

Different write behavior for owner and member of group despite 775 permissions

I have mounted a remote share via my fstab using the line: //path/to/target /media/f cifs gid=<mygroup's id>,dir_mode=0775,file_mode=0775 0 0 As a result, everything under /media/f winds up ...
2
votes
1answer
21 views

Do root's supplementary groups behave differently than regular account ones for NFS shares?

OS: Linux CentOS 7, NFSv4 On one machine I exported an NFS share group-owned by the nfsgroup with 2770 privileges for group collaboration: groupadd -g 5000 nfsgroup chown nobody:nfsgroup ...
0
votes
0answers
53 views

Create a user who cannot explore system directories

I have a Centos 6.5 machine. I add users with useradd username. These users cannot browse other users directory, but they can browse all the OS filesystem starting from / and see configuration, ...
1
vote
0answers
22 views

How can I set a group policy to all access on all folders except one?

I am currently making a test environment where users will be going through a network administration course with different levels they must complete. Due to the nature of the course, we want to give ...
1
vote
0answers
52 views

Unable to access a directory despite belonging to a group with write permission [duplicate]

I am learning basic file permission in Linux and tried actions below. I have a folder "music" to which group "music" has wxr permission. I have user "finxxi" added into group "music". When user ...
1
vote
1answer
22 views

User cannot access a file after setting an ACL [duplicate]

I cannot enter a directory after creation in a folder with an ACL: I am attempting to limit rwx access to a folder for just a single group and no one else. I would like to be able to add new users to ...
2
votes
2answers
40 views

How to Fix Elusive Permissions Problem - Rasp Pi, HFS+, SMB, Mac

I have a Raspberry Pi running Transmission. The main data partition is on a USB drive. The partition is formatted as HFS+ (hfsplus) in case I need to plug it into my Mac. The Mac connects to the ...
6
votes
3answers
173 views

Is there a way to protect a file from being deleted, but not from being altered?

I want certain files to be able to be altered by myself on my basic account. To me, they are high priority files, with many backups. But we have some young'uns in the house and I don't quite trust ...
0
votes
0answers
25 views

Vagrant user permissions

What I like about vagrant is that all the permissions work out of the box when provisioned with Puppet. However I can't get the same permissions to work on my digitalocean droplet. On my vagrant box, ...
1
vote
1answer
55 views

How can a user be prevented from changing a file that has write permissions for other users?

An odd situation came up recently. User1 needed to be able to change files in a directory were the files and the directory were owned by User2 and in group User2. In order to facilitate this ...
1
vote
0answers
47 views

Cron can't access my home directory when I'm logged out

I have quite a strange problem using cron. I distilled it thus far: I created following simple bash script in /home/user1/cron_dir/cron.sh: #!/bin/bash echo "Success" As user1 I created following ...
1
vote
2answers
55 views

Fedora: How can I add myself back to sudoers file?

I've accidentally removed myself from sudoers file by doing usermod -G user group without -a, and now I am not in the sudoers group. I've tried doing su - and entering root's password but it says su: ...
0
votes
1answer
42 views

centos folder permission ftp user and apache

I have some folder, need anybodies php scripts can create sub folder/files and unlink files. I do sudo chown -R apache:apache /var/www/public_html/a But after that, my ftp user cannot upload files ...
1
vote
1answer
67 views

What is the cause of this error: Error: EACCES, permission denied

I have two three users: db, nr, ba All three are members of the group dbp Node.js is installed in /usr/bin If I run the command : /usr/bin/node /home/db/dbb/m/i.js Then it works fine when I run ...
0
votes
1answer
33 views

How to enable a non-root user to empty the linux buffer cache

I'm required to empty the linux buffer cache in a python script, that runs on a Debian wheezy VM. As root I run sync; echo 3 | sudo tee /proc/sys/vm/drop_caches, but the script is run by a user, ...
4
votes
2answers
35 views

How to run an application with certain group permissions?

I have a 3D printer, with which my PC can communicate through /dev/ttyACM0: crw-rw---- 1 root uucp 166, 0 16 nov 14:58 ttyACM0 The 3D printing application repetierHost requires read/write access ...
1
vote
1answer
17 views

UMASK privacy- how can I make user files private to the users

I have a debian virtual machine set up and thought of something in regards to UMASK. First I would like to ask if the function of UMASK is to set CHMOD values on any file created by a user. Secondly, ...
1
vote
1answer
48 views

How to allow users to copy files with different user and group?

Good Day, There is a linux user and group called "developers" (has no sudo access) with home folder in "/home/developers". There is nginx running on the same server, there is a web folder for a ...
2
votes
1answer
49 views

Why is my pip-installed Python script not executable for everyone?

In my Vagrant instance: vagrant@archlinux:~$ sudo pip2 install vcard Downloading/unpacking vcard Downloading vcard-0.9.tar.gz Running setup.py (path:/tmp/pip_build_root/vcard/setup.py) egg_info ...
1
vote
1answer
209 views

chmod: cannot access 'file' : No such file or directory error when the file exists

I downloaded and saved 2 files on Linux tails live os. I have set the appropriate permissions on those 2 files to allow them as executable. This is the command I used. sudo chmod 777 ...
0
votes
1answer
49 views

How do I search for every file with executable permission (+x) in my system? [duplicate]

I need to find every single file that has executable permissions in my system, i think they end with x@. I tried to ls every file and then grepping the output to match files with x@. Like this: ls ...
1
vote
1answer
41 views

Delete a directory under Cryptkeeper without access to its account

I have a computer with read-write permissions for one of it is directories. I lost the password that can help me to log in to that directory. How can I delete this folder. I am using the following ...
3
votes
4answers
94 views

Forcing owner on created files and folders

I have a directory that contains data shared between a number of users. Access to this directory and anything underneath, will be controlled by the directory's group, which will be added to the users ...
0
votes
2answers
38 views

Automatically set group and permissions on files in a folder? [duplicate]

When I create new files and folders in a specific folder, I would like them to inherit the group and permissions of the parent folder. Is this possible ? For example mkdir -p example.com/public cd ...
0
votes
2answers
80 views

Permission denied when run script via ssh

I wrote script which download via scp and install some packages. SSH keys are added to host and when I run [root@HostB ~]# ./myscript everything is ok and packages are downloaded via scp without ...
9
votes
1answer
667 views

What is the difference between 'ls' and 'ls -l' when I don't have execute permission on that directory?

I created a directory called folder and took away execute permission. $ mkdir folder $ touch folder/innerFile $ mkdir folder/innerFolder $ chmod -x folder Now if I do $ ls folder it outputs a ...
4
votes
1answer
42 views

rsync doesn't preserve directory ownership even with -a

I use this rsync invocation to backup my home directory: rsync -aARrx --info= --force --delete --info=progress2 -F "$USER_HOME" "$BACKUP_MNTPOINT" rsync man page says that -a implies -g and -o ...
1
vote
2answers
19 views

facl ignoring the “x” permission but only on files

When I use setfacl to manage on what permissions should the children files / directories have, for some reason the files have all the permissions except the execute ("x") one. ...
1
vote
1answer
48 views

Installing packages on multiple Centos machines

I have to install standard package like java 1.7 in 40 of my lab machines which are connected over a LAN. I know I can simply write a shell script to install something in user space of each system, ...
1
vote
1answer
20 views

Grant rights to create / manage users

Is there a way I can grant a user or a group the permission to add/edit other users without the ability to alter anything else on the system? The idea is to give helpdesk agents the ability to grant ...
2
votes
1answer
75 views

How do I mount a Windows folder on Linux (with Samba) and see the correct permissions?

I have a Windows 7 box and a Linux machine. I can correctly access the files on the Windows machine from the Linux machine. however, when I look at the permissions from Linux and from Cygwin on my ...
2
votes
1answer
70 views

In a Virtualbox VM how do I set the filesystem permissions?

I have a virtualbox VM with arch Linux running on my windows PC (which I unfortunately have to use for work). I use this to work on my windows PC with a Linux environment as an alternative to Cygwin. ...