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)

21
votes
1answer
856 views

What did the sticky bit originally do when applied to files?

In various places one can see the "sticky bit" accused of nowadays being a complete misnomer, as its functionality nowadays is to affect the write permissions on directories and act as a restricted ...
0
votes
0answers
20 views

new folder not inheriting permission from parent folder (linux Ubuntu 16.04)

So I have this folder here: => ll total 512 drwsrwsr-x 2 root users 4 Jul 1 01:27 storage/ If I create a new folder inside storage, the new folder has the permissions "drwxrwsr-x". Please note ...
0
votes
0answers
30 views

How to fix system after wrong permissions? [duplicate]

I changed permissions on / by mistake using chmod -R 755 /* instead of ./* after doing sudo -s. I stopped the process in the middle of it after realizing what was going on. But it was too late. Now ...
6
votes
3answers
582 views

What is the difference between -g and -G options in useradd

Forgive me I am not strong in the Linux. As the title said . Could anyone please tell is there any difference between them? After I look through the help. I didn't found much difference between them....
0
votes
2answers
37 views

How to limit users permissions to only use mysql

Is it possible to create users (non-sudoers) that can only use the command "mysql" ? or set of commands ? Context: I have a server hosting a mysql database. I want to give some users the rights to ...
0
votes
1answer
20 views

Unix winbind groupmap

i got Linux server (SLES 12) joined in Windows AD with winbind and samba services. I got unix group "mqm" and windows AD group "67uts-mq-admins". I want to map windows AD to unix group with "net ...
1
vote
0answers
21 views

File not createable in one directory having the same permission as another directory where it is

Trying to create a file in one directory works, whereas in a sibling directory with owners and permission copied, the same errors out with Permission denied. (touch as root works in both directories.) ...
-3
votes
0answers
35 views

File attributes and permissions [on hold]

From above example barney isn't owner or member of group for file lfile2 then why he can't delete that file ? I mean that, answer of last question is none. Barney is supposed to be able to delete ...
2
votes
1answer
21 views

Problem overriding ACL for default group ownership

I am unable to override previously set ACL settings. This is what it looks like: root@ip-xxx-xxx:/srv/www# getfacl grace.staging.site.com.au/ # file: grace.staging.site.com.au/ # owner: web # group: ...
0
votes
0answers
18 views

How to prevent special group to delete files or folders?

Folder path: /var/www/html group name: "ftpusers" user: "admini" How to prevent from group "ftpusers" to delete files or folders in html folder, but allow them to create files or folders? User "...
1
vote
0answers
9 views

Mirror Folder with root Permissions

i am using CRYFS (an encrypted filesystem) to store some of my files in an cloud server. If i mount the encrypted filesystem, a folder is created with the decrypted files in it. The Problem is that ...
1
vote
2answers
27 views

user as group leader

Each pupil belongs to one or more groups, e.g. yr-2015, yr-2016 (year of entry into college), sub-prog, sub-math, sub-logic (subjects). It is also possible for a teacher to belong to these groups. ...
2
votes
2answers
40 views

How can a user Edit a file even when Write bit is off on a file

Here is the thing i just had a urge to play with umask on my training machine. i created test user john and logged in using john. and set the umask to 0200 and created a testfile in vim and saved it. ...
0
votes
1answer
30 views

Centos, uploaded files from application have different owner and group [duplicate]

I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure ...
0
votes
2answers
42 views

Booted from NFS Linux has no permission for su command

I've booted Linux from NFS with Android system. And now I have to execute command as super use in minicom. But system doesn't allow me to switch to super user mode. Every time when I type: shell@...
0
votes
2answers
44 views

Linux Debian Jessie sudo command keeps asking for password

I have recently configured a Symfony 3 site which involved me to set up some permissions on the /var folder. I had to do the following: $ HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]...
0
votes
0answers
21 views

How to store dconf from VirtualBox in a host Windows folder?

I'm running Win10 as the host system, & Ubuntu inside a VirtaulBox. I'm trying to migrate my ~/.config folder from inside the VM, to sit on the host system (I mapped my Dropbox folder as a ...
0
votes
1answer
39 views

Gain back permissions to run commands on DigitalOcean Ubuntu

I accidentally ran "sudo chmod o-x /" on a remote Ubuntu system (with DigitalOcean). Now, no commands can be run on the server at all (so login doesn't work). How do you fix this?
1
vote
0answers
16 views

Dbus: Terminate not working on other user

I'm new with dbus(Using Ubuntu 14.04, Unity). So I'm logged with user A, create process as user B and that process creates session for user B, now I want to use dbus messages to shut down session from ...
0
votes
2answers
16 views

Can I change the permissions of files that root has read only access to?

A few days ago I made the switch from Debian to Arch. When I did that, I backed up my files to an external harddrive. I've moved the contents of that backup to my normal harddrive. Now I'd like to ...
0
votes
0answers
18 views

Another El Capitan permissions issue

Been to the depths of the web trying to repair my Mac HD and Home folder permissions. I would like to get back to default setup without losing user data. Any and all help is appreciated. Can't run ...
1
vote
2answers
22 views

When gitlab says make a file executable what exactly do they mean?

Gitlab says "Make the hook file executable and make sure it's owned by git" , but I read here that a file can be executable by owner, group, world. So which one do they mean? Right now I am ...
0
votes
1answer
32 views

Cannot override default group permissions with ACL

I've set this ACL on a directory: root@<server_ip>:/srv/www# getfacl example.com/ # file: example.com/ # owner: web # group: www-data user::rwx group::r-x other::r-x default:user::rwx default:...
0
votes
1answer
79 views

Difference between sudo user and root user [closed]

The /etc/sudoers file lists which users can do what with the sudo command The root user creates and modifies the /etc/sudoers file. This concept is difficult for me to understand. If all users ...
38
votes
8answers
4k views

Why does Bash's source not need the execution bit?

with Bash's source it is possible to execute a script without execution bit set. This is documented and expected behavoir, but isn't this against the use of an execution bit? I know, that source ...
3
votes
1answer
486 views

Changed owner of /etc folder, can't use sudo anymore

I changed owner of /etc folder by accident when I was doing work on web server and now owner of /etc folder and all of its subdirectories is www-data. I can't use sudo anymore for anything and in ...
3
votes
1answer
38 views

Read only permission to sftp user in specific directory

I want to create specific SFTP user which will have permissions to only read all folders and subfolders in /var/www/vhosts. Any help on this ?
0
votes
1answer
22 views

Cannot change directory at /home as root user (Permission denied) [closed]

I am using GNUroot debian ( an android app ) and after many attempts to connect with ssh to my server I now have no access with cd at my /home folder as a root user. I can run ls /home but I cannot ...
1
vote
3answers
83 views

What does the argument “ +x ” means in Unix? (Regarding permissions)? [duplicate]

I use Ubuntu and someone advised me to change permissions to a file with sudo chmod " +x ". It is not clear to me if +x means to change permissions to something very general as 777 or 775, or ...
1
vote
1answer
46 views

Executables in /usr/bin not showing for permissioned users [closed]

I installed xvfb-run using yum under root, and I can see the executable in /usr/bin with the permissions -rwxr-xr-x. When I login under a different usr which falls into the 'other' permissions, the ...
4
votes
2answers
472 views

Why does 'cat useradd' succeed in this case?

I have a fresh installation of CentOS. I created a user and added it to wheel group (to add it to sudoers list). I logged in with the credentials of new user. I then run the command cat useradd. ...
1
vote
1answer
26 views

Folder Permissions Issue

I am currently having a strange issue and it doesn't really match anything I have found here so I am hoping someone can shed some light on my issue for me. I am currently running an Ubuntu 14 linux ...
1
vote
1answer
24 views

Use SELinux to restrict a directory to a particular user

I have a couple of questions: (Sysadmins tasks) Here is what I asked to do Create user Tim and add him to the supplementary group Webdev (Create the group if it doesn't exist), also Set Tim's ...
2
votes
1answer
27 views

ACL and plain old permissions

I have read a bunch of articles, but still cannot get an idea of ACL, so I have following questions. What are benefits of using ACL over old permissions (0777 for example) and changing file owner,...
-8
votes
0answers
23 views

Need help in centOS [closed]

i need to change the permissions on a directory so that only members of the accountants group have access. The accountants group permissions should be that they should be able to list the directory ...
0
votes
0answers
24 views

Make mounting a disk ask (udisks2) for current users password instead of superuser. [Debian 8 XFCE]

I plugged in a 1TB external drive and created a partition on it which covers the whole disk. When mounting this partition with Thunar, it asks me for the user I made during the installs password (not ...
0
votes
1answer
57 views

Failed to start PostgreSQL 9.5 with systemctl - SELinux

I've installed PG 9.5 (/usr/pgsql-9.5/) and when I start it manually with postgres -D it has no problems, but if I try to use systemctl I get an error. By looking to journalctl -xen output, I see: /...
3
votes
0answers
42 views

fstab doens't read mode value

Following this guide: I set my /etc/fstab file in this way: proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults,ro 0 ...
1
vote
0answers
19 views

How do I run a supervisor command in a Eclipse PyDev project without being asked for a password?

So I've got the following code that should check whether an npm package is installed: def is_installed(name, as_global=True): # Returns whether NPM package is installed. s = shell(...
1
vote
0answers
37 views

How to set folder permission with + at the end?

I'm trying to mount a network shared device in a linux box. I get permission issue but it was mounted properly in another linux server. The only difference on the server it works has a + permission at ...
3
votes
1answer
110 views

set umask for sshfs-mounted filesystem

I have a remote sshfs filesystem mounted on /mnt/data. Following is the relevant line in /etc/fstab: www-data@192.168.1.10:/var/www/ /mnt/data fuse.sshfs rw,noauto,nodev,nosuid,noexec,_netdev,...
0
votes
0answers
14 views

SAMBA Share Not ReadWrite

I've set up a folder (on srv005) /mnt/local/data owned by msc:msc_group. drwxr-xr-x 4 msc msc_group 4096 Jun 9 22:33 data I've set up SAMBA with the following share options: [srv005_data] comment ...
3
votes
2answers
47 views

setgid sticky bit not working

I have yet another frustrating problem. I have a group of users belonging to the "testing" group. I have a folder located at /var/log/projects with the setgid bit set. This is so any new files or ...
1
vote
0answers
20 views

Is there any way I can track down what is removing the executable flag from a file?

I have a set of git hooks that constantly have their executable flag removed. I'm utterly at a loss for what might be doing it, but so far the only thing I've found that can even mitigate the problem ...
0
votes
1answer
29 views

pppd: using the noauth option requires root privilege

I have a user username who is member of group dip. I'm trying to run /usr/sbin/pppd, which is mode -rwsr-xr--, owner root, group dip, as user username. However, I get the error message: /usr/sbin/pppd:...
1
vote
1answer
23 views

Can't create a file through symbolic link

I have a directory that goes like this: drwxrwxrwx 6 www-data www-data 4096 Jun 8 10:21 ./ drwxr-xr-x 31 user1 user1 4096 Jun 8 10:40 ../ lrwxrwxrwx 1 www-data www-data ...
1
vote
1answer
27 views

Can I replace a directory with a symlink without write permissions in parent?

I would like to replace a directory with a symlink. For the directory itself I have full permissions (rwx), but for the parent directory I don't have write permissions (r-x). Is this possible? The ...
1
vote
1answer
36 views

Using 606 file permissions in /etc/cron.d. (root) BAD FILE MODE)

I have a file in /etc/cron.d with 606 permissions to be run by root. The intention is to provide read & write access to 'others' via 606 to allow a script to modify the file. Cron does not ...
1
vote
3answers
68 views

How to delete unknown file that doesn't have proper permissions

My co-worker sent me a theme in a tar.gz file and I tried unzipping it using the archive manager GUI as I usually do for any kind of zipped file. However, it produced a corrupt file/directory that I ...
0
votes
0answers
34 views

scp file to remote server prevent delete

A team want to implement a crude file dump backup solution to be used by multiple hosts. They have a remote user on the backup server backupusr that they can SSH/SCP with, with SSH keys setup. The ...