The chown command (abbreviation for change owner)

learn more… | top users | synonyms

0
votes
2answers
28 views

chown: cannot access `…' : No such file or directory [closed]

I'm trying to change the ownership of a file on Ubuntu 10.04. This is the output from the terminal after typing in the following command: ...
0
votes
0answers
12 views

Owner status of directory reverting

I use Ubuntu 64 bit, version 14.04 LTS. I have 2 users on this machine, user1 and user2. Both users are part of the same group. I run a python script that logs something in a file, that is within a ...
0
votes
0answers
39 views

For proper operation, what files / dirs should be owned by root

I have a Linux (Ubuntu 14.04.1) Living on a disk. I launch a cloud instance, do some setup, and then chroot to the appropriate place on that disk. I had to move to a new cloud, with a new disk. ...
3
votes
1answer
69 views

Reset default permissions for /var/www

I completely messed up my /var/www/ folder after attempting to change some permissions. Now I am unable to open my localhost in browser. Following are my permissions in relevant folders. in root, ...
0
votes
1answer
22 views

Can't access any page now?

So, I added some chmod and chown and a group and now I can't access any of my website when I go to it? All I get is: Forbidden You don't have permission to access / on this server. Apache/2.4.7 ...
0
votes
1answer
25 views

Error using chown

I am a complete newbie, so please forgive my ignorance. Could someone please help with this error. Thank you very much for any help. Much appreciated. ...
0
votes
0answers
22 views

Hardrive Permission

So I added a second drive for to use for back-ups. I changed the ownership, when I try to use the partition, it says that I do not have permission. Here is what mount is showing. /dev/sdb3 on ...
0
votes
0answers
68 views

chown: cannot access '/var/lib/lightdm/.gvfs' permission denied

For I can't login to the desktop, I searched for a solution and find a way that reinstall lightdm, so I tried to reinstall lightdm, but returned a message: chown: cannot access ...
1
vote
0answers
19 views

Can't chown despite no error messages

I got /dev/sda9 NTFS partition mounted r/w under /data /dev/sda9 on /data type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) and I got the folder PhotoCopy to which ...
0
votes
1answer
135 views

How to fix corrupted permissions inside encfs encrypted folder

I manage and mount a encrypted folder with Gnome encfs manager and it worked for years. Suddenly it seems like the files or permissions inside were corrupted. Mounting works as usual on terminal as ...
3
votes
2answers
363 views

Wrong chown used

I just made a huuuge mistake. I typed the following as root: chown chris ./ So it change perm to everything! Now I have problem booting because of these permissions. How do I fix it?
14
votes
2answers
548 views

Change owner of files recursively, but not directories

I have a directory that has ~50k directories and ~1m files. I want to change owner (or permission) of all files, but not the directories. This is because i'm trying to SCP additional files from a ...
0
votes
1answer
29 views

Reset directory owner [duplicate]

Believeing I was in another directory I accidentally ran the following command on the root: sudo chown -R j:root / My username is j Unfortunately because of this I am unable to run any sudo ...
0
votes
0answers
43 views

Don't understand how to use sudo chown

I tried to install Angular.js in ubuntu, but I get stuck because I cannot run 'yo angular' because this file is locked and I am not the owner. After I looking for how to solve this problem, I found in ...
2
votes
2answers
42 views

Does chown always require sudo?

Why does an owner of a file in Ubuntu need to run sudo in order to execute chown. Running it without sudo results in an "Operation not permitted" error messge.
1
vote
1answer
27 views

How to run command as another user or keep file attributes?

I run command: find /var/www/html/wp-content/uploads/2015/file.jpg | xargs /usr/local/bin/jpegoptim --max=90 --all-progressive --strip-all --strip-com --strip-exif -- strip-iptc --strip-icc and ...
0
votes
0answers
13 views

NTFS permissions messed up [duplicate]

I run a dual boot with Ubuntu on sd6 and Windows8.1 on sd4. I was trying to get plex media server working on my ubuntu, and I ended up messing my D:/ (sda5) in windows. I used this guide to set ...
1
vote
1answer
336 views

chmod: Everything on SD Card Stuck On 755, Owner is Root

I am trying to access my SD card as a general user after it somehow changed to just Root access. I have tried several solutions, and none of them worked. Here is an attempt to chown eveything to ...
6
votes
1answer
6k views

Changing Ownership: “Operation not permitted” - even as root!

While trying to help someone solve an issue with a bootable drive, there seems to be a file that's ownership cannot be edited. I do realize that it should be able to be done with sudo chown ...
1
vote
1answer
48 views

USB ports not working, problems with ownership and permissions

I have ended up with problems with ownership and permissions on my computer, probably due to a brainless recursive change of permissions..! I don't know which folder was affected, so I have changed ...
1
vote
1answer
42 views

suddenly don't have acces to Mounted Drives, chown/chmod don't help

I'm having some trouble with a few drives in my computer. I have been unable to access 3 drives (one internal and two external) except as root for the past day. All three drives are ext4 and I was ...
-1
votes
1answer
268 views

How to undo or set back to default chmod -R 755? [closed]

What I was trying to do is installing "wordpress" in my localhost on (ubuntu 14.04) i.e my path for localhost is " home/deepak/php " Now what i did is this in terminal: sudo chown -R ...
3
votes
2answers
114 views

Recursive chown starting with the directory above current directory

I couldn't log in to my "admin" account and Alt+Ctrl+F1 showed all my files were owned by my "standard" user. Odd. So I carefully changed to /home/admin and did a sudo chown -R admin:admin * (and ...
1
vote
4answers
5k views

Make owner of newly create files AND folders www-data instead of superuser/admin

I've been struggling with permissions so far, and posted another question but identified what the problem was, without any way to fix it yet. My setup: Ubuntu Desktop with LAMP stack 5 "users" I ...
2
votes
3answers
2k views

chown - Difference between user and user:user

What is the difference between: sudo chown $USER:$USER and sudo chown $USER Why is it 2 times? Is the one user wrong? When I look at permissions with namei -l, I often see things like root root ...
2
votes
1answer
330 views

Change Folder/File Permissions for HIDDEN Subdirectories

This question is very similar to Change Folder & File Permissions for all Subdirectories , which worked for me completely when the folders weren't hidden. However, I have a hidden folder (call it ...
0
votes
1answer
291 views

Restore permission default of /usr folder [duplicate]

I ran a stupid command: sudo chown -R ngoclb:ngoclb /usr. Then I couldn't use sudo command and login to Ubuntu. To fix this issue, I using recovery mode to chown /usr to root (sudo chown -R root:root ...
2
votes
1answer
700 views

change ownership of all files from root to user

i'm new to Ubuntu and was wondering if there is a way to remove the ownership of all files and scripts from root to user even if i have to re-install Ubuntu? i do know about the command 'chown -v ...
0
votes
1answer
102 views

NPM Read-Only File System for User

So I've been a bit of an idiot. I was trying to fix an NPM issue, and ran these two commands: sudo chown -R $USER ~/.npm sudo chown -R $USER /usr/local/lib/node_modules as per this suggestion. ...
2
votes
1answer
527 views

Change permissions to a specific user in Ubuntu 12.04 [closed]

How can I change the permission (555 or 755) to a user in a specific folder in Ubuntu 12.04. I used this command, but it didn't work sudo chown -R username:group directory Thanks,
2
votes
1answer
211 views

Why isn't another member of a group able to use a directory?

I have created a directory named IDE in /opt using following command sudo mkdir -p /opt/IDE Then I have changed the owner of IDE directory. sudo chown shantanu:csedev /opt/IDE Above command ...
10
votes
1answer
5k views

How to change file ownership when chown says “invalid user: ‘–R'”?

ubuntu64@ubuntu:/$ sudo chown –R hduser:hadoop mongodbdata chown: invalid user: ‘–R' When I try to change the ownership of the file, I am just getting invalid user: '-R' error.
0
votes
0answers
108 views

restore to original chmod and chown settings

I nuked my whole system attempting to make some "minor changes". The errors ranged from org.freedesktop.dbus.error.spawn.permissioninvalid to setuid helper is not correct to must be owned by uid0 ...
0
votes
1answer
74 views

Who can change a file permission or ownership in ubuntu? [duplicate]

Who has the privilege to change a file permissions or ownership in ubuntu ?
0
votes
1answer
83 views

Give a user read access to a directory without making them owner

I want to give user testuser read access to /Media/Test without making them the owner of the directory, nor giving access to everyone. How would I go about this? I want to do this because I'm ...
0
votes
1answer
103 views

Cannot get past log in screen after restoring backup

I recently restored my /home/main-account directory from a backup hard disk. After rebooting I can't get past the log in screen for this account. I had copied all the data using an alt account and it ...
0
votes
1answer
205 views

Unix permissions - what EXACTLY is the “owner group” (note: singular)?

I'm programming a Fuse file-system. So far so normal, didn't encounter unsolvable problems (except performance). However, I read the following articles: http://linuxcommand.org/lts0070.php ...
1
vote
1answer
6k views

sudo must be owned by uid 0 and have the setuid bit set

I am trying to run the following command: d@d-Aspire-M5 ~ $ echo "My username is: `whoami`" My username is: d d@d-Aspire-M5 ~ $ sudo chown -R `whoami` /usr/local/lib/node_modules sudo: /usr/bin/sudo ...
0
votes
1answer
961 views

No such file or directory when chown on newly created directory

I'm a very new Ubuntu user (14.04 LTS) and this is my first question here. I am trying to follow the instructions from this Reddit thread about mounting an NTFS hard disk to use as a Plex media ...
0
votes
1answer
155 views

Cannot edit php5.fcgi owned by Me with RWX owner permissions

Ok, I kind of thought I understood Linux permissions and then I encountered this one. I am running Ubuntu 14.04 LTS in a virtualbox on my Windows 7 pro laptop. All udpates are applied to windows, ...
1
vote
1answer
71 views

Chown-ed windows partition

I need some help, if you could have a look. I have a laptop dualbooting Windows 8.1 and Ubuntu 14.04. I was trying to share some files on my home network, both from my external hard drive, and from ...
0
votes
1answer
455 views

Change Owner From “root” in VMware's Shared Folder

I'm running a Xubuntu from a Windows 8 host. I can't change the owner of shared files from xubuntu by any sudo chown ... command. Is there any other way I can change the owner from the root to the ...
0
votes
1answer
112 views

chown not working on remote filesystem, other commands (e.g., chmod) do work

I am trying to change the ownership of a file on a remote filesystem, but chown responds with chown: changing ownership of ‘foo’: No such file or directory However, as you can see, foo is there and ...
0
votes
1answer
68 views

HELP I changed permissions nothing works and I got locket out [duplicate]

I ran this command sudo chown -hR root /. and now flash is disabled, chrome does not work, nothing works, I cannot even access folder directories outside of the terminal. I then logged out and tried ...
1
vote
2answers
2k views

Ubuntu 14.04 Login Loop from running startx in root

I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like ...
0
votes
2answers
2k views

Setting correct permissions

First of all let me say that i am almost new to Linux so please be patient :) I have an Ubuntu 14.0.4 running on my Systems. What i am trying to do is: On my system there are sabnzbd and plex ...
0
votes
1answer
104 views

Create user and block access to parent directories

New to terminal shenanigans here and I have set up a user using adduser dave --no-create-home/ Firstly, I think the user still, upon logging into the terminal, is pointed to their home directory (what ...
0
votes
1answer
146 views

How to Remove Recursively grant ownership

I recently switched from Windows 8.1 to Ubuntu. Yesterday, I wanted to install PHP but during tutorial I did this: sudo chown -R joy /var/www but now onward for every command it ask for password ...
2
votes
3answers
2k views

Changing ownership of folder not working!

I am trying to change the ownership of a folder and subfolders by typing either of these: sudo chown $user -R /usr/bin/.folder/ sudo chown $user -R /usr/bin/folder/ sudo chown $user -R ...
1
vote
1answer
1k views

How to lock down SFTP user?

I really need some help, I have been trying to jail a user using ubuntu. Thing to note: james is the user sshusers is the group /home/james/upload/ is the directory where I wish to lock user ...