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.
2
votes
3answers
72 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
118 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, ...
3
votes
3answers
106 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
106 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?
5
votes
1answer
117 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
65 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
57 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
64 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
38 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 ...
3
votes
3answers
149 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
...
19
votes
2answers
634 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
75 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
606 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
89 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
491 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
2answers
203 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
144 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
126 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
93 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
95 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
43 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
48 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
120 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 ...
3
votes
1answer
189 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 ...
3
votes
1answer
120 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
0answers
78 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 ...
2
votes
2answers
75 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?
3
votes
1answer
252 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
127 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
116 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
103 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
129 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
897 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
174 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
243 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
271 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 ...
5
votes
1answer
238 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
354 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
120 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 ...
2
votes
2answers
158 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
267 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 ...
4
votes
2answers
392 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 ...
2
votes
0answers
165 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
87 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 ...
30
votes
3answers
949 views
How does vim steal root owned files?
Witness the following:
sh-3.2$ mkdir testcase
sh-3.2$ cd testcase
sh-3.2$ sudo touch temp
sh-3.2$ ls -al
total 0
drwxr-xr-x 3 glen staff 102 19 Dec 12:38 .
drwxr-xr-x 12 glen staff 408 19 Dec ...
0
votes
1answer
203 views
Remove noexec from Home folder
I trying to deploy an rails application into /home/app/myapp, but when application tries to connect to Mysql, I get this error:
** [out :: 192.168.110.50] ...
1
vote
1answer
140 views
Can I export an NFS share with faked root privileges
I'm writing software for an embedded linux system and I'm using an NFS share as root directory. The root filesystem resides in /srv/nfs/rootfs, and it is exported using the following /etc/exports:
...
1
vote
2answers
725 views
How to allow www-data to create a folder without giving read access to the parent folder
I'm not exactly sure the right question to ask, so I'll try to explain what I'm trying to do.
I have an internal web application (in PHP) that I want to be able to create a folder. The trouble is ...
3
votes
1answer
64 views
How to display the permissions of a new file in the status line of the Vim editor?
With the following piece of code I get the permissions for an existing file:
augroup Get_file_perm
autocmd!
autocmd BufWinEnter,FileChangedShell * let w:file_perm=getfperm(expand('%:p'))
augroup ...
0
votes
4answers
286 views
umask is not working for directories
I have an odd problem with umask.
My current setting is:
$ umask
0022
$ umask -S
u=rwx,g=rx,o=rx
This only works for files though and not directories:
$ touch abc
$ ll abc
0 -rw-rw-rw- 1 user1 ...