Questions tagged [chown]

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

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

147 questions
0
votes
1 answer

Security-wise file ownership & permission setup for LEMP server to be managed via wp-cli and wordpress dashboard?

I'm on a LEMP VPS with the following setup; cd /home/$USER/public/myDomain.com # change directory to myDomain.com chown -R nginx:nginx . # change file ownership find . -type d -exec chmod 750 {} \; # change permissions…
Nick
  • 1
  • 2
0
votes
0 answers

Access to file denied when doint cat

So I'm trying to create a user in gerrit using the command : cat /var/lib/jenkins/.ssh/id_rsa.pub | ssh -p 29418 webadm@localhost gerrit create-account --group "'Non-Interactive Users'" --ssh-key - jenkins-watcher so first thing first I logged with…
Heetola
  • 101
  • 2
-1
votes
3 answers

Issues with file rights in CentOS

May someone explain me how to manage rights correctly pls? I have a file with these rights: 8 -rw-r--r--+ 1 sntecard sntecard 4669 Sep 18 12:34 index.php I am accessing this folder by user myuser and trying to modify it. Sure, I can't. Ok, I am…
Epsiloncool
  • 95
  • 2
  • 13
-1
votes
1 answer

chowned root directory recursive

accidently I did "chown -R www-data:www-data /" (I wanted to chown current directory). Is the only good way now to set the system up again from beginning? waaaah -.- Thanks
bagbag
  • 31
  • 1
  • 3
-1
votes
1 answer

Add permissions for a user to folders and files

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 Mar 21 16:42 ../ -rw-r--r-- 1 jenkins jenkins…
u123
  • 267
  • 1
  • 8
  • 24
-1
votes
1 answer

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 directory to /var/www/html/domain.co.uk . In terminal,…
JPeroutek
  • 111
  • 1
  • 4
-1
votes
1 answer

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

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 can upload media files, install new plugins,…
WebDevDude
  • 151
  • 3
  • 7
-1
votes
1 answer

Purpose of -r option in chown

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 means in plain English. For example, if I use the…
Bill
  • 29
  • 1
-2
votes
1 answer

Chown results in not being able log in VestaCP

so I needed to chown a folder and I accidently wrote chown -R admin:admin / And that chmowned all files for ~5sec then came up an error that it can not chown something and I stopped. After I noticed I can not login in VestaCP, I changed password…
Tmz Litz
  • 19
  • 2
-2
votes
1 answer

Permissions/groups setup

I have setup up a Group that includes a few users (mygroup) then have set the owner of a web directory to be apache and the group to be mygroup. chown -R apache:mygroup /home/myweb Then I have set permissions to chmod -R 764 /home/myweb The idea…
Kline
  • 1
  • 1
-4
votes
1 answer

What are the proper chown settings for images?

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 manually visit the image's URL, it shows just…
Dustin L.
  • 143
  • 3
-5
votes
1 answer

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?
Mas
  • 1
  • 2
1 2 3
9
10