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)

3
votes
1answer
301 views

While trying to open /dev/mtd2 for read/write access: Permission denied

Looks like my MTD2,and MTD3 partitions are write protected. The OS is booting from SD card on a ARM Cortex A 9 processor. root@Xilinx-ZC702-2013_3:~# mount /dev/mmcblk0p1 /mnt/ ...
-2
votes
2answers
73 views

Misuse of go-r *

I am working on a test server. Was logged in as root and issued cd / chmod go-r * I certainly revoked the write permissions for the users that I had created. Did I revoke the permissions (r/w/x) ...
2
votes
0answers
209 views

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
9
votes
4answers
1k views

Sudoers for one day per week?

I have been volunteered by my boss to be the sysadmin for our production redhat server. He asked me to tighten the security to avoid mishaps like rm -f * that occured not long ago. Right now, we ...
0
votes
0answers
31 views

Cyrus create mail box gives error permissions denied

On freebsd91 64 bit i installed exim as mta and cyrus as imap server. I use saslpasswd2 root cyradmin -user root localhost localhost> cm INBOX.Sent It gives permissions denied error. In my ...
4
votes
1answer
234 views

chmod does not change permissions of certain directories

System file: ext4 I changed the owner of files to apache: with the command: chown -R apache: wp.localhost Then, I could not change the permissions of directories in wp.localhost nor the ...
3
votes
1answer
202 views

What is the relationship between root and kernel? [closed]

