The chown command shell of a Unix-like operating system (such as GNU / Linux) is used to change the owner of a particular file.

learn more… | top users | synonyms

0
votes
0answers
105 views

chown - operation not permitted as root

I'm using ISPConfig + Apache2 on a Debian server. I created a user which is going to be used for a certain client folder in /var/www/clients. Whenever I run the command chown -R user123 client2 as ...
0
votes
0answers
26 views

OS X MySQL '/tmp/mysql.sock' error after sudo chown -R myname usr

On OS X 10.6, when installing NGINX I inadvertently (hastily, stupidly) ran sudo chown -R myname usr, and think I repaired it with Applejack (app, run from command line). However, Running the ...
0
votes
1answer
22 views

Checking if specific user used chown on specific directories?

I recently granted one user sudo access rights on test server. This morning I see that server is screwed up. I see that owner rights where changed on many directories. For example many root ...
0
votes
2answers
43 views

Change default permissions for new files and folders

Every time I create a new file or folder in Linux, it is accessible for r/w by myself, not the group. I want to change my system setting such that every new file or folder will be automatically ...
0
votes
1answer
45 views

Is it possible to disable chmod/chown from sudoers for these specific directories /usr and /etc?

There has been two occasions where I have accidentally chmod-ized 777 the whole direcotry of /etc and it has forced me to come to the decision that I'd be better off to do fresh installation of OS ...
0
votes
1answer
33 views

Granting full rights on all files (owned by su) within certain directory

I got some trouble with a server situation, where i keep some configuration files in a sub-directory of a web project. Using my superuser account, i make changes to these files, which NetBeans commits ...
0
votes
0answers
49 views

vsftpd and persistent errors

I'm configuring a ftp user using this : useradd mz -d /home/ftp/mz -s /bin/false then check password: passwd mz and setting permissions chmod -R 777 /home/ftp/mz and changing owner chown ...
0
votes
0answers
20 views

Changing privilege rights on Arch Linux for a particular program

I am quite new to linux and have had issues surrounding every program that I install. Basically, anything that is placed outside of my home directory requires a sudo call prior to opening/executing. I ...
0
votes
1answer
121 views

Unable to retain any root created files and folders after warm reboot in linux

I installed and ran petalinux on zynq board. It runs perfectly fine and boot in around 3 seconds. To boot it this fast I had to do some configuration before compiling the source. The problem that I ...
0
votes
1answer
25 views

Ubuntu file ownership issue

I've got a problem with my forum platform being unable to install modifications, as it complains the "Packages" directory isn't writeable. It's chmodded to 0777, so it's not a permission issue, but an ...
0
votes
1answer
40 views

chown for files generated by a process running as root

I have a Fedora server running an application as root (via sudo). The users operating the application can extract data with "Save as" menu from inside the application. However, the generated files has ...
0
votes
1answer
3k views

chown: invalid user: ‘www–data:www-data’

I'm experiencing strage problem. I simple need to give permissions www-data to a folder chown -R www–data:www-data /somefolder chown: invalid user: ‘www–data:www-data’ grep www-data /etc/passwd ...
1
vote
0answers
42 views

I want the “apache” user to own a dir but other users are adding via WinSCP [duplicate]

This is a fairly simple problem to explain but it is really annoying me and I could do with some advice. How to I ensure that apache is user : group owner of a dir no matter who uploads to it.. the ...
1
vote
2answers
748 views

Always have to chown when adding new file? Centos 6

Whenever I upload a new file to my server, I have to chown -R apache:apache /dir in order for it to be accessible. Is there an easier way around this?
0
votes
1answer
81 views

CentOS: How to prevent a user from executing an application installed in a specific directory

I have an application installed in /etc/mydir. I have executed the following to remove the ability for users to execute this program. chown root:group1 /etc/mydir -R chmod 700 /etc/mydir -R I ...
0
votes
1answer
27 views

What should I do to secure, chmodly wise, my server?

I want to let my friend access my server so he can host his website. Let's call him Joris. # useradd joris note that I'm Debian. So now a /home/joris has been created. This is cool and all. BUT. He ...
1
vote
2answers
191 views

some doubts about chown command in linux?

