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
2k views

Why does “chmod 1777” and “chmod 3777” both set the sticky bit?

To set the sticky bit on a directory, why do the commands chmod 1777 and chmod 3777 both work?
2
votes
0answers
268 views

Best location and permissions for socket files [duplicate]

I will have a couple of WSGI applications. They will communicate with nginx using sockets. For that purpose I've created the directory /run/wsgi in which I will place all the socket files that are ...
1
vote
0answers
153 views

Unable to transfer files via SFTP when using a normal user account

I'm unable to transfer files via WINSCP>sftp to a GNU/Linux server. When transferring a file using root account, there's no problem. However, when I transfer using another account, the file being ...
2
votes
3answers
114 views

Circumvent permissions of filesystem on an external drive

Suppose that I have only non-root access on a desktop Linux machine. I want to work with an external, pluggable storage device (hdd, flash drive or memory card) with an ext{2,3,4} file system. Since ...
2
votes
1answer
211 views

How are default permissions determined (on OS X)?

My (limited) understanding of basic Unix is that any files that are created will be created based on the permissions of the creating user. In particular, the group assigned will be the creating user's ...
1
vote
2answers
55 views

What permissions should I set if I'm the only user?

I'm the only user on a OS X machine and am wondering what the best practice is for setting permissions on my sensitive files. Specifically, are there reasons to prefer one of the following -rw------- ...
2
votes
3answers
138 views

How to cp or rm files based on ownership / permission

After a problem with spam, I stopped postfix postfix stop and checked through the mailq manually to find hundreds of thousands of unsent spam. The spam was sent from one of the sites hosted ...
0
votes
1answer
212 views

Execute John the Ripper on multiple processors using mpirun

I am a linux noob trying to optimize John the Ripper for a security class. I am trying to use both processors to run John by using the mpirun program as suggested in this tutorial. I installed mpirun, ...
4
votes
3answers
380 views

Is it possible to set per-user permissions in Linux?

Is this possible? It seems that I have more options to set permissions in Windows than Linux. Let's say I want to give a user full access to a top-level directory but limit their access to certain ...
4
votes
2answers
114 views

Is there a Linux file permission that allows the app to read a file but not a user?

I need /var/www/config/config.json to be read by my app but not by users calling myapp.com/config/config.json. How would I do that?
6
votes
1answer
378 views

rsync: skip files for which I don't have permissions

I'm using rsync -rlptD to copy a directory from another user. There are a few files (I have no way of knowing these in advance) which I don't have permission to copy. Is there a way have rsync ignore ...
2
votes
1answer
332 views

why cannot rename subdir when parent dir owner is not the same user [duplicate]

Possible Duplicate: Can’t rename a directory that I own I am trying to understand why when a dir X is owned by user A cannot rename it when parent dir of X is owned by user B. Can anyone ...
1
vote
3answers
180 views

Finding lists of files with specific permissions

I looked into the find command and came up with find . -maxdepth 1 -perm 521 > test.txt to output the permissions to a text file, but is it possible to do it just using, for example, simple ...
1
vote
2answers
240 views

Is there a generic approach to automatically make some sysfs controls ch{own,mod} user-accessible?

My current primary question motivator: $ ls -l /sys/devices/platform/samsung total 0 -rw-r--r-- 1 root root 4096 27. jaan 14:17 battery_life_extender drwxr-xr-x 3 root root 0 19. jaan 18:40 leds ...
1
vote
1answer
74 views

Securely running LAMP under a specific user

I'm setting up a sandbox type of server that will be used by a couple users as a development environment and knowledge base. The server will have a web frontend so I've installed Apache, MySQL and ...
5
votes
2answers
283 views

Can a user brute-force a directory listing without having read permission on the directory?

I noticed that when a user is working in a directory to which he does not have read permission that using cd produces different error messages, depending on whether or not a subdirectory exists: $ ls ...
20
votes
2answers
3k views

How do I remove a file with no permissions?

