Questions tagged [chown]

chown is a command is used to change the owner and/or group membership of a file or set of files.

374 questions
-1
votes
1 answer

Linux - QNAP - Can't change owner of folder

I have logged into the QNAP using ssh. I am trying to change the owner of the a folder. Here is what I am doing. [/share/Users] # chown joe.dove JoeDove And this is the response I get. chown: unknown group name: dove How do I get around this?
Tim Rideyourbike
  • 667
  • 1
  • 6
  • 14
-1
votes
1 answer

Accidental change of ownership of some root directories in Ubuntu 14.04

(Accidental) Action Hi, I am not very well versed in Linux but using Ubuntu for more than a year. Couple of days back I accidentally changed the ownership of my root folder while changing ownership of another non-root directory. I am not sure but as…
Maax
  • 33
  • 1
  • 8
-1
votes
2 answers

Centos change directory permissions

Morning all, I'm trying to give apache the write access to a particular folder for PHPDOCx. [root@patdraft word2]# ll total 4 -rwxr-xr-x 1 root root 718 May 15 2014 generate.php drwxr-xr-x 1 root root 0 May 13 09:20 lib drwxr-xr-x 1 root root 0…
Harry Torry
  • 373
  • 5
  • 25
-1
votes
1 answer

Directory has permissions drw-r--r-- 3 root root ("others" should be able to read it) but I can't cd to it as my user. Why?

Isn't this supposed to work? I changed the ownership to that of my user but it still says "Permission denied".
pldimitrov
  • 1,597
  • 2
  • 16
  • 21
-1
votes
1 answer

how to change owner of sudoer file in centos that has been mistakenly changed to nonexisting user

i mistakenly changed ownership of /etc/sudoers file to a non-existing user, and now i can't revert it back nor do anything about it. how can i force it to change the owner to root? -r--r----- 1 755 1417 Dec 12 12:39 sudoers
Prod Tester
  • 253
  • 2
  • 5
  • 16
-1
votes
1 answer

JNA with strings for chown instead of int?

Hi i need to change the user/group of certain Files through JAVA. I have seen roughly the same Posix example evrywhere. public interface POSIX extends Library { public int chmod(String filename, int mode); public int chown(String filename,…
user2548720
  • 109
  • 2
  • 2
  • 7
-2
votes
2 answers

Change owner and group of all files and directories

I tried changing the owner and group of all files and directories Vincent and staff respectively in my terminal but its not working. I tried using chown -R Vincent:staff*...
-2
votes
1 answer

I change file permitions of root

I didn't check that I'm at root and I ran chown www-data:www-data -R * find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; I don't have backup thats why I cant restore all my website's goes 503 :( The last thing that I saw…
MoriEdan
  • 1
  • 3
-2
votes
1 answer

Can not connect to SSH Server Google Compute Engine After change chown main folder

I can not connected to my server linux ubuntu who at Google Cloud Compute Engine as root.
Alghi Fari
  • 440
  • 3
  • 12
-2
votes
1 answer

about /etc/fstab and chown

I have mounted /dev/sdb2 to /base in /etc/fstab, like this: /dev/sda1 /base ntfs defaults,user,errors=remount-ro 0 0 then /base like this: -rwxrwxrwx 1 root root 29696 Oct 19 00:11 Mac-OS-Lion(Docky).tar* drwxrwxrwx 1 root root …
nova
  • 11
  • 2
-3
votes
2 answers

Unable to chown although user exists

I am unable to "chown" to username from UID. For example: 123456789 123456789 jdoe -------------------------------------- chown jdoe:jdoe jdoe I get: chown:invalid jdoe 'jdoe:jdoe' but 'jdoe' exists.
-3
votes
4 answers

How to delete a file whose owner is set to 777 by mistake on linux

Tried with a few things I could think of without success. Ideas? Thanks.
Yvonne
  • 153
  • 1
  • 1
  • 3
-4
votes
1 answer

chown: invalid user: ‘+x’

some_file.py: #! /usr/bin/python print("Hello World!") On terminal: sudo chown +x some_file.py chown: invalid user: ‘+x’ I want to make the file executable.
Pushp Vashisht
  • 874
  • 3
  • 9
  • 17
-4
votes
3 answers

I can view my nodejs code in the browser. I want to prevent this

i can hit the url like localhost/foodbucket/app.js and see everything. I want to prevent this. var config = require('./config/config.js'); var app = require('express')(); var http = require('http').Server(app); var mysql = require('mysql'); var pool…
Zain Ul Abideen
  • 41
  • 1
  • 1
  • 5
1 2 3
24
25