Based on part of the first answer of this questions: read from a file (the kernel must check that the permissions allow you to read from said file, and then the kernel carries out the actual ...
2
votes
1answer
102 views

How can I get write access to my usb drives?

I have trouble writing to external drives. They are monuted automatically in Nautilus, but I can not copy anything there ('Paste' and 'create Folder' are just greyed out). Does Anyone have ideas what ...
8
votes
3answers
1k views

How Do I check Permissions of Root Folder (/ Folder, not /root)?

Is there a way to check the permissions of the root folder, /? I mean the folder's permissions, not its content's (/var, /usr, etc.) permissions? Running ls /.. shows the content's permissions.
2
votes
1answer
142 views

Can not change permissions of files/directories in a chrooted filesystem

I am using Ubuntu 12.04 LTS 64 bits to chroot into a just extracted to my harddrive (with unsquashfs) Squash File System from a Kali Linux v1.0.5 32 bits pendrive for customizations: luis@Fujur:$ ...
4
votes
5answers
434 views

logic behind deleting files where user does not have right to write [duplicate]

When I create a file with no write permissions in my home directory: $ umask 777; touch testfile $ ls -ln testfile ---------- 1 1000 1000 0 2014-03-21 16:52 testfile $ ..then I'm still easily able ...
0
votes
0answers
82 views

Fixing permissions on a buffalo NAS (XFS via SMB)

I have a Buffalo dual harddrive NAS and plugged one of the drives directly to an SATA port to speed up the file transfer (100 MBit is a 'bit' slow when transfering 2 TB of files). I used a live Ubuntu ...
0
votes
0answers
329 views

Reading apache error logs from php

I have apache2 logs at :/var/log/apache2/error.log which has permission: -rw-r----- 1 root adm 127140 Mar 20 12:54 /var/log/apache2/error.log for the sake of accessing from php I changed the ...
3
votes
2answers
43 views

Which directories are writeable in a system following FHS?

I need to ensure that, when deleting a specific user from a system, all of his/her files are removed. User creation/deletion will happen a lot on this system, so I want to reuse UID's and want to ...
1
vote
1answer
50 views

Not allowed to read a file for some reason

I have these permissions on a file: -rw-r----- 1 root www-data 540 Mar 18 21:12 /etc/phpmyadmin/config-db.php User vagrant is a member of group www-data: vagrant@precise64:~$ cat /etc/group | grep ...
2
votes
2answers
49 views

Why does the root user have control over mysql directories but not show as a member of the mysql group?

Sorry if this is a duplicate. It seems somewhat similar to the question here but I think what I'm asking is a little different. I've got a CentOS 5.x box running with mysql on it. The root linux ...
5
votes
3answers
1k views

How can I create a udev rule to mount a USB drive read only?

I'm trying to set a particular USB drive to always mount read only. If I plug it in, it is seen as sdb with a single partition, sdb1. Here are some relevant udevadm lines (not the entire output of ...
0
votes
0answers
107 views

Netbeans on Linux Mint only starts when run with sudo

I've installed Netbeans directly from the oracle site (the 7.4 Release but also the 8.0 Release Candidate). I really want to install the least possible version, so the one in the apt repos's doesn't ...
6
votes
1answer
65 views

Expected behavior of `find -depth` if execute permission denied for subdirectory?

I'd like to know if I can rely on the behavior I am seeing when using find with -depth option and user does not have execute permission for a subdirectory. Assume the following directory structure: ...
2
votes
1answer
189 views

setfacl default --x on directories and r— on files for user

Having the following directory structure [sr@server directory]$ tree . ├── folder1 │   ├── fileA │   └── fileB └── folder2 └── fileC 2 directories, 3 files I want to set a default facl on ...
1
vote
2answers
317 views

Permissions with writing NTFS partition from Windows

I mounted my NTFS external hard disk to my Pi this afternoon, my /etc/fstab currently looks like this (I encourage any recommendations or queries made on the properties made, especially the umask - ...
1
vote
1answer
74 views

Not allowed to read a file with correct group permissions? ACL?

I just set up a basic nginx server on my Debian 7.0 server. The config file /etc/nginx/nginx.conf is barely modified, and begings with: user www-data; # nginx shall run as user `www-data` I then ...
2
votes
0answers
239 views

Give domain users permissions on cifs shares?

I am using CentOS 6.5 - users authenticate using winbind, all are domain users except for root. /home is mapped to a cifs share on a windows server in /etc/fstab with this line: \\server\home$ /home ...
2
votes
4answers
670 views

Ownership of etc folder is changed how to restore it using commandline?

I have a computer with Ubuntu 13.10 installed. The user (say Walesa) has changed the ownership of etc folder and all its subfolders from root to Welesa using a privileged file manager. As sudo was ...
0
votes
1answer
53 views

can not chown a file from my $user to another $user [duplicate]

I am on slackware64 v14.0 and I have file that belongs to me: -rwxrwxr-x+ 1 nass shares 137934 Mar 7 00:06 myfile.csv* I am a member of the "shares" group. The folder that contains myfile ...
1
vote
1answer
74 views

How can I prevent some users from deleting files in samba?

I have a sample directory shared out with Samba which all users should have read/write access to. I would like to prevent some of these users from deleting any files (even the ones they create). This ...
5
votes
2answers
266 views

Group memberships and setuid/setgid processes

Processes which de-escalate privileges via setuid() and setgid() do not seem to inherit the group memberships of the uid/gid they set. I have a server process that must be executed as root in order ...
3
votes
1answer
216 views

NFS partition mounted as read only

(Disclaimer: I've read "NFS sharing is read only" and I think it's not the same problem) I have just setup NFS on my raspberry (Raspbian) and I'm trying to access it from OSX. So far so good, I can ...
3
votes
0answers
77 views

setting default umask and user:group on directory

I have a directory data and I need to set default umask and ownership for all directories/files (both existing and future files). I want all files in data to have ownership root:martin ans ...
2
votes
4answers
560 views

Unable to write to a GPIO pin despite file permissions on /sys/class/gpio/gpio18/value

This is on a Raspberry Pi. Here's the output of sudo ls -lL /sys/class/gpio/gpio18: -rwxrwx--- 1 root gpio 4096 Mar 8 10:50 active_low -rwxrwx--- 1 root gpio 4096 Mar 8 10:52 ...
3
votes
2answers
139 views

Changing default permissions for wget?

I'm using a PHP script to call shell_exec and execute wget to download some files to /var/www/dir/. (Internal tool, so security isn't much of an issue) The directory has 777 permissions. But when I ...
1
vote
2answers
149 views

Running a bash script as root prevents asynchronous execution?

The script below get's executed differently if run as a root user. #!/bin/sh gnome-terminal -x sleep 10 echo 'Why must I wait for sleep to finish?' If its run as a regular user, message is ...
1
vote
1answer
37 views

Find which directories each group can access

I need to take the /etc/group file (RHEL) and check what high level subdirectories each group has access to. Here is a made up example: Group 100 - \xxx\xxx\xxx Group 150 - \xx\xxxxx\x Is that ...
2
votes
2answers
470 views

Allow NonRoot User to Mount a Particular NTFS External Hard Drive

I have a 4TB external hard drive connected to an Linux server. The fstab permissions on this drive are set so that only one particular non-root user has access to it: ...
4
votes
1answer
51 views

When a member of multiple groups, how do I set the default group for newly created files?

With umask, I can determine the permissions for newly created files. But if I am a member of multiple groups, how do I set the default group for newly created files? This question seems relevant, ...
2
votes
1answer
213 views

How do I allow user permissions to data on a Couchpotato and Sickbeard Plugin using Freenas

Trying to setup permissions for the plugins sickbeard / couchpotato. I’ve read almost every thread google / the forums have but haven’t really found a solution yet. I’m assuming it’s the data here: ...
-1
votes
2answers
85 views

ls -ld list files inside a folder which is having only execute permission

In Linux, I gave only execute permission to a directory named test. after switching to the directory test, when I run ls -ld it was showing some hidden files. Please explain this.
0
votes
3answers
25 views

Set the default permission

When I create a file, the permission is 644 (user rw, group r, other r). How can I make the default file generated to have permission as 664?
0
votes
2answers
30 views

How to create a directory which will have access to the user who is installing a package?

I am packaging one of my projects on Debian. The project expects a directory to be created at XDG_DATA_HOME or ~/.local/share/ where the data files will be kept. Now I am trying to create and feed the ...
-2
votes
2answers
34 views

I don't have writing access to a subdirectory in /

I have a server running under Debian wheezy. I want to create a directory in /. I can't without running sudo mkdir myDirectory. Once in /myDirectory, I can't write anything or create a repertory. I ...
1
vote
1answer
249 views

Can't edit sources.list as root

I cannot edit/move/delete the sources.list file, despite being root. When I do ls -la /etc/apt it reports this: root@nibelung:~# ls -la /etc/apt/ total 356 drwxr-xr-x 6 root root 4096 Feb 28 ...
2
votes
1answer
61 views

Using FACLs to restrict default group but allow others

So, I'm running RHEL 6.x with acls enabled, etc. and I've been fighting this ACL issue for a bit now and I can't seem to get it down. I'm trying to make it so that: /var/www/html/* are owned ...
0
votes
1answer
175 views

Need to grant two users to an AIX server to just one folder [duplicate]

Ok, in our environment, most users (including myself as one of the unix admins) don't actually have admin rights directly on the aix servers. We login to a front unix server as ourselves without root ...
2
votes
2answers
411 views

Giving www-data permision to Dropbox subfolder?

I want to give my website the permission to read files & folders from a Dropbox subfolder. I think I have added the correct permissions, but I can't get the www-data user to get access to the ...
0
votes
1answer
58 views

User sharing in Unix

How does Unix or Linux stop other users from accessing or modifying each others files? I know permissions are a part of it. Is there a specific concept in use?
14
votes
6answers
3k views

Can root/superuser read my read-protected files?

On shared unix hosting, if I have a file sensitive-data.txt and I issue: chmod 600 sensitive-data.txt Can root user still read my file? Specifically I'm wondering if it's safe to store my password ...
3
votes
1answer
173 views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore [duplicate]

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
0
votes
0answers
49 views

Cpanel directory chgrp issues

I'm struggling to get a directory to work with user:group. After creating the directory via WHM I've logged in via SSH and set: chgrp -R developers mysitedirectory Which results in a 500 internal ...
3
votes
2answers
105 views

Accidentaly changed the permissions in / [duplicate]

Accidentally did : chmod -R 777 / Now, RHEL 6 is not booting up. What do I do? I have a DVD and can go into rescue mode. Can someone explain how do I reset all the permissions ? Update ...
0
votes
1answer
51 views

Permissions help?

So I've set up a Wordpress site on my server. The problem I'm having is that Wordpress creates new folders to sort content uploaded from the Dashboard by day. But, somehow the server doesn't have ...