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

Is it a good idea to set file permissions to 640 on windows partition?

I run both Arch Linux and Windows 10 on my computer. When I cd onto the Windows partition (which uses NTFS), I notice that all files and folders have 777 file permissions. I want to run $ chmod 640 -R ...
3
votes
1answer
151 views

Access a file in PHP through a symbolic link from a user that normally doesn't have permission

I have this website, where if the user submits a form, a python script is executed through a php page, and the python script creates a zip file and should offer it to the user for download through a ...
-1
votes
1answer
73 views

Allowed group can't access a folder [closed]

I've a weird problem on my linux machine, I've multiple users, we can say u1, u2, u3... who all belong to a group G. I have a group folder in /home who belong to one of these user (we'll say u1), and ...
1
vote
0answers
74 views

Apache, can't link to Home directory, Alias does not work

I am trying to make a folder in which I can build websites (using php). I have switched from a Windows system where I was using Uniserver (http://www.uniformserver.com/) which is a setup with MySQL, ...
2
votes
1answer
57 views

ACL group permission still not allowing write permissions

There's a file called '/etc/file.conf' on my filesystem. $ getfacl /etc/file.conf getfacl: Removing leading '/' from absolute path names # file: etc/file.conf # owner: root # group: root user::rw- ...
2
votes
3answers
80 views

Change files with Editor that need sudo permissions

I want to change files with KomodoEdit, that need sudo permissions. I cant start KomodoEdit with sudo tho (for whatever reason). Can I somehow grant Komodo permission to edit those files (in ...
5
votes
1answer
411 views

how to remove SELinux label?

I added the SELinux label svirt_sandbox_file_t to /home chcon -Rt svirt_sandbox_file_t /home The label is shown using: [user@localhost ~]$ ls -Z unconfined_u:object_r:svirt_sandbox_file_t:s0 ...
1
vote
1answer
252 views

Allow user access to their own dir, /var/www/html, nothing else

My company has a web designer that's going to upload files to /var/www/html and edit them. I created an account and will give them ssh access. I added them to the apache group, but they can't access /...
0
votes
1answer
89 views

Setuid does not work for my windows program hosted on a Linux server [closed]

I compiled ExpressI.exe on a Windows system with Visual C++. The file ExpressI.exe resides on a share mounted from Linux. I need to permit only the program ExpressI.exe to access the test folder ...
1
vote
0answers
168 views

Permission denied using ecryptfs-setup-private as root

If i create an encrypted home directory for a non-root user as root user, I mean: ecryptfs-setup-private -u kok After that, when kok login it fails to mount: Failed to detect wrapped passphrase ...
2
votes
1answer
156 views

Bash script unable to move files

I'm trying to write a "janitor" script that will run as a cron job in one specific directory. It is supposed to create an archive folder with the date of creation in the name, and then find and move ...
1
vote
1answer
26 views

Group Directory permission

you have been asked by couple of programmers to make ProjectA a group directory on a UNIX server which allows them to create files under that directory to facilitate collaborative work, but only the ...
2
votes
0answers
48 views

Unable to insert records on sqlite on a Linux environment

I tested a simple Php program using Sqlite3 instead of mySQL on my own computer and it works fine. What the program does is simple insert of record into a certain table. Now, when I try to do that on ...
1
vote
3answers
98 views

The Apache2 configtest failed

Can anyone help me with this error. [Failed] starting web server: apache2 failed! Output of config test was: Chown: changing ownership of '/var/lock/apache2.Nxr1S1Hr6b': Operation not ...
2
votes
0answers
272 views

How to change to a different user after SFTP login

The goal: Use local IDE (IntelliJ PHPStorm 9) to browse & edit remote files via SSH The obstacle: My user on the remote machine does not have permissions to read files, which are owned by ...
1
vote
1answer
25 views

When installing a package, can I give write permission to specific files?

I'm trying to install numpy onto my system. I'm kept from installing the package, however, because I don't have permission to edit certain folders. This "permission block(s)" is the standard safety ...
3
votes
2answers
106 views

Creating a user having only access to folder & sub-folder which is present in other user of the same System

I have 2 users on my ubuntu system, User1 and User2. I have a directory(folder) in User1 as /home/User1/Software and I want to set this Software folder as home directory of User2 so that whenever ...
1
vote
0answers
37 views

Can't Wireshark the USB bus: permissions

I am trying to monitor my USB traffic using Wireshark. The docs say "just do sudo modprobe usbmon". Well, that doesn't work: vorac@laptop:~$ sudo modprobe usbmon [sudo] password for vorac: vorac@...
2
votes
1answer
156 views

How to make files unmodifiable and undeletable without `chattr`?

I (and my collaborators) have a directory tree containing ~160K files (most of them are automatically generated by data gathering instrumentation). These files reside in a system that gets backed up ...
1
vote
0answers
61 views

Starting a minecraft server using screen doesn´t work properly

I'm trying to run a minecraft server on my vServer. Everything works properly when I start the server like this: java -Xmx1G -Xms1G -jar minecraft_server.jar nogui But I want the server to run in ...
2
votes
0answers
59 views

How to set EMIRGE program to write files with desired permission

How can I get the EMIRGE program to read certain files? I am using Linux Mint (17.1). I have downloaded a program call EMIRGE, which is supposed to take fastq files (a text file format for ...
2
votes
1answer
54 views

Accessing Time Capsule Drive from SSH?

I have an Apple Airport Extreme Time Capsule. I'd like to use it to store information for data mining operations. I've set up OS X server, and set up user accounts such that users can log into a Mac ...
3
votes
1answer
160 views

How to specify owner and permissions for an NFS mount?

I have an NFS mount in fstab: 10.0.12.10:/share1 /net/share1 nfs rw 0 0 which defaults to root as owner and group and 777 permissions. How do I specify another owner and different ...
2
votes
1answer
111 views

Avoiding permission issues on portable hard drive in Linux Mint

I'm trying to pre-emptively avoid permission issues on my portable USB hard drive. The plan is to put a couple of Virtual Machines on the portable hard drive, and use it between two PCs both running ...
2
votes
2answers
214 views

How to set default owner per directory?

I'm on Debian 8. While How to set default file permissions for all folders/files in a directory? is about permissions, I'd like something similar for ownership. Whenever I login as root and add a ...
5
votes
1answer
143 views

Why does default setfacl fail for nested directories?

I am using sftp with the internal-sftp for debian. What I'm trying to acomplish is to jail all users to a specific folder which is working fine. I also need to have a single user that has "admin" ...
3
votes
2answers
48 views

Do permissions for the root folder in *nix filesystems differ from other directories?

In a comment under this answer I received a suggestion that "permissions on the / folder are a special case". Is it true and if so, how does the implementation of permissions for the root folder ...
2
votes
0answers
29 views

Netatalk user in both rwlist and rolist

0 down vote favorite I'm currently configuring a AFP server that's running OD, AFP, SMB etc. My problem is that I got a few shares that ALL needs to have read only on and a few people in a specific ...
2
votes
0answers
21 views

RHEL / SELinux - Apache unable to write to a directory it can write to [duplicate]

I have a RHEL 7 machine running an Apache web server with multiple virtual hosts on it. I've recently run into an issue where I am unable to upload media, e.g. images / pictures / video, to my machine ...
3
votes
0answers
85 views

Read but not write access to a socket on Linux, what can one do with that?

On a server installation, I found sockets writable by group, but only readable by others. I assume that the latter has no effect, as my understanding was that write access is needed to be able to work ...
0
votes
1answer
59 views

Default text file permissions?

How do I find out the default permissions for a newly created text file? I've tried ls -l filename.txt but it keeps saying it cannot access the txt file, so im pretty sure I'm doing it wrong ...
0
votes
1answer
827 views

file with permission lrwxrwxrwx does not show any link on “ls -l” command

lrwxrwxrwx. 1 tomcat tomcat 27 Oct 17 00:23 work This is my file(link) I want to go inside a directory within it to rm a file and then copy the new one. But it says permission denied and does not ...
0
votes
1answer
56 views

Add permissions to access /media/External drive

I'm using RaspberryPi and Raspbian distribution. Additionally I have installed Kodi and set it up to auto start. I have problems with setting permission to /media/myDrive directory. It's because od ...
0
votes
0answers
86 views

Logged in as root server but terminal not showing #

when I log into Centos 6.5 server with root details, It is not showing # in my terminal, when I do sudo it says "sudo: /etc/sudoers.d is world writable" So i checked on google and used answers ...
0
votes
1answer
433 views

zipping files without changed its ownership

I understand now that i cant give away files Using chown as i am a normal user and not the one with root permissions . Now my problem is I have a whole bunch of files with write permissions on them ...
1
vote
1answer
38 views

`sudo tar` but own the resulting file

I want to put a bunch of files into an archive with tar. However, I don't have permission to access all of them, so I have to do sudo tar. However, now that root has run the tar, the resulting ...
1
vote
1answer
40 views

Rights, permissions and groups

I have a external drive mounted to /media/usbhdd, the owner is: debian-transmission and the group is gebruikers. In the group gebruikers i have added the person debian-transmission and pi. But when i ...
2
votes
2answers
320 views

Prevent a user from removing file

I am looking for a way so that a particular user or a group should not given the permission to remove any file in the system, but only read/execute the file.
2
votes
1answer
46 views

how to prevent access to other user with same user id (UID)

I have two Linux OS installed in two partitions in my system. However I have few usernames which are common in both partitions. For ex, I have user friend in both the OS. I have noticed that friend ...
0
votes
1answer
41 views

permission denied on ~/.ssh for the owner of it! [closed]

I have set the owner of /home/jack/.ssh to the jack and also give it the permissions as follows: -rw------- 1 jack jack 1679 Oct 10 01:41 id_rsa -rw------- 1 jack jack 396 Oct 10 01:41 id_rsa.pub -...
1
vote
1answer
63 views

To cd into a directory [duplicate]

What permissions are needed? I mean the minimum permission needed to actually cd into a directory. It's just a general question I have. If someone has executable permissions is that enough to be ...
2
votes
2answers
232 views

How to change permission of anonymous pipe?

I've the script which loads the SSH key from the variable (as part of script in CI environment) in order to not keep the private file in the public repository, however ssh-add complains about the ...
0
votes
1answer
243 views

user exists when trying to add user to systemd-journal group.

I have been wanting to read systemd-journal by running/using journalctl -b . Now if I run it as a user I get the following :- $ journalctl -b Hint: You are currently not seeing messages from other ...
0
votes
1answer
87 views

Give access to only one directory that's not user's home

In my VPS account, I have a folder /home/xyz/public_html. This belongs to a customer who now wants their in-house developer to look into the code. How do I give SFTP access to only this folder? I ...
0
votes
0answers
109 views

Permissions set to 755 but I cannot access folder

I want to access some files in a folder that I created in a server. I have changed the file permissions recursively to 755, which basically should allow everyone to read and execute files, but this is ...
2
votes
1answer
160 views

Unable to run chmod, chown, and even ls on a folder

I searched the net and tried to apply answers to similar problems but none worked so far. There is a folder named ocrpaylasim under /home/bnet path. This file belonged to bnet user before and was ...
4
votes
1answer
56 views

How to ensure proper file permissions when running installer bash as sudo?

I am making a installer bash, playing with it a little too. But I just came across a serious problem: As I run the bash with sudo ./install.sh, all the files it copies are owned by root and therefore ...
2
votes
2answers
6k views

Why do I get permission denied when using mv althrough directory rights are correct?

I get permission denied when trying to move folder Music via mv although directory owner is set to my user and user permissions are set to 7. What's going on? (I know that I could use sudo but I want ...
1
vote
1answer
56 views

SFTP access to different parts of the apache webroot for different users

I have a website running on apache with the web root folder at /var/www. I have different people managing different aspects of the website. Designers accesses /var/www/images and /var/www/media ...
1
vote
0answers
119 views

Give non root user permission to mount NTFS partition

When an external storage device like a flash drive is plugged in, it gets automatically mounted without any root authentication by nautilus. But why does mounting NTFS partitions within the same ...