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
2answers
248 views

Why can't I delete this file as root?

I have directory exam with 2 files in it. I need to delete files but permission is denied. Even ![rm -rf][1] command can't delete these files. I logged in as a root user.
0
votes
1answer
392 views

Mongodb permissions error after changing data directory

I just installed mongodb version 3.0.3, on Ubuntu. I edited the conf file to change the default data directory to "/home/user/mongodb", and gave it the following permissions: drwxr-xr-x 4 mongodb ...
1
vote
1answer
66 views

Access Macintosh HD from Ubuntu - Permission denied

I've followed this instructions and now I'm able to access my Machintosh HD from Ubuntu, the problem is that I can't access the folder I need (example Desktop), it say that I haven't enough ...
-4
votes
1answer
106 views

Problem with sudoers file. Syntax error at line 82, but cannot find exactly what? [closed]

I ssh'ed into my new Linux machine (no physical access) and I have root credentials. However, I cannot run sudo commands because of some error in the sudoers file made by someone else who logged in as ...
1
vote
1answer
83 views

How to create a Samba share that is writable from Windows without 777 permissions?

I have a path on a Linux machine (Debian 8) which I want to share with Samba 4 to Windows computers (Win7 and 8 in a domain). In my smb.conf I did the following: [myshare] path = /path/to/share ...
5
votes
3answers
378 views

How do Linux permissions work when a process is running as a specific group?

This is something I haven't been able to find much info on so any help would be appreciated. My understanding is thus. Take the following file: -rw-r----- 1 root adm 69524 May 21 17:31 ...
0
votes
1answer
81 views

Debian, Apache, 403 Forbidden Errors and Encrypted Drives

I have set up Apache on my local Debian Jessie installation but can not get my VirtualHost to work. Accessing http://localhost works just fine and shows me the It works! page. But when trying to ...
0
votes
0answers
24 views

Force group permissions

I have a problem with my Ubuntu server. I want all files that are created in a directory to have rwx permissions for the group. I set the parent folder UID with the following command: chmod -R ...
0
votes
1answer
25 views

Execution bit not being set [duplicate]

