The chown command is used on Unix-like systems to change the owner of a file.

learn more… | top users | synonyms

0
votes
3answers
45 views

Rsync from a local laptop to a VPS with correct ownerships

So I have this workflow which works but is clumsy" RSYNC to ultrapress.co rsync -azP --delete /Users/rocketadmin/Sites/vagrant-local/www/wordpress-default/wp-content/themes ...
0
votes
1answer
30 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 ...
0
votes
2answers
27 views

Find, chown and exclude directories

I would like to change the ownership of all files and directories but exclude some directories: find -user test ! -path "./dir1/*" ! -path "./dir2/*" -exec chown -R root:root {} \; The ownership of ...
2
votes
1answer
239 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
1answer
24 views

bad ownership or modes for chroot directory component

I created the user MY_USER. Set his home dir to /var/www/RESTRICTED_DIR, which is the path he should be restricted to. Then I edited sshd_config and set: Match user MY_USER ChrootDirectory ...
-1
votes
1answer
35 views

Add permissions for a user to folders and files [closed]

I have a user jenkins that creates files and folders in (on ubuntu) : /var/jenkins/workspace/my-project e.g: drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 16:41 ./ drwxr-xr-x 8 jenkins jenkins 4096 ...
1
vote
2answers
39 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
88 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 ...
0
votes
2answers
49 views

force group assignment in chrooted sftp environment

I've got the following setting: There are several users /home/user1, /home/user2, and so on. Additionally there is a user /home/sftp-all. The folder /home/sftp-all/shared is mounted in every other ...
2
votes
1answer
76 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 '{}' \; ...
2
votes
2answers
145 views

ls permission denied even with execute permissions

I chowned recusively /srv/site to www-data:www-data and chmodded it recursively with ug+rwx. I then added myself to group www-data. $ sudo usermod -a -G www-data cyrus $ sudo chgrp -R www-data ...
-1
votes
1answer
130 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
0answers
43 views

How to make the proxy_cache files written by Nginx readable from my app?

I have my nginx configure to use proxy: proxy_cache_path /var/cache/nginx/stuff levels=1:2 keys_zone=s3:10m inactive=3M max_size=10000m; It creates files with permissions -rw------- 1 ...
1
vote
1answer
181 views

Chown in sudoers file : Safe or not?

Is it safe to add this command in sudoers file? mike ALL= NOPASSWD:/bin/chown -R www-data\:www-data /var/www and this is the only command that I want to run $mike@ubuntu: sudo chown -R ...
-4
votes
1answer
56 views

What are the proper chown settings for images? [duplicate]

I am testing a piece of software that is working except for some SVG images that are not showing. When I preview them using Firebug in Firefox, it says "Failed to load the given URL," however, when I ...
0
votes
3answers
412 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 ...
0
votes
1answer
165 views

Why is kjournald extremely active on a mostly quiescent filesystem?

Note: This is a "documenting my process" question that I'll be writing an answer to. Happily, serverfault already helped me solve this, because writing up my situation so others would be able to ...
0
votes
1answer
487 views

vsftpd can't upload to mounted directory

I have read many, many help pages today trying to fix this, and I'm still nowhere closer. vsftpd config file: anonymous_enable=NO local_enable=YES write_enable=YES ...
3
votes
2answers
287 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
1answer
119 views

SSH: FTP created <user> logs into the wrong directory

Ok here's the deal - im new to SSH and have been googling around trying to figure this out. Objective for me has been to create a FTP user that can login only to: /var/www/mydomain.com/ - however what ...
0
votes
2answers
320 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 ...
2
votes
2answers
6k 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 ...
-1
votes
1answer
896 views

How can I make my public directory writable by nginx and user? [closed]

I have my WordPress site newly hosted on a small Linux box with Nginx. Nginx runs as the user www-data just like apache, so I have the entire public_html directory owned by www-data so that WordPress ...
-2
votes
1answer
149 views

Purpose of -r option in chown [closed]

Newbie here. Can someone please explain what it means to do something "recursively", in plain language? I have looked at search results for HOURS without finding anything that simply says what it ...
0
votes
1answer
76 views

Default owner and group for new files/folders [duplicate]

