The chown command (abbreviation for change owner)

learn more… | top users | synonyms

-1
votes
1answer
33 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
47 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
388 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
462 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
88 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
64 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 ...
1
vote
1answer
101 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
50 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
52 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
169 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 ...
9
votes
1answer
2k 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
59 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
49 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
49 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
42 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
72 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 ...
0
votes
1answer
2k 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
271 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
0answers
79 views

Folder Permissions

I am having trouble serving a folder out using samba. I have already successfully shared a folder but my folder permissions are jacked up: [samba is successfuly shared, flexraid_pool is a folder I ...
0
votes
1answer
85 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, ...
0
votes
0answers
17 views

could not connect to server

To solve an error that said ( permission denied ), I tried to sudo chown –R edxapp / Then error appear says: must be setuid root. And to solve that I tried chmod u+s /usr/bin/sudo but then ...
1
vote
1answer
54 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
183 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
82 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
0answers
97 views

Help with chown command

I am a novice user with ubuntu, I ran some chown commands to give permssions to www-root apache folder, but some thing went wrong and all my folders, user account got locked. I am unable to open ...
0
votes
1answer
55 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
837 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
298 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
48 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
0answers
46 views

Furius ISO Mount: directory belongs to root

whenever I mount an .iso file with Furius ISO Mount, the created directory in ~ belongs to root / root. When I tried to sudo chown dennis name_of_dir, I am told that I've not the permissions to do so. ...
0
votes
1answer
56 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 ...
1
vote
3answers
408 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
721 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 ...
4
votes
2answers
64 views

problem during compilation

I am learning how to compile using your CompilingEasyHowTo guide. But as soon as I run the command shown below in the terminal, it shows the following error: tejas@tejas-AU909AA-ACJ-CQ3120IX:~$ sudo ...
0
votes
1answer
493 views

Is it bad to chown /media/USERNAME for your web server?

I've been trying to get this software working for my webserver. It's called ownCloud. I had partitioned my hard drive just to host my files on my web server. I made a new partition (128gb) and I've ...
0
votes
1answer
81 views

Cannot Write to www and update wordpress at same time

I have LAMP installed on my Ubuntu 14.04 server and am using apache as a web server. I am going to be using the web server for Wordpress primarily. The problem I am running into is that I cannot ...
2
votes
2answers
36 views

Chown Not Responding as I expected.

New to Ubuntu, so bare with me. I recently changed the permission of mysql, /var/lib/mysql so I could save a database in it manually (was only option currently, instead of importing it the proper ...
2
votes
1answer
978 views

Why is root the owner of my Desktop in Ubuntu 14.04?

When I am in my home folder there is a padlock on my Desktop icon. In properties there is written that root is the owner of Desktop and consequently I can't put anything on my Desktop. I have ...
6
votes
1answer
17k views

chown recursively changed permissions

I ran the chown command in a directory: chown -R user:user {.,}* The {.,}* is used with mv and cp to include both hidden and listed files. Now this command went through and changed those two files ...
1
vote
0answers
294 views

How to change read-only permission under 501 user?

I have a hard disk that install on it mac osx 10.4.11, so I plugged that to my Ubuntu system and now I can see all of the files, but it's just read only under the 501 user permission I'm root in ...
0
votes
2answers
57 views

Does chown command require login and logout to reflect changes?

Does chown command require login and logout to reflect changes?
0
votes
1answer
71 views

set file permissions

I have a directory, where users can drop their plugins (for a game). The directory permissions work for adding these plugin files. But there is one Problem: When the plugin generates config files, ...
1
vote
1answer
58 views

Can root chown anything?

So I have a duplicity-based backup script which is run periodically as root thanks to anacron. It runs as root because I'm backing up about the whole file system (save for /tmp, /sys, etc), and also ...
0
votes
2answers
483 views

Revert permission of /usr back to root

I was doing some alterations but in one I messed up. I changed the permissions of almost everything inside the /usr folder to my own user. It didn't change everything because it failed in the middle ...
2
votes
1answer
1k views

Can't access home folder

While installing Matlab, I mistakenly typed sudo chmod +x ./java in the home folder. And I got i/o error that you are not allowed to access the home folder. Suddenly everything in my home folder ...
10
votes
5answers
22k views

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

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?
0
votes
1answer
17 views

Restoring rights for /var

I accidentally ran "sudo chown www-data /var -R". Right after I ran "sudo chown root /var -R" to restore the rights. I can however no longer login now. I'm still getting the full disk encryption ...
4
votes
1answer
1k views

How to create directory and change it's owner with the deb package

I need to create deb package that will create directory for logs. I want to create directory /var/logs/my_package and to change it's owner to my_user. In the docs there is information that I can ...
0
votes
1answer
56 views

Chmod crash version 13.10

I was watching a command line reference tutorial and testing out two commands, CHMOD and CHOWN. I ended up changing my root folder's permissions. What should I do? Version 13.10.
1
vote
1answer
60 views

chowned /usr to myself, how to recover? [duplicate]

I accidently ran chown myname /usr -R and now the login screen won't show up! I have tried various things in the root terminal, but nothing works. What can I do?