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
42 views

Why can't I write to my ext4 partition even with 777 permessions?

It is a partition that is mounted in the /media directory on demand. I am the owner and I've had it's permissions set to 777 recursively. Here is the result of mount | grep sda4 (the partition in ...
8
votes
3answers
658 views

Purpose of permissions such as 0111 or 0333

What is the purpose of Linux permissions such as 111 or 333 (i.e. the user can execute, but cannot read the file), if the ability to execute does not automatically imply the ability to read?
14
votes
4answers
2k views

What is so special about Linux permission 004?

I was reading Practical Unix and Internet Security, when I came across the following lines which I couldn't comprehend. If you are using the wu archive server, you can configure it in such a way ...
0
votes
0answers
10 views

Configuring Samba to serve Unix-style files (e.g. owners, permissions)

I just learned that Apple has deprecated its own AFP network filesystem in favor of SMB2. I have looked, but can't find any solid information on how its handling of SMB2 implements Unix-style file ...
0
votes
1answer
9 views

nohup: failed to open 'nohup.out': Permission denied

I am trying to install PHP5 on Openshift using the instructions available here. I have accessed Openshift with SSH, got into the proper directory and executed: nohup /repo/misc/make.sh &. I got ...
0
votes
2answers
20 views

ftp server brings 550 Failed to open file on using get to retrieve folder with 777 permission

I am attempting to download a folder where it has 777 permissions as well as its subfolders, but when I try to use get in ftp, It brings back the error: 550 Failed to open file Iv'e checked the ...
0
votes
1answer
33 views

Owners and groups of everything inside /var are changed mistakenly [duplicate]

I have recursively changed owner and group of /var to root:root. I have mistakenly ran following command while standing in /var. I thought I was in /var/www, sudo chown root:root . R Now many ...
0
votes
0answers
27 views

normal user runnig a bash script containing root command without password

I have a bash script that contains few commands that can only be run by root, e.g. wpa_supplicant. I would like to allow the normal user to run the script without sudo. I found these posts but they ...
2
votes
1answer
24 views

How does file system permission behave on different systems sharing an NFS export?

I'm familiar with how Linux permissions work on a single machine, but what happens when a directory is shared (specifically via NFS)? Also, what happens when two users are seemingly the same (same ...
1
vote
1answer
31 views

Using find -perm to find setuid files

I want to find list of all suid binaries. I use the command find / -perm 4000 However this does not give me any output. I understand that the SUID file may be in 4xxx permission mode. But if I ...
1
vote
1answer
48 views

accidentally moved and fixed /bin/ directory, but now can't su

I accidentally moved my /bin directory to /usr/bin/bin, anyway, I managed to move it back to its place with # /usr/bin/bin/mkdir /bin # /usr/bin/bin/mv /usr/bin/bin / and then I was able to login ...
0
votes
1answer
42 views

Meaning of chmod 1775

Created a folder "Sample_dir" and analysed its permissions. $ mkdir Sample_dir $ ll Sample_dir/ total 36 drwxrwxr-x 2 user user 4096 Jul 1 19:26 ./ drwx------ 71 user user 28672 Jul 1 19:26 ../ ...
0
votes
1answer
15 views

Create permissions for group to write and files created by owner are only writeable by owner

I have created a folder, /hello: it has the following permissions: Owner = rwx Group = rwx Others = r and the folder is owned by john and belongs to the group sales. I have created another user ...
2
votes
2answers
38 views

What can I do to start a terminal in a X server at boot without giving away root priveleges?

The problem: I run Linux on an arcade machine with a monitor that accepts a 15kHz signal. I can't see anything until the X server starts and a modeline gets the GPU to output the correct signal. My ...
1
vote
0answers
18 views

TUI Tool to change directory permission rules?

There are some strangers to Linux who need to use it in terminal mode but they are helplessly limited to accept that using chmod and chown is dead simple. They would be satisfied only by a tool that ...
-3
votes
2answers
29 views

How can I give the user sufficient permission to access '/' directory?

How can I get the following to work? user@host:~$ cd .. user@host:/home$ cd .. user@host:/$ echo " " > txt.txt bash: txt.txt: Permission denied user@host:/$
1
vote
2answers
17 views

Can't get server access permissions working

I am trying to get a script going that will move files in the apache webserver directory for me without sudo. In my mucking around I somehow got edit and move permissions working for user nhergert, ...
0
votes
0answers
4 views

Set wordpress permissions correctly on Centos 6.5 VM + apache 2.0 [migrated]

I've a Centos 6.5 VM with apache 2.0. I'm tring to understand how wordpress permissions should be set, in order to have a safe environment and make it update via Wordpress UI rather than ftp. This is ...
1
vote
0answers
18 views

APCUPSD script can't close program

I want to use APCUPSD to stop a program (called ns_image_server) which runs in a terminal window when it detects that power has been lost, to give that program time to close before the computer shuts ...
2
votes
0answers
45 views

Why does file-roller appear to have lower priviledges than the user

In Ubuntu I have a mounted samba share. I have selected some files in a directory on the samba share in nautilus and attempted to compress them to an archive in the same location. File roller tells me ...
0
votes
1answer
31 views

Directory Permission Order [duplicate]

In Linux, let us assume we have a directory with the following properties: drwx---r-x 29 user1 group1 4096 Jun 22 14:11 dir1 can I, as user2 having group group1, navigate into dir1? Since ...
2
votes
1answer
29 views

ACLs and classic permissions

I'm trying to set up a git server on my FreeNAS server. The problem I have is with setting up the permissions for different users/groups just as I want. Basically I have two different groups: ...
1
vote
0answers
43 views

Formatting drives in linux always makes them read only [closed]

I'm using Debian 8 and trying to create an ntfs partition (on /dev/sdd). Whenever I format a drive either through the nautilus interface of right click > format... or even through command line ...
0
votes
1answer
34 views

Giving write permissions to www-data for a file within user's home with limited shell access?

I have an access to a remote server with ssh, but the access is limited: my account there, say UseR, can create files in /tmp and in its home directory, but not elsewhere; it can call chmod without ...
1
vote
0answers
35 views

Is it possible to change file permissions when copying

I have a directory with default ACL permissions that get copied to all files created in that directory, but only if they are created in that directory. Would it be possible to change the permissions ...
4
votes
1answer
76 views

Why and when does `lsblk` require `sudo`?

On my up-to-date Arch Linux, lsblk works fine without sudo: $ lsblk -o NAME,FSTYPE NAME FSTYPE sda ├─sda1 ext4 ├─sda2 ext4 ├─sda3 swap ├─sda4 └─sda5 ext4 sr0 $ lsblk --version lsblk ...
1
vote
1answer
28 views

Can non-sudoer modify anything outside of home directory

If a user does not have sudo privileges, can he/she create a file or modify any file outside of his/her home directory, and outside of any external media devices he/she might have connected to the ...
1
vote
0answers
25 views

untar error - Cannot change mode to rwxr-sr-x

I am trying to untar a .gz file , which is stored in the /root folder onto a directory in /mnt/flash2/example I use the following command - tar xzf filename.gz --no-same-owner -C /mnt/flash2/example ...
0
votes
1answer
12 views

User to run weechat over ssh

I want to create an account on my own server for a friend who wants to use weechat. I have created an account adduser friend and created an ssh pair for his login such that password login is ...
1
vote
1answer
23 views

User in the same group new/edit files permissions

I have a few users under the same group. However, when they all work on the same folder via winscp, whenever they open a new file, they open it with themselves, as the owner. Thus, when someone else ...
2
votes
2answers
60 views

How to recursively check if a specfic user has read access to a folder and it's contents?

I need to pass a user and a directory to a script and have it spit out a list of what folders/files in that directory that the user has read access to. MS has a tool called AccessChk for Windows that ...
2
votes
2answers
27 views

In find -perm, what's the difference between “+6000” and “/6000”?

I'm trying to find all the setuid/setgid binaries on my system. I've found two different ways to do this online. What's the difference between find / -perm +6000 -type f and find / -perm /6000 ...
1
vote
1answer
18 views

How do you use 'find' to update ownership of all directories, files, and symbolic links in a folder?

I'm trying to update the ownership of everything in a directory tree from me to root. I'm using find to do it a little more carefully than a recursive chown. Here are the commands I use to change ...
1
vote
2answers
27 views

How to get rsync to complain if user not found

I'm moving files over from my old server to my new server. By the time I'm doing it for real (as opposed to just testing) I'll have all the "user" users (the non-system users, i.e. >= 1000) created on ...
2
votes
1answer
23 views

How to guard a set of folders from being written into by a specific process?

I would like to have a way in which a set of folders do not allow write access for a particular process. For example, I would love to have a way in which YUM/RPM is not allowed to write into /usr/bin ...
2
votes
1answer
28 views

How can I use setfacl to give no access to “other” users?

The command setfacl -dm g::rwx mydir sets permissions for groups to read-write-execute. I'd like to run a similar command such that other users (i.e. not the owner) have no access whatsoever, but ...
1
vote
2answers
41 views

shell or perl script to check group have read privileges

ls -l drwx------ 8 ws web 1024 Apr 29 2013 abc drwxr-xr-x 8 ws web 1024 Oct 19 2011 def I need some script to find directories like abc which doesn't have read/execute permissions ...
4
votes
1answer
68 views

Hard link permissions behavior different between CentOS 6 and CentOS 7

I'm getting a permissions error in CentOS 7 when I try to create a hard link. With the same permissions set in CentOS 6 I do not get the error. The issue centers on group permissions. I'm not sure ...
0
votes
0answers
23 views

Can't run customlog and errorlog in custom directory for apache in centos7 [duplicate]

I can't make my customlog for apache in different than default directory. I think that it has to be something with access rights but have no idea what. httpd.conf - log config journalctl -xn ps ...
4
votes
1answer
31 views

Why can't another user access my file when it's a full path?

I have a program that runs a command that is something like this: /home/myuser/bin>> /usr/bin/sudo -u otheruser script.py /home/otheruser/file.txt This works, but now I need this to work when ...
1
vote
1answer
33 views

Linux Root group change chmod for root owned to 770

I'd like to have normal user account assigned to root group (which I've done already) and change mod of all files that are owned by root user to 770, If I understood it well in result of that every ...
1
vote
1answer
38 views