A hacker has dropped a file in my tmp dir that is causing issues. Nothing malicious except creating GB's of error_log entries because their script is failing. However, the file they are using to ...
2
votes
1answer
134 views

How can I copy a git repo from a Makefile?

I'm writing a Makefile to sync my local dotfiles with GitHub. I recently decided to also add my .vim folder to the repo. But when trying to copy the .vim folder I keep getting a Permission denied ...
3
votes
3answers
3k views

Recovering from “chmod -R 777 /” in Ubuntu [duplicate]

Possible Duplicate: Wrongly set chmod / 777. Problems? I am using Ubuntu for development purposes. As I work on the database side, there are a lot of things which require file permissions ...
1
vote
1answer
149 views

Cannot execute files on another partition

On my system I have three partitions: one is shared between W7 and Linux Mint (NTFS), and the other two are OS-specific. In my home directory I have created a symbolic link to another directory on ...
2
votes
2answers
2k views

How can I make a shared directory accessible by SFTP?

I have set up an sftp account in /home/sam, created a group sftp, and added the user sam in it. i gave chown sam:sftp /home/sam for the user to perform operations in that directory. Now I have ...
2
votes
3answers
916 views

su: Permission denied despite correct password

In my new Gentoo installation, su doesn't work as my non-root user: After entering the correct password I get the message "su: Permission denied". What could be causing this? I have already tried ...
1
vote
1answer
247 views

Giving non-admin users permissions ( to update, to access new wifi, but block DVD writing) in Ubuntu 12.04

Is there a way I can give a non sudoer the permissions necessary for them to update the system through Update Manager? I don't want the user to be able to apt-get install whatever like however, just ...
0
votes
1answer
270 views

The relationship between execute permission on a directory and its inode structure

My question deals with the relationship between the read and execute bits on a directory. I'm going to give my assumptions, first, all according to my current knowledge, then ask my question in bold ...
1
vote
1answer
189 views

What does it mean if a directory has only x (executable) permission for certain user/group?

I stumbled across the directory /etc/ssl/private on Ubuntu (12.04), it has following permission: drwx--x--- 2 root ssl-cert 4096 7月 8 2012 private/ I wonder what does this mean for group ...
3
votes
1answer
136 views

Change who is able to chmod

Is there a way to change who can chmod (change the permissions of) a particular file? It is only the owner of the file (without sudo-ing it), if my experimentation has been correct? But what I want ...
0
votes
0answers
47 views

Root user can't do everything? [duplicate]

Possible Duplicate: Redirecting stdout to a file you don’t have write permission on I'm quite new to Linux and I have a permissions questions. I'm using Linux Mint. If I go to /opt and do ...
2
votes
1answer
72 views

Standard way to expose device file to userland applications running on an unprivileged user account?

I just finished the first version of a Linux kernel module I've written in C. The module creates a device file (/dev/wn0) that controls a USB device with three LED lights. For example, running as ...
1
vote
2answers
368 views

“~/” receives a permission denied error in Csh

Running in Csh when using Tilde Notation performing a ~/ at the command line, I receive a "Permission denied." error. This directory is owned by the user performing the command and has the ...
4
votes
1answer
428 views

CentOS file owner changed on editing

