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

chmod - change permissions on a file

I have a Python virtualenv, and the Python executable is located in the /bin directory. In this virtualenv I'll have to execute some unsafe code, that can damage my system. I tried to chmod a-r on the ...
2
votes
2answers
4k views

Why do I immediately get a “Permission Denied” error on login, even with root?

I have a weird problem on my notebook. When I want to login to the system (for example on tty1), immediately after I put in my username I get a Permission Denied error, even with root! I booted a ...
0
votes
1answer
929 views

Unable to login to linux machine

I can't login to my linux machine. It's giving me the following error: /usr/libexec/gconf-sanity-check-2 exited with status 256 I removed all the files in the /tmp directory after this issue ...
3
votes
3answers
306 views

Setting execution right to whole directory - is it good or bad idea?

I have a zip file containing lot of files and directories for a certain application which should be running on Linux. Some files needs to be set as executable, but the zip file format afaik does not ...
1
vote
1answer
229 views

How to search folder with only x set (execution) permission

I have read that if folder has only x set permission to execute it actually means that you are permitted to search this directory. So how to search it?
5
votes
5answers
246 views

Is there a way to see the permissions of all the intermediate directories of a path..?

I have a file path.. Is there any single command to see the file/directory permissions of all the intermediate directories in the path..?
5
votes
2answers
4k views

Permanently changing the ownership (or group) of LVM volume

How can I permanently change the ownership (or at least the group) of a LVM volume? I figured that I have to use udev, but I don't know how the rule should look like? Let's say I want to change the ...
3
votes
1answer
1k views

“Permission denied” when starting binary despite “rwx” priviledge

I am trying to run the statistics software Stata 11 on Ubuntu 11.10. as a regular user and I get the following error message: bash: xstata: Permission denied The user priviledges seem ok to me as a ...
2
votes
2answers
4k views

How do I change permissions on a directory without losing setgid?

When I change permissions for other or user on a setgid directory, the directory loses its setgid. How do I make the change without loosing it? sudo is not an option. Is it possible? Here is some ...
1
vote
4answers
945 views

Call 'ps' as a normal user in Linux

A brief introduction to my question: the command ps will print the information of system processes. But when I login as root and change the permission x of ps chmod -x /bin/ps chmod u+x /bin/ps ls ...
1
vote
1answer
615 views

Permissions for making some some (but not all) files visible directly under a directory

On wikipedia I read the following: The read permission, which grants the ability to read a file. When set for a directory, this permission grants the ability to read the names of files in the ...
2
votes
1answer
9k views

Changing user and group ID system wide (including file system attributes)?

(this question possibly related to Linux: simulating/masking user ownership upon mount of 'external' partitions? - Stack Overflow) I typically use Ubuntu (currently 11.04) as my desktop OS; let's say ...
0
votes
2answers
96 views

How to write in directory out of home?

I have my Apache server running in the /srv/http/ directory. I changed the group of it to httpadmin and then added my user to that group. Then, I changed the permissions of that directory to ...
3
votes
1answer
671 views

Copy just permissions and ownership from one tar file to another

I have two tar files which are basically backups of my /data folder on android. The problem is the permissions and ownership of the files inside latest back-up is messed up. However the permissions in ...
2
votes
1answer
4k views

Changing my default primary GID for every login session

I read the following about newgrp: The newgrp command is used to change the current group ID during a login session. This made me think, how can I change my default's primary group ...
1
vote
1answer
556 views

Sticky bit vs setgid for facilitating shared write access

Say two people with different primary unix GIDs share and need to frequently edit the same file. The users are not members of each others' primary unix GIDs, but they are both members of a common ...
5
votes
4answers
2k views

mount ramfs as user

My fstab entry: none /home/jreinhart/ramdisk ramfs defaults,user 0 0 The directory before mounting: drwxrwxr-x 2 jreinhart jreinhart 4096 Oct 17 11:31 ramdisk The directory after ...
5
votes
1answer
807 views

