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
2answers
43 views

chown -R root:root .* in /root performs chown on /

When running the command in the title from /root it somehow jumps up to / and changes ownership for ALLfiles, i only noticed because error messages for /proc popped up. Maybe i'm getting old but ...
-1
votes
0answers
27 views

Changed user ownerships on Mac OS X and now Terminal is not working

I did this on Terminal: Machine:user> sudo chown -R $(whoami) /usr/local Machine:user> sudo chown -R $(whoami) /usr/bin Not very smart, I know, but it was done in order to workaround a ...
1
vote
3answers
49 views

Why I can't access to this directory after that I use the chown command?

I am not so into Linux and I have the following problem. I have installed a LAMP environment of an Ubuntu Linux system dedicated to the develop (it is on my PC and it is not a production server). So ...
0
votes
0answers
19 views

Pull and chown from git

I've made a little script that fetches data from my bitbucket.org repository. Now when content gets created or changed the owner changes to name:name. What I want is all files to be chown to ...
0
votes
2answers
51 views

chown not working on ext4 hard drive

I have a new 3TB internal hard drive and after writing some data to it I completely zero'd the drive using DD. I then created a partition table (GPT) in Gparted and created an ext4 partition. All went ...
0
votes
1answer
22 views

chown -R does not set permissions of files. only directories

Hello i am setting up a server nginx gives 403 Permission dinied. I found out that somehow the command chown -R root:www-data /my_directory only set the permissions of directories. When i use ls ...
0
votes
1answer
36 views

Make my custom program root

I have a custom program in C, that iterates trough a directory and writes a log file with the contents in my home. However, it cannot acces /var/log/ /etc/ and other root folders. How to change that? ...
0
votes
1answer
24 views

wubi chown mysql to the /host folder not working

I installed wubi in D: driver. Since I want to store mysql database folder in D: driver which has a lot more space than inside wubi. I copy /var/lib/mysql to /host/mysql then change the database dir ...
0
votes
0answers
333 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
77 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
30 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
85 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
115 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
43 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
81 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
31 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
150 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
28 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
51 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 ...
1
vote
1answer
6k 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
980 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
101 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
28 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
273 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
666 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
178 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
99 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
2k 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
735 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
127 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
756 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
189 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
1k 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
123 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
2k 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
54 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
278 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
64 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
418 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
409 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
842 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 ...
12
votes
2answers
34k 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
11k 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
306 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
666 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
575 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.