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
31 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
38 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
59 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
68 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
16 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
44 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
30 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
18 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, ...
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
46 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
32 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
36 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
49 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
57 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
41 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
81 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
31 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
16 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
27 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 ...
4
votes
2answers
83 views

How to recursively check if a specfic user has read access to a folder and its 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
31 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
19 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
33 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
26 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
41 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
52 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
86 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
32 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
48 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
54 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
101 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
147 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
41 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
180 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
41 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
39 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
37 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
186 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 ...
0
votes
0answers
10 views

centOs 7 Bind 9 pki directories what is the purpose

i would know what is the use of this directory, because he caused some bad behaviors(permissions issue) with the named-chroot service. So i would know why named-chroot need it to start. he contains ...
1
vote
2answers
46 views

Adding user to the group owning a folder doesn't give that user access

I have the following folders: drwx------ 4 ccote domain^users 4096 Apr 17 11:18 ccote drwxrwx--- 2 ccote ccote_jponchar_gnicolas 4096 Feb 20 10:58 ccote-jponchar-gnicolas ...
1
vote
2answers
39 views

User cannot see directory permissions

I'm working in Ubuntu 3.13. The permissions on a drive are such that the owner can see directories and files with these permissions: drwxrwxr-x 2 michael atlas 4096 Feb 15 12:34 temp2 ...
2
votes
1answer
45 views

How to delete stubborn directory?

I'm having issues with dropbox so I'd like to uninstall and reinstall it. To do so I need to remove ~/.dropbox-dist but no matter what I do it won't budge. If I run ls -l I get: drwxr-xr-x 3 user ...
4
votes
2answers
35 views

Samba shares are read-only from both Windows and Linux

I'm trying to configure Samba running on Gentoo Linux to share my external NTFS drive with two other machines, one running Gentoo as well and the other running Windows 7. Previously this drive was ...
1
vote
2answers
115 views

Permanently change permissions of /var/run/postgresql

On Linux Mint 17.0 Cinnamon Edition, I want to use /var/run/postgresql as the unix_socket_directories option for all of my postgres databases. Whenever I run the command pg_ctl -D postgres-data -o ...
0
votes
2answers
39 views

'+' and 's' in permission strings

If the ls -l command gives me a permission string like rwsr-s--x What does the 's' mean? The only sources I found mention that it can be present sometimes but do not elaborate. What does a '+' ...
0
votes
0answers
47 views

CIFS: “permission denied” but (empty) file created?

System is a Linux Mint 17. From /etc/fstab: //fileserver/share /home/share cifs credentials=/etc/smb.credentials 0 0 Share exists and is successfully mounted (by the root process). Writing to the ...
0
votes
1answer
46 views

What are the best practices for permissions and and methods for generally avoiding using sudo? [closed]

The main point is that I only want one user to have sudo access - really only for use in set up and emergencies. I don't even trust myself with sudo access all the time. Are there best practices ...