I have the following problem. On Unix server (CentOS 5.5) a number of users belonging to the same group have access to the same files (via ssh). After one particular user (let's say usera A) has ...
4
votes
1answer
329 views

Clear setuid permission using numeric mode

On an Ubuntu Linux I have a directory with the setuid bit set (drwsr-xr-x) which I want to unset. Neither chmod 755 nor chmod 0755 nor chmod 00755 (I though maybe the first 0 is interpreted as just ...
2
votes
1answer
116 views

Permission rights on automatic directories inside /media

I got a permission denied when I am trying to cd inside a directory. I could chown it for my user, however I'm wondering if the problem is elsewhere: The directory in question is an automatic ...
3
votes
2answers
121 views

Make a programme executable by common users

I've installed hddtemp on my Arch Linux, but it needs to be run with root permissions. I want to execute it as a normal user without using sudo. How can I do this?
5
votes
1answer
1k views

Force the owner and group for the contents of a tar file?

I would like to create a tar file with contents belonging to an owner:group pair who do not exist on the system from which the file is being made. Here's the direction I've tried: tar ca ...
1
vote
0answers
155 views

vsftpd on Ubuntu not obeying filesystem permissions

I'm trying to set an FTP upload to a web root on Ubuntu 12.04 using vsftp. The user has a local account, username_ftp. I changed their home to their web root in /etc/passwd. ...
1
vote
1answer
228 views

Group permissions ineffective, permission still denied

I've got a problem with UNIX permissions : I'm working under Debian Squeeze, and one of my scripts, run by www-data, needs to move a file, 23550.zip, placed in the home directory of another user, ...
1
vote
1answer
178 views

security concern around adding cron user to web application group

I have a permissions issue on my CentOS 5.6 machine with regards to the cron user. On my test/staging environment my cron user (picco-cron) is a member of one group - picco-cron, as below: ...
1
vote
2answers
383 views

How to handle user permission issue?

We have created an asset management application web app using php. This app allows users to browse, upload, rename, replace assets (binary files like images and 3d models) We developed in windows ...
1
vote
1answer
3k views

“Error: permission denied” error from Transmission Client

When I try downloading files with Transmission I get: I've tried searching for this problem, and everyone always says to set permissions correctly, but I've done that: This is running on a ...
2
votes
1answer
1k views

how to remove quarantine from file permissions in os x

I downloaded a .pem file and my Mac OS X (10.8.2) added an @ sign at the end of the file permissions. This is causing file permission issues. I can't seem to remove the quarantine flag. I even tried ...
4
votes
2answers
641 views

Restrict file access to append only

I have a directory with log files and I'm putting logs from script launched by users into them. Logging with syslog doesn't seem possible in this case. (non-daemon rsync) I want the users to have ...
4
votes
3answers
720 views

Is it impossible to run as `root` if the machine isn't rooted?

By default, the user of the device does not have access to certain root objects (e.g. the /data directory). Even though these objects are off-limits, however, it would seem to me that these objects ...
6
votes
1answer
487 views

`kill -s TERM` works, `kill -s ABRT` gets “Operation not permitted”

There is a process that I own whose documentation claims I can send SIGABRT to in order to get some debugging information. However, when I try to send SIGABRT, I get back "Operation not permitted". I ...
2
votes
1answer
2k views

how to allow different users of same group access/edit files/directories created a user of same group

here is my example, here I am logged in as root created a group using groupadd command called as devel. created two users dev1 and dev2 using useradd command. useradd -g devel dev1 useradd -g devel ...
3
votes
2answers
242 views

Why do I have to use sh to execute scripts from CD/DVD media?

I hit again on this strange behaviour of the system. I'm running Debian 6.0.6 and had quite some troubles executing a script directly from CD/DVD. Finally I had to use: sh /media/cdrom/command to ...
3
votes
2answers
420 views

pmount not working on Debian wheezy

"Not working" might be slightly inaccurate, since it still seems to mount and umount things properly, but it's inaccessible to users other than the root user, which defeats the purpose entirely. ...
2
votes
2answers
458 views

Changing permissions for files in linux

I have started using Linux recently for development of a project and currently facing some issues with file permissions in the directories. I have some libraries .so files that I need to access from ...
9
votes
2answers
2k views

What does the 'd' mean in ls -al results and what is that slot called?

In Linux, what does the d mean in the first position of drwxr-xr-x? And what are all of the possible letters that could be there, and what do they mean? I'm trying to learn more about the Linux file ...
3
votes
0answers
299 views

How do I let an SDL app (not running as root) use the console

I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
1
vote
2answers
136 views

Problem accessing /home from different partition

I'm currently using Chakra on /sda1 and Fuduntu on /sda2 (a partition I keep for trying out and playing around with distros), and both systems use /sda3 for each different /home partition (I'll call ...