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

2
votes
2answers
243 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 ...
0
votes
2answers
62 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 ...
0
votes
2answers
668 views

Used recursive chown on the root directory

I'm going to need some help restoring my ssh settings as I screwed everything up by calling this command: chown -R user / At the moment im not able to access the site through ssh/ftp since the ...
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 ...
2
votes
1answer
376 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
24 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
29 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
1answer
223 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
36 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
76 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
65 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 ...
-1
votes
1answer
3k 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 ...
2
votes
0answers
924 views

Ubuntu 10.04 with vsftpd: Can't chown /var/www?

For the life of me, I can't seem to chown my /var/www folder on my server. i want to: chown -R ftpuser /var/www And it returns Invalid Argument on every file change attempt. I've tried sudo with ...
0
votes
0answers
4 views

Rsync (-aR) Create a destination subdirectory with same permissions as top folder in source directory?

I'm using rsync to grab some modules within a web platform. I am able to pull things ok, the -aR relative flag works fine, and the structure is correctly replicated into a subfolder called ...
0
votes
0answers
13 views

Best way to ensure the contents of a directory is always owned by Apache

We have a couple Apache VirtualHosts on a CentOS 7 server, and the PHP sometimes requires the ability to create/edit/delete files and/or folders, so it's important that the permissions always be ...
0
votes
0answers
13 views

Directory access not permitted

I recently installed the Open Virtual Desktop (Community Edition) on CentOS 6.6. I tried to open the folder created for a particular session. When the session was logged in, the folder could be ...
0
votes
0answers
45 views

Subversion sudo svn update changes file ownership and rwx

I'm limiting permissions on a certain file, settings.py in my svn-linked directory so that it can only be read by sudo users and apache, which goes by the username, www-data. So, on settings.py, I've ...
0
votes
0answers
85 views

SFTP to multiple users access to same directory and take delete permission

I am trying to give permissions to multiple users to access var/www/my.com/folder2, which is owned by www-data. So simply I have a lot of sftp users and everyone only accessing to ...
0
votes
0answers
34 views

Unable to change owner on a mapped drive directory

I am using a script to copy files from amazon instances to a network drive using rsync. After the file copy I am trying to change the owner of these transferred files but am not able to. What is the ...
0
votes
0answers
302 views

Reset all the permissions to default permissions linux mint 17

I have somehow messed up with the permissions of different folders on my linuxmint 17. Now I am unable to use sudo apt-get install or sudo apt-get update commands. It gives error are you root? even ...
0
votes
0answers
417 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
42 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
0answers
56 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.