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
4answers
3k views

What type of permissions should a user's home directory and files have?

I'm working with a fresh install of Ubuntu 12.04 and I've just added a new user: useradd -m testuser I thought that the -m flag to create a home directory for users was pretty standard, but now ...
1
vote
1answer
1k views

Xfce: Upgrade from Squeeze to Wheezy broke xfce's user policies

While using Debian squeeze, I was able to allow a user shutdown in xfce by adding users to the powerdev group (see here: xfce: Allow shutdown for non-root users). Now, I upgraded my system to Debian ...
1
vote
3answers
661 views

Setting file permissions in bash script

This script is not working the way I thought it would .I though it would find all the scripts that have every one rwx permissions changed to the permissions of xx5 #!/bin/bash # the / makes find ...
2
votes
1answer
1k views

Give default write permission to group to any newly created files and folders

Let's say that we have 2 users: a and b, that are both part of group general. I would like that any file or folder that A creates, would have write permission to the group GENERAL. How can I do it? ...
1
vote
0answers
253 views

vsftpd virtual user read permissions

I have a vsftp server that services a read-only public space by anonymous login. It works fine. I need to add a few specific users that will authenticate by username/password and they will have ...
2
votes
2answers
690 views

Can I allow users to chmod a file not owned by them?

I would like to allow users to chmod a file that is owned by root or some user that is not themselves. I have chmod'ed the file to 777 and I get "operation not permitted". I have added the user to the ...
1
vote
2answers
68 views

Is there any way for group “owners” to have full rights of a file or directory owner?

Is it possible with the normal Unix permissions system to enable group members to have the right to change a file's permissions? In other words, suppose we have a file awesome.rb which is owned by ...
3
votes
1answer
1k views

ACL, ls, “permission denied” and a lot of questionmarks

I have two users, Alice and Bob. Bob should be allowed to list, ls, Alice's home directory. Alice also has a file in her home directory that Bob should also be allowed to read. I run these commands ...
0
votes
2answers
189 views

why am I able to delete file which belongs to `root` under a non-root user? [duplicate]

I create a file under my user esolve and then su root and use chown to change its user to root then I returned to user esolve I notice I can still delete the file with rm why?
4
votes
1answer
1k views

how to keep file owner same for newly created files

This question is regarding samba file access. I have created a folder A, and under folder A created two folders B and C. And also created three users A, B and C. User A has access to all three ...
2
votes
1answer
111 views

Adding a user to a group by default

I have a group that all users on the system share. The group name is common and it is to allow for a universal fileshare for everyone on the machine. How would I make it so that all new users are ...
3
votes
2answers
112 views

how to initialize `/etc/group`?

After editing /etc/group, How this update starts functioning without restarting the system in Unix? Is there any command we need to run?
2
votes
3answers
336 views

files in /proc/$PID (e.g. ssh-agent, Chrome) are not owned by user but by root

I am just answering another question here :-) and thus had a look – wanted to have a look at /proc/$PID/fd of ssh-agent in order to find out which socket it uses. But I can't. I am quite surprised to ...
1
vote
1answer
230 views

LAMP Server setup for personal development

I am setting up a LAMP server in VirtualBox for personal development. This will be an Ubuntu Server 12.04 install, and I will be using Virtual Hosts for Drupal, Yii, and other small PHP apps. Ideally ...
0
votes
0answers
134 views

Why can't users besides root create files in a samba share?

I am sharing a directory on one Red Hat machine via samba, and mounting it on another Red Hat machine with the following command: mount -t cifs -o guest <remotepath> <localpath> The ...
1
vote
0answers
499 views

samba 4 force user

I have a directory with files owned by Linux user quux. I want to give access to it over CIFS using Samba 4 for two persons so they have different usernames foo and bar and passwords but access the ...
0
votes
1answer
206 views

LINUX: Permissions for files: Identify if it is a file or directory, and its access allowed to the world, user, and group [duplicate]

I am having trouble understanding permissions for directories and files in LINUX. By examining permissions for each of the following files, identify if it is a file or directory, and describe the ...
1
vote
2answers
3k views

