Tagged Questions
1
vote
4answers
58 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 ...
2
votes
2answers
67 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
60 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
2answers
226 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
3answers
86 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
5answers
139 views
How do I disable copy permissions?
Can we set permissions, on a Linux box OR for a particular directory (Scientific Linux in my case) that, one can read files but cannot copy, move or delete them?
Update: My Scenario is,
We developed ...
2
votes
1answer
192 views
Properly Set Permission to /home/user folder for webserver
I'm currently setting up my own Linux server running CentOs 6. To test the security on my server I wrote a PHP script that acts like a sort of "navigator". I can go one directory up, open the files, ...
1
vote
2answers
42 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------- ...
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
...
4
votes
3answers
270 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 ...
2
votes
2answers
322 views
Moving a root directory to a separate partition
I'd like to create a new partition and move the contents of the /var directory to it for the security reason of having /var/www and other subdirectories "mounted" with nosuid, noexec, and nodev ...
1
vote
1answer
304 views
add members of wheel group, sudo access
On Fedora15, following this wiki, I added a user to wheel group, which is already in the sudoer config file.
but still I get not-a-sudoer error prompt. Should I specifically name every member of a ...
1
vote
0answers
71 views
Running Tomcat MySQL and Apache under a group
I am trying to set up a web server at home using Ubuntu, but prefer my bash scripts to be platform agnostic hence why I am asking here. I also dislike apt-get everything. I am trying to create a ...
0
votes
0answers
268 views
Symbolic link to a socket
From a security point of view, is it safe to create a symbolic link to a socket file? The following bits of context refer to the deployment of a web application on a shared hosting service.
$ ls -al ...
1
vote
2answers
189 views
What does “0” mean in the owner and group permission lists of a file/folder?
The question is in the title. What does the number 0 signify?
3
votes
1answer
347 views
How to configure permissions to allow apache to securely have access to a file in a shared environment?
This is a follow up question from my previous, but I felt it might be more Linux based.
http://serverfault.com/questions/414207/how-to-set-linux-permissions-to-allow-apache-to-have-access-to-a-file
...
3
votes
2answers
171 views
Can AIDE scan a directory inside a directory the user doesn't have read permissions for?
I would like to use AIDE to help me verify the integrity of my home directory on a shared Linux system. I am not an administrator of this system. I have built and installed AIDE in my home directory ...
3
votes
2answers
232 views
How to set secure permissions for multiple users and multiple websites?
On a Gentoo 3.2.12 server with apache2+php, there are several websites running:
/www
/website1
/website2
...etc
The apache user should have read-only access to all the websites. There ...
1
vote
2answers
693 views
Allow non-root process to access all home directories without compromising security?
Any ideas how to allow one non-root process to access (read&write) all home directories without compromising security? Normal users should not have access to each other's home directories.
All ...
3
votes
3answers
228 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 ...
2
votes
2answers
320 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.
3
votes
1answer
131 views
mounting volume protected against user access
I need to mount a directory in a way that prevents user accessing it. However I need to have access to all attributes (including permission) from root. Is following method safe or is there a way ...
3
votes
2answers
639 views
FIle permission execute only
How can I set file to be executable only to other users but not readable/writable, the reason for this I'm executing something with my username but I don't want to give out the password. I tried :
...
3
votes
2answers
573 views
What directories/file permissions should i ensure are set?
I have a similar question about default software configuration. For this question i would like to ask
What directories/file permissions should i ensure are set?
Aprrently Is it normal to get ...
3
votes
3answers
370 views
Unix users, groups, and permissions
I don't understand unix users, groups, permissions, etc. For example, things managed by the chmod, chgrp, usermod, groupadd, etc. commands. How do all these things work?
4
votes
1answer
214 views
What's the best way to configure shared filesystem directories? (beyond standard unix perms)
I have multiple users on my system. I'd like to have shared directories like music, video. pictures etc. The problems is that I want users to be able to write any new files to any directory, but not ...
7
votes
3answers
2k views
How to make a folder private?
I'm using Ubuntu with several users and I want to make folders viewable just for a specific user. Any idea how to do it?