Can't get directory listing of folder I have permissions to

I was having some permission problems and used the following command on directory Media: chmod -R ugo+r Media It didn't help so then I did: chmod -R 775 Media Now I get this error when I try to ...
5
votes
3answers
3k views

Write access without read access

Is it possible for a user to have a write access to a file and not be able to read it? How is it possible? I tried the following commands: debianbox@debian:~/posix/io$ touch filetest ...
6
votes
1answer
7k views

what is 'nogroup' group's purpose

When I list al groups I see one called 'nogroup'. What is this for? Is it supposed to be least privileged one or something? I'm using ubuntu 11.04.
2
votes
2answers
1k views

Why can't I change permission on a symlink on Mac?

Simple question and there is perhaps a simple answer. I have several directories in my home folder that I would like to make available as a directory on my webserver. So, what I did was to create a ...
1
vote
1answer
620 views

What are appropriate execution permissions for ~/bin?

I am putting some scripts in ~/bin and am wondering what appropriate file permissions are. To extend my question somewhat, what permissions make sense for */bin folders all over my system, and why?
6
votes
1answer
2k views

Find a user's writable files and directories

How can I determine all files and folders that given user can write to? The user is nobody. Some script in bash or python, perhaps? I'm using Ubuntu 11.04
2
votes
2answers
708 views

su user fails with “grep: /var/cpanel/users/user: Permission denied”

I just did something pretty simple. Given a user user, I modified his user id, primary group's id, and added him to a new group in order to make my server use the same uid and gid as another server ...
2
votes
1answer
123 views

Permission Advice for Webserver

The Linux box I'm managing is used mainly as a web server. The owner of a site wants to give a new user access to the site so that they can do some work on it. I've created the user account (vinod) ...
2
votes
2answers
811 views

Mount permissions always blocked

How do I authorise my non-root user to manually mount/unmount ALL media on my desktop. I always get denied permission. Media refers to all mountable USB devices and other partitions on my HDD as ...
0
votes
4answers
10k views

permission error with php/nginx and not using www-data

-edit- whats even more curious is if i chmod 777 /var/run/php-fastcgi/php-fastcgi.socket this works... if its not www-data, php-www (nor root) then what user is trying to access the socket :| -edit2- ...
1
vote
1answer
334 views

Sharing files with NFS and Unix Permissions

I'm kind of new to using NFS in the context of Linux permissions, so I'm a little lost on how I can make this work. Here's my setup: alpha writes files as root to the mounted NFS share. beta ...
2
votes
2answers
1k views

A command to check file access permission for another user

I need to know how to check the effective file access permissions for a given user, but it takes long to do this manually starting from / up to the target file or directory, checking group, ...etc.
2
votes
1answer
456 views

Problem when installing “ia32-libs”

I'm using x64 Ubuntu. A few months ago I accidentally messed up the groups/owners of all files on /, but managed to fix it using a VirtualBox install of Ubuntu. Now I'm running into a problem that I ...
0
votes
1answer
156 views

+x permission for files in directory

I'm an Ubuntu user and I'd like to change default permissions for downloaded files. Currentely all downloaded files are automatically saved with "-rw-r--r--" permissions (umask 0022). I'd like to add ...
3
votes
2answers
1k views

Terminate Root Processes

Is there a way to terminate a root process without entering an administrator's password? You might be wondering why I'd want to do this 'cause it sounds fishy. Well I just need to end a process ...
111
votes
3answers
44k views

Why do directories need the executable (X) permission to be opened?

In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory?
5
votes
1answer
3k views

How to give permission of a folder to a specific user in LINUX/UNIX?

How can I give permission to a specific user for a particular folder? I don't want to give permission to the entire group but only to a particular user in the group. I don't have root permissions. ...
2
votes
1answer
257 views

Grant permissions using rysnc