Set sticky bit by default for new directories via ACL?

I want to set up a directory where all new files and directories have a certain access mask and also the directories have the sticky bit set (the t one, which restricts deletion of files inside those ...
4
votes
3answers
76 views

How to restrict a user to one folder and not allow them to move out his folder

I have ubuntu server on digitalocean and I want to give someone a folder for their domain on my server, my problem is, I don't want that user to see my folders or files or to be able to move out their ...
4
votes
1answer
140 views

Permission errors even permissions are wide open

I installed anaconda on our new VM and I can't list it's contents. I can change my directory to .../anaconda/ but when I type ls -l I get: ls: cannot open directory .: Permission denied However, ...
0
votes
3answers
40 views

What rights signify when using ls -l? [duplicate]

When I type ls -l and press enter I get a list of files, with details about each file. Next to each file there is permissions and rights for each file. What do they mean? For example: -rw-rw-rw- I ...
1
vote
1answer
71 views

Permission denied writing to mysql log

I am just testing out a new Ubuntu (Vivid 15.04) install on Vagrant, and getting problems with mysql and logging to a custom location. In /var/log/syslog I get /usr/bin/mysqld_safe: cannot create ...
2
votes
2answers
27 views

Confused on file and directory permissions for Samba shares

I've been searching for while to try to understand the following mask/mode fields for creating files/folders in Samba shares: create mask force create mode directory mask force directory mode But ...
1
vote
1answer
32 views

AUFS only changes permissions of the topmost directory

I have two writeable directories branch1 and branch2 tied together with AUFS on Debian 8 to the mount point union. Mount options: br=branch1=rw:branch2=rw branch1 and branch2 each contain a ...
2
votes
1answer
33 views

What is the difference between the FreeBSD flags, immutable and unlink?

What are the differences or similarities among the FreeBSD flags, simmutable/uimmutable and sunlink/uunlink? Reading man chflags, I see these flags: schg, schange, simmutable set the system ...
1
vote
3answers
108 views

systemd: permission issue with mkdir & ExecStartPre

I've got a problem with this (shortened) systemd service file: [Unit] Description=control FOO daemon After=syslog.target network.target [Service] Type=forking User=FOOd Group=FOO ...