I have just set up an EC2 instance to play around with and am testing file permissions; however, I notice that the execution bit is not being passed down to the lower level (read and write are, just ...
2
votes
1answer
41 views

Non-root privileged user to find all files with SUID & SGID bit…Permission Required?

I'm writing an audit script to find all files with SUID & SGID bit set on the system, using the below command: find / perm /u=s,g=s The script will run with a non-root user. Will this user be ...
2
votes
0answers
22 views

Bind a directory as me

Analogous for a regular user running a thin FTP server (where others can access the file system with his/her permissions), can a regular user (through fuse maybe) "mount" a directory for others to use ...
-2
votes
1answer
53 views

Move folder from root of Hard Disk to Current Directory [closed]

I'm trying to figure out how to move a folder that sits in the root of my disk (what do you call that, home?) to a subdirectory. I am not cd'd to the root (again not sure of the terminology). When I ...
0
votes
0answers
83 views

Run Git Pull from a shell start-up script

I have raspberry-pi that loads a shell script on start up. This script runs a python script 'boot_camera.py' which is found in a repository. I Have a server which sends the raspberry-pi a command ...
1
vote
1answer
121 views

Mounting Google Drive with google-drive-ocamlfuse

I've followed these instructions to use google-drive-ocamlfuse to mount Google Drive folders on a headless server But I've encountered an issue, unless I run the command to mount my ~/drive folder as ...
0
votes
0answers
30 views

Giving permissions to user for samba RPI

I am using Samba to share a folder on a USB drive from my Raspberry Pi and it works except for the permissions. From my windows computer, I cannot write to the folder with the issue: I am following ...
2
votes
1answer
80 views

Changing the /dev/tty* permissions at startup

My solution (ArchLinux ARM on RaspberryPi) requires that a non-privileged user has to have access to the /dev/ttyAMA0 port. In final implementation that user will be automatically logged in and a ...
0
votes
2answers
50 views

Change the owner of a file I can write to

I have a folder called fruit with permission 777 and its owner is fruit. I want to create a folder named apple under the fruit folder. But I want to set this folder's owner as apple, not fruit. ...
3
votes
3answers
90 views

Automatically mount a drive using /etc/fstab, and limiting access to all users of a specific group

I currently have an extra HDD which I am using as my workspace. I am trying to get it to mount automatically on reboots using the following line added to /etc/fstab /dev/sdb1 /media/workspace auto ...
0
votes
1answer
26 views

File Permissions issue from same group

I have a folder that I haven't created and belongs to a web-group group. Even though my username is under that group I can't modify files or create new ones without doing sudo. When I do the ...
0
votes
1answer
33 views

Apache Module blocking access to FTP

I'm running a CentOs server with a lot of websites on it. The previous dev lead applied the Apache module to all domains. Problem is, now the client can't access their files in Filezilla. They can ...
1
vote
1answer
57 views

Permission denied (failed to create pid) when starting SphinxSearch [closed]

When I try to start the SphinxSearch service like this /etc/init.d/sphinxsearch start or this sudo /etc/init.d/sphinxsearch start I get the following error Starting sphinxsearch: Sphinx ...
18
votes
5answers
670 views

Find files that a user can write, efficiently with minimal process creation

I am root. I would like to know whether a non-root user has write access to some files - thousands of them. How to do it efficiently while avoiding process creation?
0
votes
1answer
27 views

UMASK not having effect on some file creations

I have umask set to 002 in my Linux server and its working fine while I create file using touch. But I still have some files that are created with permission contrary to umask. These problematic files ...
1
vote
1answer
184 views

Run ./script.sh vs bash script.sh - permission denied

When I try to run ./script.sh I got Permission denied but when I run bash script.sh everything is fine. What did I do wrong?
6
votes
3answers
561 views

How does Unix implement file permissions?

I have a text file named foo.txt with root permission in one Linux distribution. I copied it to another Linux distribution on another computer. Would file permissions be still maintained for ...
0
votes
2answers
32 views

For given directory, how to check which files has specific permission flag in the group part?

I have a directory and i want to list all files that has permissions for writing in their group part, no matter to which group they belong. Also, how it can be done for the whole filesystem?
1
vote
2answers
38 views

Which is the user used by Wordpress?

I've setup Wordpress, however Wordpress is unable to make changes within folders, and after some research it was determined that this is a permissions issue; the user used by Wordpress, is unable to ...
4
votes
1answer
44 views

No output from locate command

I usually find the answers to all my Unix related problems already posted as questions and answers. However, this particular issue has had me stumped for the past hour so I thought I’d ask my first ...
0
votes
2answers
35 views

Disable directory permissions change

I have a client whose website uses a plugin which creates a temp directory with 777 and I am being alerted by e-mail about it several times per minute. Since I do not want to add exception to the CXS, ...
2
votes
1answer
67 views

how to enable sudo for one directory

I have Redhat 6.3 and I want to enable sudo command for chown,kill and chmod, so under root user I did the following: visudo #add the following line aabuhasna ALL=(ALL) NOPASSWD: /usr/bin/kill, ...
1
vote
0answers
115 views

Why, by design, are group permissions ignored for the owner of a file? [duplicate]

Edit: I didn't realize that the owner of a file can chmod the file no matter what the permissions. This renders the situation of owner permissions being less than group permissions useless, as the ...
1
vote
1answer
41 views

How do file permissions work with partition filesystem?

If I store a file in ext2, ext3, or ext4 formatted partition, it's permission is saved. I mean, I can have different permissions for different files in extX partition. However, If I store a file in ...
1
vote
0answers
36 views

Mount cifs permission problem on deep directory perhaps due to UNC and prefixpath splitting

I am trying to mount a directory (dir3). However, on the windows machine the directory /server/dir1 is already a file shared folder, but I don't have permission to it. I have been given the read ...
1
vote
0answers
101 views

Mount FUSE directory into CIFS share with correct permissions

I'm using Time Machine File System (tmfs), which is an extension of FUSE, to read the data on a backup drive and hopefully make accessible from a Windows machine: Create a shared folder you can write ...
0
votes
1answer
48 views

create a linux user with create files and write permissions without sudo access

I want to create a user in such a way that it can create a file and update the contents of the file. useradd username Now for sudo, we can create username and linking to sudo like below: useradd ...
-1
votes
1answer
56 views

How to Interactively ask a user to change Permissions for a Specified File

I need to create a script that will allow a specified file to have its permissions changed interactively by asking the user if they would like to enable Read, Write and/or Execute one by one for each ...
2
votes
0answers
45 views

File permissions when removing user from git

I have a shared git repository set up, which users pull from with the ssh protocol. I would like to set up the permissions in a way that only users in a specific user group (e.g. git_group) may ...
0
votes
0answers
33 views

File permission issue with web server

Our project files is hosted in Linux server using root user, i tried find the user for Apache/PHP, here is what i got by running ps aux | egrep '(apache|httpd)' [root@server tmp]# ps aux | egrep ...
1
vote
1answer
48 views

Permisission with mplayer

I am trying to use mplayer to directly play video into the framebuffer. Currently I cannot get the audio and video to play on the same run level. The audio devices will only connect if I am in user ...
2
votes
1answer
54 views

Setuid, SUID bit not providing root privileges

I've written and compiled a short program to allow any user to change the contents of my /sys/class/backlight/intel_backlight/brightness file, but I fail to escalate their permissions. What could I be ...
0
votes
1answer
30 views

Permissions for new user

I have created a user in my Centos VPS. But with the new user I can not create, modify files in any folder (for example /var/www/ or /etc/nginx/conf.d/), even though I have added the new user to the ...
0
votes
0answers
51 views

Permission of any file folder set to read only on upload

I have inherited an old CMS system that I have just cleansed from a massive hack attack. I copied all the files and databases, scrapped the old server, cleansed the files via various means, cleansed ...
1
vote
0answers
86 views

Decrypting with GPG after a “su - different user”

I have cron job running a script in the cron of "USER A" that encrypts many files in a loop using the gpg command below: gpg --batch --cipher-algo AES256 --passphrase "PASSWORDISHERE" -c FILENAME ...
0
votes
1answer
84 views

No delete or move to trash in context menu in some directories (gnome)

On archlinux with gnome 3.16.1, in some directories, for example /srv/http/website/public/img/ I don't have options to delete a file , or move to trash, in the rightclick context menu . I have to use ...
-2
votes
1answer
137 views

File permission in VirtualBox shared folder

I'm new to Ubuntu and the terminal. I installed Mint 17 on VirtualBox as the guest. After that, I created a shared folder and mount it on Mint. sudo mount -t vboxsf share ~/host I also installed ...
1
vote
1answer
338 views

Why can't I remove the empty directory with username www-data? [duplicate]

The test is a directory which contains nothing, an empty directory. root@localhost:~# ls -l /home drwxrwxrwx 2 www-data www-data 4096 Apr 26 17:50 test root@localhost:~# ls -l /home/test ...
1
vote
1answer
226 views

reliable way to give all read/write access recursively in CentOS 7

What is the most reliable way to give all users read/write privileges for a given directory and all of its subdirectories and files in CentOS 7? In an eclipse web application project that uses ...
2
votes
1answer
101 views

Operation not permitted

I'm on OS X and I'm trying to write an interface for for an interpreter, the communication with the interpreter looks like this in PHP: $f = fopen('mmascript.m', 'w'); fwrite($f, ...
0
votes
1answer
39 views

Setting permissions on SMB

My router (Netgear DGN-2200-64) has a USB port usable as SMB storage (with the default firmware - I guess it's Linux under the hood). I plugged in an old flash disk (FAT formatted I think) & set ...
1
vote
0answers
37 views

Virtualmin, mounted disk under home directory, but having permission errors

I have a virtualmin installation in debian 7. My hard drive was full so mounted a second under home directory (/home/disk2) using fstab file. I created a virtual server and moved it to second drive by ...