I want to use rsync (as a user) from "me" on a local computer to "another" user on a distant computer. However, I also want "another" user (on the distant computer) to own the files and to be able to ...
1
vote
1answer
1k views

Allow www-data to execute a a script

I am trying to execute a script that will read a file written by PHP. The problem is that the script opens and some other files (C-ISAM file based database) and i have no clue what permisions to give ...
9
votes
5answers
30k views

“Symbolic link not allowed or link target not accessible” / Apache on CentOS 6

I've got a brand new CentOS 6 installation, which has a symlink in the document root to my development files: [root@localhost html]# ls -l total 4 -rwxrwxrwx. 1 root root 0 Sep 18 20:16 index.html ...
2
votes
4answers
2k views

SAMBA Share - Keep user from deleting a file

I'm creating a hidden "Access Log" .txt file of employees accessing a program I've created and need to know how to make it so this file cannot be deleted. Reason being, this program helps to automate ...
25
votes
3answers
9k views

Clone ownership and permissions from another file?

Is there a command or flag to clone the user/group ownership and permissions on a file from another file? To make the perms and ownership exactly "like" that of another file?
0
votes
2answers
567 views

Files uploaded as root to the web server can't be overwritten by web application

Here is my problem. I am developing a web application in PHP/MySQL and I am having some problems setting up the accounts I need to use. Development workstation: WinXP SP3, Eclipse PDT Development ...
3
votes
1answer
1k views

Prevent a subdirectory from getting deleted / enforce a directory structure

imagine the following folder structure ../documents ../documents/templates I have two user groups: editors managers Users of both groups should be able to create new files modify any ...
17
votes
3answers
9k views

Is there any way to prevent deletion of certain files from user owned directory?

Let's say user has Directory1 and it contains File1 File2 CantBeDeletedFile How to make so the user would never be allowed to delete the CantBeDeletedFile? If I change the ownership of Directory1 and ...
2
votes
1answer
86 views

Get rights for specific user on file/dir

I'm searching for a command that essentially would do the following: check which rights a user has on a file/dir (including ACL) and return it. E.g. say you have the following directory: -rw-r--r-- ...
4
votes
1answer
847 views

Change permissions for LEDs (e.g. ThinkLight) with udev

/edit/ Getting the question more generic: How can I change the permissions to alter the state of a LED/light using udev? \edit\ I've got a Thinkpad and would like to use the ThinkLight (the ...
7
votes
2answers
2k views

recursively change file permission but not directories?

I was doing a mass recursive change of permissions of some files that I had migrated to a unix system. I changed them to ug+rw, but then I found that I could not traverse subdirectories. I looked at ...
4
votes
2answers
3k views

Permission denied (even as root) on a mounted ISO image with Furius ISO Mount

I mounted a ISO image with Furius ISO Mount. I cd to the mounted directory and tried to copy a file with sudo cp file /dir but cp writes error message cp: cannot stat `file': Permission denied ...
6
votes
1answer
4k views

Why can't sudo redirect stdout to /etc/file, but sudo 'nano' or 'cp' can?

Why does redirection, using sudo give me an error for the following commands? $ sudo printf "foo" >/etc/file bash: /etc/file: Permission denied $ sudo printf "foo" ~/file; cat ~file ...
2
votes
1answer
132 views

Suddenly changing users [closed]

Has anyone ever encountered a scenario where you are logged into a system going about your standard business, cat, ls, tail, grep, vim, find etc. and suddenly permissions to regular things stop ...
2
votes
1answer
4k views

How can I create a unionfs-fuse mount that is readable by all?

I'd previously used aufs2 in aufs-tools with some luck, but apparently this package has been "superseded" (this is strange term to use for a package which seems to have been removed only because it no ...
3
votes
1answer
2k views

Determine if the current user has write permission in a directory

I know you can determine the owner of directory by doing: ls -ld ~/foo | awk '{ print $3 }' You could then compare it to the current user by doing this: if [[ $(ls -ld ~/foo | awk '{ print $3 }') ...