using root to mkdir in another users home directory

having a bit of a difficult time trying to create a folder under another user's /home/devuser1/pubic_html folder. I'm trying to avoid using sudo and looking for an alternative. The permissions on the ...
2
votes
2answers
2k views

Unable to change permissions of file system root

When I write ls -la the output is : tusharmakkar08-Satellite-C660 tusharmakkar08 # ls -la total 88 drwxr-x---+ 10 root root 4096 Apr 18 19:43 . drwxr-xr-x 4 root root 4096 Mar 18 17:35 .. ...
1
vote
3answers
4k views

`cp` permission denied when copy a file owned by `root`

I have a folder udp_folder2 d------r-T 41 root root 4096 Apr 26 21:17 udp_folder2 when I'm with user other than root, I can't cp -r it into a new folder it says: Permission denied ...
1
vote
1answer
117 views

chmod allowing write when I am not setting it

I've got a perl script which systematically changes permissions. The first thing the script does is remove all permissions. It does this by calling chmod(from perl). I did this as I found the set guid ...
2
votes
2answers
448 views

Ubuntu Bash - Changing permissions to user files for automating Apache VirtualHost creation

Moved here from AskUbuntu I currently have a small Ubuntu Server 12.04 machine (test environment) with about 3 non-root users created. Each user has their own public_html directory under their ...
1
vote
1answer
378 views

Properly Setting Red Hat Daemon Umask

I've been trying to figure out the proper location to set daemon umasks in RedHat 5. All my searches lead to setting it in /etc/init.d/functions or /etc/sysconfig/init. What are the pros/cons of ...
2
votes
2answers
1k views

Permissions for FTP directory: Inherit directory owner

I am making multiple folders for users (userA/, userB/, etc.) where anyone can create/read a file/folder in any directory (userC can make fileX inside userA/). However, only the directory's owner can ...
3
votes
2answers
385 views

How can I backup a directory to NTFS while preserving Unix file attributes?

I want to make a backup of my home directory to an NTFS partition (an unfortunate limitation). However, when I last tried using just cp, the attributes (owner, etc) went away. How can I make a backup ...
0
votes
1answer
1k views

External HD: “Permission Denied” on file write

I have a 3TB external hard drive that I plan to use for backups. I originally tried formatting with cfdisk, until I learned that only GPT supports 2TB+ partitions. So I converted the drive to GPT ...
4
votes
2answers
4k views

Default directory permissions over NFS

I have two servers, client and server in fairly obvious roles: server hosts the NFS share and client has it mounted. There is a shared group among several users on client called shared which also ...
0
votes
2answers
1k views

Add new user with permissions same as existing user

How to create a new user with permission exactly same as an existing user in linux.
2
votes
1answer
595 views

“rm -rf Filename.iso ” Permission denied

Hi I am facing an issue while deleting an .iso file from Linux x86_64 GNU/Linux. Here are the permissions for the file: # ls -lrt -rwxrwxr-x 1 dev devgrp 2687934464 Apr 12 14:13 ...
3
votes
2answers
2k views

How to grant non-root user access to device files

I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed ...
1
vote
0answers
1k views

How to mount samba rw because everything fails

I'm trying to mount windows share on my laptop and everything mounts ok but somehow I get permission denied when I try to create new file inside mounted folder. I tried noperm, uid, gid, noacl etc. ...
3
votes
1answer
3k views

rsync: failed to set permissions on “/path/to/file.txt”: Operation not permitted (1) [duplicate]

I encountered the error when attempting to transfer source files from a remote Linux web server to a local HP dt1000i Desktop Hard Drive connected to an Ubuntu 12.10 box via USB. A Samba share is ...
4
votes
2answers
4k views

Using setfacl to allow group members to write to any file in a directory

I'd like to use setfacl so that anyone in group 'app' can edit any file contained within /usr/local/users/app regardless of what the traditional UNIX permissions say. I have two users john and ben. I ...
20
votes
3answers
8k views

What are common rights for /tmp ? I unintentionnally set it all public recursively

