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)

0
votes
1answer
6 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
13 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
17 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
17 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
34 views

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

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
23 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
35 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
12 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
24 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
41 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
54 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
16 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
7 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
14 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
541 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
21 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
57 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
518 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
16 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
29 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
29 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
24 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, ...
1
vote
1answer
58 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
106 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
28 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
21 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
29 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
31 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
45 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
28 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
22 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 ...
0
votes
0answers
15 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
35 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
21 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
22 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
45 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
38 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
39 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 ...
2
votes
1answer
186 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
75 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 ...
1
vote
1answer
47 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
20 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
22 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 ...
1
vote
1answer
65 views

Sticky bit and users with sudo permission

Let's say I chmod 1777 a folder /opt/test and all files inside it as user user1. Hence user2 is able to update and edit files inside the /opt/test directory. When user2 operates via sudo, he's able ...
2
votes
0answers
80 views

MySQL read only error but permissions set and SELinux AFAICT correct

I am new to MySQL and Linux and because I had issues with an old MySQL version (5.1) I used mysqldump and installed MySQL 5.6. I changed the datadir location by copying everything to the new folder ...
0
votes
2answers
25 views

Unable to perform write & execute actions on ntfs partition. Not even with root privilege. Using arch linux.

Unable to perform write & execute actions on ntfs partition. ls -l shows that user have only the read permission. Group any others have non. i tried to copy some text from home to windows ...
1
vote
1answer
21 views

Cannot log in to my Debian Wheezy 7 system

I have a Debian Wheezy 7 installation. When I turn it on it boots to the log in screen normally. However when I type in my username/password and try to login the screen briefly turns off for about one ...
4
votes
2answers
49 views

htop shows only the processes of the user that's running it?

On my old Debian Wheezy I see as a normal user without sudo all processes from all user in htop. On my new Debian Wheezy I only see my own processes. Old system kernel: 3.2.0-4 New system kernel: ...
1
vote
1answer
34 views

Set default permissions so only owner can read, execute and write for every new file and directory

I added this to my ~/.bashrc file: umask 077 So that every new file and directory has by default read, write and execute permissions. It does work with directories, but files only have write and ...