0
votes
1answer
15 views

Mounted Gluster volume keeps reverting to “root” permissions

Ive got GlusterFS running on an AWS server and its mounted to another AWS server. The folder that is mounted though keeps reverting to "root" ownership, when this happens uploads fail from the web ...
3
votes
3answers
207 views

Maintain setgid bit (after bower install or gulp build)

We run web servers where we have the following situation: The www-data user runs the web server and must have read+write access to the files The deploy user deploys all the code The bob and alice ...
0
votes
1answer
86 views

Linux permissions in /var/www: What settings can I use for good security practice and still maintain accessibility?

I'm primarily trying to set permissions inside of /var/www . We are using a project format which has the following structure in common for each project: /var /www /runtime /shared /project.com ...
2
votes
1answer
250 views

What could cause *every* command in RHEL to be executed by root?

Recently I was asked to look at a system for a "friend" that left me completely stumped. Their original problem stated to me: They have a RHEL 5.10, gnome desktop fairly typical install They are ...
1
vote
2answers
46 views

Using chown: Any substantial difference between assigning ownership of the entire directory vs just the files in it? [closed]

An example: Say Apache needs to have ownership of all the files in /var/www/html to serve the pages of a website. Is there any danger in making Apache the owner of this directory (and files and ...
1
vote
2answers
167 views

chown / owner group permission confusion on lamp stack

I've got a few problems with permission/owner group setup on my VPS. It's running LAMP (Ubuntu 12.10, apache2, mysql 5.5, PHP 5.5.8). I've setup vsftpd as a forum platform I'm running needs ftp ...
2
votes
1answer
93 views

How to safely change owner:group recursively?

I'm copying one users home directory to be the home directory of user #2, and therefore need to chown the contents to the new user. Running: find /home/user2 -user user1 -exec chown user2 '{}' \; ...
-1
votes
1answer
225 views

FTP user not able to see or access anything?

I am trying to make an FTP account for a user, and it is not working. The user wants to be able to ftp to his sites home directory, and change stuff. I created a user(MEvans) and set the home ...
0
votes
3answers
504 views

Permission denied with chmod 750 even if a user is just added to a group

I have a weird bug, I have: a user A a group B another group C I create a folder and then chown it A:B and chmod it 750. After usermod -aG A C, C should have the right to go to the newly created ...
3
votes
2answers
316 views

Recovering from a system-wide chown?

I have a Linux web server with multiple sites being hosted with CPanel. I was having trouble accessing a site, so I ran this command: chown -R root:root /home/evalreal/. While waiting for the command ...
0
votes
2answers
376 views

CentOs, Folder Permissions

I would like to give an FTP user permission to write in a folder but should not be able to alter other files in the folder or sub folder in the main folder. I have a root account, we are using the ...
3
votes
2answers
7k views

Using chown to change the group owner of a directory is not permitted…Why?

I am trying to execute chown on a directory that has the following permissions and owners: drwxrwxr-x 2 justin devs 4096 Jan 1 20:42 test I am trying to simply execute the following as the justin ...
3
votes
3answers
129 views

Basic clarification about Limited FTP/sFTP users

I would like to get some clarification about the correct way to create limited users to access to my VPS user as WEBSERVER with Nginix. I'm used to NOT install FTP and access via SFTP only. It is ok ...
0
votes
1answer
218 views

Automatically change UID of file

Due to development policies, all my relevant server files have g+w policies. This is working great, but, for added accountability, I'd like the files to change owner UID upon being edited by other ...
3
votes
3answers
964 views

Fastest way to chown a whole device (xfs)

I need to chown 1.5 million files on a drive. I'm currently doing: sudo chown -R www-data:www-data /root-of-device but it takes an awfully long time to run. I was wondering if there was some sort ...
5
votes
4answers
567 views

Recovering from bad chown command

I was going to change the ownership of a directory to apache:apache, but I ended up running: chown -R apache:apache / Bad! Very bad! I knew what was going on when it started saying: chown: ...
1
vote
1answer
151 views

Permissions nightmare - tried all I know

Working on a new client's dev site, which is a wordpress install on a Plesk box. I have SSH root access, and FTP access through a separate account. What I've done so far Initially I couldn't make ...
1
vote
2answers
2k views

How to make a folder accessible to users of a certain group on linux

I tried to make a the /opt/apps folder accessible to all users of the 'www' group. The main user of the group would be the 'jboss' user, so I runned: sudo chown -R jboss:www /opt/apps Both the ...
0
votes
1answer
653 views

DocumentRoot is /srv/www/htdocs; how to enable ~/public_html?

I have installed a LAMP stack on my OpenSUSE 11.4 server. Currently, the DocumentRoot is set to /srv/www/htdocs but I want my users to be able to use ~/public_html just as they would in a shared ...
2
votes
2answers
226 views

Make files editable for guests without using chmod

Sorry if this is the wrong place to post this, or if it has been posted before. I couldn't find anything though. If I log on to a linux server without supplying a username or password (from windows ...
2
votes
2answers
276 views

Determing the Execution Environment of Apache

I am having this error: [Mon Dec 05 10:22:23 2011] [warn] mod_rewrite: Running external rewrite maps without defining a RewriteLock is DANGEROUS! [Mon Dec 05 10:22:23 2011] [error] (13)Permission ...
0
votes
1answer
188 views

CentOS Directory Owner

I have a dedicated CentOS 5.6 Server for our webhost. I've setup FTP account in PLESK to access our website. Once I migrated joomla over I can not change/modify or upload new files via: FTP. I've ...
3
votes
5answers
7k views

is it safe to chmod 775/664 with owner www-data:www-data?

To make working with my webserver easiest I am proposing doing something like the following: sudo chown www-data:www-data /var/www -R cd /var/www sudo find . -type f -exec chmod 664 {} \; sudo find . ...
0
votes
1answer
58 views

Cent OS running Plesk 10

Like an idiot I was chown some files and did the command chown -R root:root / which as you can imagine has caused me some problems, i stopped it as soon as i could but i can no onger access plesk ...
2
votes
1answer
252 views

Setup Directory Permissions For Multiple Users To Read/Write

I am trying to figure out how to setup the permissions on a directory (/apps) so both the root user, and another user justin can read, and write into the directory. The user justin is part of the ...
2
votes
2answers
3k views

Limit sudo to only one directory and it's subdirectories by sudoers file

So I would like to limit Apache to only change permissions in a certain folder and all of it's sub-directories, so this is what I have in my sudoers file apache ALL= (ALL) NOPASSWD: /bin/chmod -R ...
1
vote
1answer
70 views

Change group owner of file, but not the owner

I want to make sure all directories and sub directories are of the group hgdata, but I do not want to change owner's (they are many different owners). The command chown -R will do the recursive ...
0
votes
2answers
43 views

User in group with r/w access does not actually get the read/write anything

I added my user to the www-data group. I chmodded a certain directory to 774 (-R, recursively) so only the owner and the group can change something. Yet my user can't even access it. What am I ...
2
votes
1answer
430 views

chown to a user I can sudo to

One of our users who has sudo privileges to multiple non-root users (role accounts for use with particular projects) would like to be able to change ownership of files among those users: e.g., if ...
3
votes
1answer
2k views

Only allow a user to CHMOD and CHOWN in their home directory or a specified directory

I have a Windows user on my network who has Samba access to our linux development server. Occasionally permissions or ownership will become confused for reasons unknown and he will no longer be able ...
15
votes
2answers
653 views

Using dot (.) as delimiter to specify group in chown

I've always done: chown nimmylebby:admins file I see that this also works: chown nimmylebby.admins file Might seem like a silly question but I'm genuinely curious on how the latter works. It ...
1
vote
3answers
205 views

What is the purpose of executable file access rights in Linux?

I never understood this, because if you have access to read a file, doesn't that mean you would be able to copy it somewhere else, thus allowing you to execute it anyway? What am I missing?
0
votes
3answers
148 views

What happens when a chown occurs on a file being written to?

Background: I have a cron job which chown's the directories of new users. More often than not, these users are already uploading files to the server before the job occurs. So will files successfully ...
3
votes
2answers
93 views

How can I reset the permissions of /bin /boot /etc and /dev to orignal owner, Ubuntu?

I accidentally changed the ownership of the /bin, /boot, /etc and /dev recursively to nobody:nogroup using chown when I misplaced a forward slash! How can I resort the original file ownerships? I've ...
2
votes
2answers
775 views

Apache security for multi-user development web server

I've been searching and reading through documents all morning and understand that I need to use some combination of chown and probably 'jailing' to securely give programmers access to directories on ...
22
votes
8answers
4k views

accidently ran “chown www-data:www-data / -R” as root

i just ran this a few seconds ago, i managed to do ctrl-c as soon as i realized what i started doing. so far in the only dir its started going through is /bin im afraid to do anything else, so far ...
8
votes
7answers
21k views

Chown operation not permitted for root

I try to chown the owner of a file to root, but I can't. I'm doing this as root. I get the following message: chown: changing ownership of `ps': Operation not permitted