I am pretty new in Linux and I have a doubt related to the use of the chown command use. If I have something like this: chown -R root:root /usr/share/MyApplicationDirectory What exactly mean? I ...
0
votes
1answer
482 views

How should chmod and chown be used together?

I recently sold my mac, and before doing so I put its files on an external HDD. Now I'm using Linux to move those files to a larger HDD, but some folders still retained some residual mac permissions, ...
1
vote
2answers
155 views

Convert ls -ld to chmod/chown commands

X home dir permissions: drwxr-xr-x Y home dir permissions: drwxr-x--x So my question is, how can i convert drwxr-x--x to a chmod/chown command so I can put the same permissions that Y has on his home ...
0
votes
1answer
80 views

Can chmod 777 ubituitously replace the need for chown ?

Its clear to me that the chmod 777 command will make any file, theoretically, accessible/readable/writeable/executable/ by any user. But are there instances where, even with a world ...
0
votes
3answers
2k views

Change owner of the root folder and subfolders (Ubuntu 13.04)

I accidentally set owner of root folder (/) and all subfolders to one user by command $ sudo chown -R 'userName' /* Now I wanna set owner back to root user by command $ chown -R root:root /* But ...
-1
votes
1answer
1k views

Take control of all disks/filesystems automatically in linux (Kali)

I have two mac disks plugged into my Linux Kali and for the life of me I cannot get ownership of them. (LaCie) I don't have this problem in Windows or Mac, I just copy the files. Drag and drop. But ...
0
votes
1answer
568 views

Can't change folder permissions on FAT32 partition-Mac OSX

In have an external hard drive which has two partitions: Mac OSX Extended Journaled MS-DOS FAT Basically if I select get info for any file/folder on the FAT partition, there is no option to change ...
1
vote
1answer
105 views

Unix User groups permissions

When I try to run an application I have 'moved' by zippping + unzipping from one host to another it says :This program can only be executed by users in group 1002. Can Anybody please decipher what ...
2
votes
1answer
537 views

Accidentally ran “chown -R ubuntu:ubuntu /”, how to repair?

I accidentally ran "chown -R ubuntu:ubuntu /" on a cluster of 10 servers. I've since managed to repair the majority of the filesystem by initially editing /etc/rc.local, placing a lot of chown ...
2
votes
2answers
166 views

Understanding file ownership Linux

I have a Java program on my Linux box and I wanted to create a little one-liner shell script in /bin to prevent having to navigate to the folder of the program and setting all the command line ...
1
vote
2answers
886 views

Previous version of CGAL with Macports: “Error: Unable to execute port: Could not open file”

I'm trying to install a previous port of cgal with macports. I'm following this How-to: http://trac.macports.org/wiki/howto/InstallingOlderPort I already read this answer but it didn't solve for me. ...
0
votes
2answers
105 views

changing the ownership of a file in linux

I have a file "test" on an Ubuntu system owned by the root. The ls -l option is shown below. $ ls -l test -r--r----- 1 root abacus 373 Nov 12 19:19 test I know that only the owner of a file can ...
2
votes
1answer
1k views

Rsync: after copying as root, change owner to the web user

I seem to come up against this issue occasionally: serverA assets: owned by user: apache (no 'ftp' user present) serverB assets: owned by user: ftp (apache user present, but not used) I connect ...
0
votes
2answers
51 views

None of my directories are writable

Argh help lol I have ran a chown command (silly me) which I did not fully understand now when I connect via filezilla and try do anything write/delete files/directories I get Error: mkdir ...
1
vote
1answer
227 views

Why can't I change ownership to 'staff' without 'sudo'?

If I have a file that's owned by Me and is in group staff, I can chown Me:admin and chown Me:Me but in order to chown Me:staff I must sudo chown Me:staff to avoid an "Operation not permitted" error. ...
0
votes
1answer
60 views

Give Apache and Account User File Writing Priviliges

I am using OS X Mountain Lion for web development. I am running the built-in Apache server. Now I need to allow the PHP script I am running to write in a directory. But if I chown the directory to ...
0
votes
2answers
334 views

Why does redirecting “sudo echo” stdout to a file not give root ownership?

I'm pretty new to using Linux heavily, and I'm trying to learn more about file ownership and permissions. One thing that I stumbled on just now was exactly what the title says, running: ...
1
vote
3answers
307 views

Major permission repair needed on Mac Os

I made the fatal error of copying and pasting a sudo command into my terminal without double checking it, here it is. sudo -R mysql / What this does (for those that don't know) is recursively change ...
4
votes
4answers
740 views

Is it possible to change the ownership of an executable to root using sudo?

I have an executable created by my userid that I need to have run as root. Therefore I need to change the ownership of my executable to be root:root and use setuid. When I attempt sudo chown ...
2
votes
1answer
1k views

Accidentally changed the owner of /bin and other directories

I recently made something very, very stupid. Instead of typing: chown adam ./* I wrote: chown adam /* (I forgot about the very important dot). Now I have some files with owner adam instead of... hmm I ...
4
votes
2answers
21k views

How to chown/chmod all files in current directory?

I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this: chown username:groupname . ...expecting that it would affect all the ...
5
votes
1answer
8k views

Transmission-daemon not picking up on watch directory

Trying to get my transmission-daemon to pick up files from a dropbox folder, to make remote starting easier (it's a headless system). As far as I can tell, the settings.json file is as expected, but ...
2
votes
1answer
258 views

Unable to create files in a directory

I have created a directory in Virutalbox. Using VBoxManage, I am executing a script inside the Ubuntu VM directory I created above from Ubuntu host OS. But if the script in the VM contains commands ...
0
votes
1answer
560 views

Can't chown volume in OS X, operation not permitted?

I'm trying to chown a volume, but I get "Operation not Permitted" no matter what permissions I change. I'm using OS X Leopard. users-mac-pro:~ users$ chown 0:0 /Volumes/Snowfx chown: /Volumes/Snowfx: ...
0
votes
2answers
510 views

Accidently changed the owner/group permissions of linux /

I accidently changed the permissions of linux / sudo chown -R deploy:deploy / and messed up every thing. SSH is not working, web server showing error. And it is a cloud server! (Ubuntu 10.04) There ...
0
votes
0answers
54 views

Chown permission not allowed while restoring from LTO drive

i have to restore some file to my network system from LTO Tape, i use bru command to restore the file. but it is giving an error message chown permission not permited.
2
votes
3answers
4k views

chown -R root.root /

So I was working and there was a directory that I was periodically changing to my user in a root terminal so that I could open the files in text editors, but I accidentally pressed / instead of . and ...
0
votes
1answer
719 views

How to make a local user be able to edit files created by _www user and group on OS X?

I'm using OS X Snow Leopard. I have a web application hosted locally in the web server folder with _www user and _www group. I'm unable to edit those files with my local user, who is part of the ...
0
votes
1answer
6k views

Creating files and directories with a certain owner (user/group) while sudoing

I need to wget something (results in a compressed file in cwd), then I have to extract it, then do some copy/move/modification stuff and perhaps finally execute an script (from the downloaded ...
0
votes
1answer
615 views

Unable to edit files in _www group on OS X

I am using my MacBook as a local dev environment. In order to make the files publishable I had to give my web folder user and group of _www:_www using chown. I'm using another account to log into my ...
3
votes
2answers
12k views

Can't change owner (user or group) of directory which I have all rights on?

TL;DR: Why am I getting the Operation not permitted? And how can I resolve this? I'm facing a problem which I can't resolve. I'm creating a directory as user a:group a), which I want to change to ...
1
vote
1answer
327 views

Serving NTFS partition on linux through ftp

I'm using the default configuration for proftpd on Linux Mint with only the following directive changed: # Use this to jail all users in their homes DefaultRoot ~ I created a user userftp ...
2
votes
2answers
2k views

chown does not apply owner change

I'm having a problem with Dropbox which seems to be quite common (the problem apperas on all sorts of systems - I'm running on Ubuntu 11.10). From the reading I've done, it seems the problem is that ...
4
votes
1answer
643 views

How to chown large group of files based on previous owner id?

I created a new account in OS X and disposed of my old one. I have a bunch of files that now have owner 501 that need to have ownership changed to me [/usr/local]$ ll total 24 drwxrwxr-x 18 root ...