Possible Duplicate: How to set up default group permission in linux folder I'm uploading to /var/www via SFTP and wondered how I can get it so when I upload a file or folder it always has ...
3
votes
3answers
126 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 ...
5
votes
3answers
7k views

chown: changing ownership of `.': Invalid argument

I'm trying to install some new files on our new server while our sysadmin is in holidays: Here is my df # df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb3 273G ...
0
votes
1answer
182 views

How to revert mass ownership change? [duplicate]

Possible Duplicate: revert chmod 777 / -R I accidentally executed the chown someuser * -R while I was at / on my server. I thought maybe by issuing chown root * -R would somehow fix it. But ...
0
votes
1answer
147 views

Ubuntu - Group users create new files/directory always: -rwxrwxr-x / drwxrwxr-x

I got a directory in which my group is the owner. The group has two users, however, when a user create a directory the other user can't move the files. Why is that and how can I change so that the ...
1
vote
0answers
137 views

DRBD heartbeat's resource role trouble in centos 5.4 by mysql files owner change?

I am using 2 machines with centos,mysql,drbd,heartbeat,asterisk. node 1 has hdc :SAMSUNG HD160JJ/P, ATA DISK drive kernel version 1 SMP Tue Aug 21 17:50:26 EDT 2012 kernel release ...
1
vote
1answer
116 views

Directory ownership keeps changing

I run my own git server on my debian server. I use gitosis for access control. I noticed that my /opt/vc directory changes ownership from git:git to myUsername:myDefaultGroup every so often. Almost ...
0
votes
3answers
2k views

How to auto chown/chgrp files after FTP upload?

I have a new VPS setup with Debian + LEMP stack. Wondering how to automatically chown/chgrp new files uploaded via FTP to /srv/www/siteroot to www-data:www-data? I am under the assumption this can ...
0
votes
1answer
658 views

How do I enable a group of users to edit files in Ubuntu var/www?

I'm hoping someone will be able to direct or help me understand how I can enable multiple users to edit the same files/folders in Ubuntu EC2 server (11.10). I currently use Transmit, the Terminal ...
0
votes
1answer
196 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 ...
2
votes
3answers
807 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
523 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
144 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
1answer
180 views

After Changing Permisions, Plesk,Root,Mysql is Down

i have connected on Root with SSH Access. Becouse i transfer the files with root, all files was root own. I need it to be on other user, so i was connected on as my current folder: ...
-4
votes
1answer
139 views

Changing file ownership with chown

I'm currently logged in as root, and I want to switch ownership of files to the xyz user. How can I do that using chown?
1
vote
2answers
1k 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 ...
1
vote
1answer
139 views

FTP SITE CHMOD Error

When trying to edit file/folder permissions via FTP I am getting the error: 505 Security server forbids SITE commands. Contact admin. I am currently using VSFTPD with the config value ...
0
votes
2answers
321 views

Undoing change of ownership to var directory

I accidently ran sudo chown -R user:user *.* (on Ubuntu 11.1) inside /var directory.. Even after running sudo chown -R root:root *.* (and rebooting) I keep getting GUI messages that some operations ...
0
votes
1answer
566 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 ...
1
vote
1answer
215 views

How to chown when a user name contains a dash?

A user and group contains a dash: abc-def. When I try to use chown I get an error: chown abc-def.abc-def * -R chown: invalid user: `abc-def.abc-def' the user is valid and it should work... how can ...
2
votes
2answers
212 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
256 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 ...
2
votes
2answers
710 views

How to give ownership to root without being root ? (needed for Apache)

I've got a PHP script that creates a folder on my server. This folder is supposed to be accessed via Apache, and users can view it online. Now if I create this folder while being root, everything ...
0
votes
1answer
618 views

chown, chmod & bad settings on /home/user/.ssh directory in fresh install of CentOS 6

I just finished installing CentOS 6 last night (netinstall from georgia tech repository), and have been running into some weird SSH issues when I try to SSH from the CentOS box (behind my home ...
2
votes
3answers
506 views

Cross-group file permissions in Linux

I have 2 users: Alice and Bob and 2 groups: Management and Personnel. Alice has primary group Management, and secondary groups Personnel and Alice. Bob has primary group Personnel and secondary group ...
0
votes
1answer
184 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 ...