I have abused sudo. I have created a really really short life temporary directory that I wanted to share between some users for a few hours... and I named this directory /some/path/tmp Unfortunately ...
1
vote
0answers
202 views

write only permissions on samba

I am busy setting up a file server in our church office (using samba on a debian machine). I would like to impliment a dropbox-like folder for each user, where othere users may deposit files. ...
2
votes
7answers
3k views

Convert ls -l output format to chmod format

Say I have the following output from ls -l: drwxr-xr-x 2 root root 4096 Apr 7 17:21 foo How can I automatically convert this to the format used by chmod? For example: $ echo drwxr-xr-x | ...
0
votes
2answers
467 views

How do I make PHP securely load files from the server root home folder on CentOS?

So I built what I thought would be this awesome reporting page in PHP that loads data from some CSV text files and creates nice Google charts and tables for our clients. I then thought it would be ...
1
vote
0answers
220 views

Apache created files and its permissions for CentOS 6.x

In short, I have an authenticated HTTP-POST that: posts a jpg image (created as 666 apache:www) into /directory1 (777 ftpuser:www) creates /directory2 (created as 666 apache:www) in a 777 ...
3
votes
2answers
446 views

A service is failing to start on permissions denied--which files is it failing on?

I'm attempting to start a service that our company created. In one particular environment, it's failing to start on three "permission denied" errors. I'm not sure which files it is failing on, so I ...
0
votes
2answers
155 views

Files created by 'make' aren't getting executable permissions by default

I'm trying to build a project, and when I use the command make, I get the following errors: /bin/sh: line 4: .deps/ipset_bitmap_ipmac.Tpo: Permission denied make[2]: *** [ipset_bitmap_ipmac.lo] Error ...
3
votes
1answer
69 views

Copy file permissions from user to group

I have a folder with some files, which each have different permissions. Some are read-only, some are read/write, some are read/execute. How can I copy the permissions from user to group, so that for ...
1
vote
1answer
124 views

Able to delete file without permission [duplicate]

I've been experimenting with file permissions and ownership lately, and I tried this: touch a sudo chown root:root a sudo chmod 000 a I can't read, write, or execute the file, but I can still ...
2
votes
1answer
115 views

View temporary files which exist for milliseconds

I'm trying to debug a program which is not logging the information I need. Fortunately, it does write temporary files which should contain the information. These files are written to a directory like: ...
3
votes
1answer
321 views

File owner must belong to file group?

I have a rather simplistic understanding of file permissions on *nix systems. I understand that there is a file owner and file group, but is there a hard and fast rule on whether the said file owner ...
1
vote
3answers
142 views

Taking away a User's Read/Write/Execute Permission

So I have a user that is able to go in /etc and read files like httpd.conf. I would like to deny that user access to any critical locations such as /etc, /var and so on. What would be the best way ...
1
vote
1answer
112 views

backup / on ntfs filesystem encrypted

I was about to backup my archlinux, following this guide to my FritzBox, (which enforces a NTFS system that I mounted via samba) as I remembered, that NTFS is not capable to keep permissions and other ...
3
votes
2answers
223 views

Running user script with root permissions

I have a script that I've made that needs to have root permissions to enable and disable bluetooth features. I am binding this to a button so it is not feasible to log in as root to run the script. ...
6
votes
1answer
134 views

Setting permissions for specific programs to run as guest

How do I set permissions for an HTTP server (nodejs) to run programs in /usr/local/share/npm/ safely? My use case is to setup my OSX box to run cloud9 and use titanium to build iOS apps for ...
3
votes
2answers
2k views

SELinux: Can I disable copying of certain files?

Please excuse me if this is too basic and you're tempted to throw an RTFM at me. I want to prevent users from copying certain files while granting them read access to the same files. I thought this ...
4
votes
2answers
597 views

How to set permissions in /sys/ permanent?

I'm starting X as a user and need to set my keyboard brightness in /sys/class/leds/asus\:\:kbd_backlight/brightness. The /sys/ directory gets recreated after reboot, so the permissions will reset too. ...