The chown command (abbreviation for change owner)

learn more… | top users | synonyms

0
votes
1answer
27 views

For some reason, I can't modify contents in USB drives

For some reason, only root can modify the contents in USB drives (create folder/file, etc.), after running related commands.
1
vote
0answers
50 views

recursive CHOWN - how do I do this without terminal

I avoid using the terminal whenever possible, but recently I had to take ownership of a folder, or subfiles and subfolders. The only help I found for this was on google using the terminal. How can I ...
1
vote
0answers
20 views

Recovering from chown -R / … update-manager not working and throwing errors [duplicate]

I messed up and ran chown -R username:username / by accident. I rebooted into recovery mode to get root privileges back and did the following... mount -o remount,rw / to get write permissions, then ...
1
vote
2answers
58 views

I need help with Chown command . I broke my ubuntu

I have accidentally executed this command on my Ubuntu terminal sudo chown -R 755 /var/www/html/buzo/wp-content/cd .. Now every folder has this lock like symbol and my desktop has turned black. ...
0
votes
1answer
38 views

www-data ownership

I'm very much new to ubuntu. Please help me to change my server settings. I am trying to install wordpress. Accidentally I ran this command in root directory: sudo chown -R demo:www-data * Now all ...
0
votes
2answers
139 views

chmod not working in a non super user

I have created a file named *.txt in /home using following command: sudo nano *.txt Then I have changed owner of *.txt to a user that I've created: sudo useradd -c "ABC" sudo chown ABC *...
-1
votes
1answer
34 views

Why chown command can't take effect?

chown -Rf www-data.www-data /var/www/html/test/ ls -l /var/www/html/test total 192 -rwxr-xr-x 1 root root 418 Mar 17 21:31 index.php -rwxr-xr-x 1 root root 19930 Mar 17 21:31 license.txt -rwxr-...
0
votes
0answers
37 views

ubuntu as vagrant vm: cannot chown to other users

I have a directory: /home/vagrant/flarum and I am trying to change the owner of the directory from root to vagrant. so I run this commond: sudo chown -R vagrant:vagrant /home/vagrant/flarum this ...
0
votes
1answer
26 views

Ubuntu privileges for ownCloud

Who should be the owner of my /var/www/html/owncloud directory? By default it is root because I have to unzip as root in this directory. Should I change the owner of this directory to www-data then? ...
1
vote
1answer
46 views

How to recover from chown on all the files? [duplicate]

I've just chowned all the computer. I wanted to chown a folder completely so I used the option -R. I forgot that I had used su root before and I was in the folder where everything is (/ isn't it ?) ...
1
vote
1answer
104 views

USB Drive - Not able to change file permissions

Now, please note that this is a sub-question of my old Changing Ownership: “Operation not permitted” - even as root! question. If you do not want to visit that link or cannot, to sum up, while ...
0
votes
1answer
71 views

Not able to sudo after running `chown -R username:usergroup /*` [duplicate]

I am fairly new to Ubuntu. I am currently using Ubuntu 14.04 version. I am stuck into a problem that my primary user account is not functioning after i ran a command chown -R username:usergroup /* on ...
0
votes
1answer
30 views

Copy of the file /bin/sh not executing as expected

I have Ubuntu installed in VirtualBox on Windows 10 only for two days, so this may sound silly. I have a reasoning problem somewhere and I don't know why. I copied the file /bin/sh to my own directory,...
0
votes
1answer
27 views

permissions, changing ownership

I have a flash drive which contains recovered files from my old mac, I installed Ubuntu just to recover these files, I have no other purpose for the OS. The drive shows owner "Root" and the files are ...
0
votes
1answer
53 views

Find the user under which a Ubuntu service runs?

I have a Cassandra service on my Ubuntu but I cannot figure under what user this service runs. I know how to find the owner and the permissions of files and directories. But how can I do this for a ...
0
votes
2answers
500 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: mossen@mossen-desktop:/opt/openfoam211/platforms/...
0
votes
0answers
15 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
47 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
866 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
25 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
36 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. (trusty)epaschall@localhost:/usr/share/...
0
votes
0answers
25 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 /media/...
0
votes
0answers
169 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 '/var/lib/lightdm/....
1
vote
0answers
23 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
488 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
384 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
618 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
33 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
55 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
77 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
60 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
1k 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 ...
9
votes
1answer
33k views

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

While trying to help a user solve an issue with a bootable USB drive, there seems to be a file that is set so its ownership cannot be edited. I do realize that it should be able to be done with: ...
1
vote
1answer
58 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
54 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 ...
0
votes
1answer
1k 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 www-data:www-...
3
votes
2answers
3k 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 ...
3
votes
4answers
12k 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
5k 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
549 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
490 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
2k 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
160 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
5k 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
229 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
9k 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
1answer
98 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
107 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
139 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 ...