I want to copy a file to a folder called &quot;Modules&quot;. I opened in the folder that contains that one and used: sudo chown -R danielyeste Modules  When I access the properties, root still has the ownership. danielyeste is my user, checked with whoiam in terminal. Also tried to do it with sudo mv and other options. Full path is: /snap/clion/current/bin/cmake/linux/share/cmake-3.16/Modules
19069
I have installed a package using snap and I need to modify one of the files but when I try to change its ownership or permissions, I always get the following message:  sudo chmod +x ./my_file.js chmod: changing permissions of '/snap/my_app/my_file.js': Read-only file system   How can I modify files that are installed via snap?
54742
In my terminal shell, I ssh'ed into a remote server, and I cd to the directory I want.   Now in this directory, there is a file called table that I want to copy to my local machine /home/me/Desktop.   How can I do this?  I tried scp table /home/me/Desktop but it gave an error about no such file or directory.   Does anyone know how to do this?
45589
I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is:  rwxrwxrwx 1 root root 131072 Jan  1  1970 hdd   I am mounting it via fstab config:  /dev/sda1 /mnt/hdd exfat-fuse defaults 0 0   I am trying to assign the owner of that drive to www-data via that command:   root@owncloud:/mnt# chown -R www-data:www-data hdd   and it says I don't have permission to do that.  mount command output:  /dev/sda1 on /mnt/hdd type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
98638
I have an ISO file and I mount it under /mnt/isofile. Then I copied this file to another folder. But the contents are read-only and belonged to root. I tried to use chmod and chown. But it prompts with the message:     it is read only file system.   What is going on here?  NOTE: There is a tar file in the .iso, I want to compress it, but failed with the same "read only file system" message.
89505
I am new to Ubuntu so please forgive my inexperience.  I am running Ubuntu Desktop 16.04.1 and I am set up as an administrator, I am the only user so I believe therefore I should be a root user.  However, when I try to copy a file from the root /var/www/html and paste it in /var/www/ directory, using any file management software (i.e. File manager, Files, Dolphin, etc.), I get the error message: Access denied. Could not write to.  Why can I not write to these directories?    Could this be because I have the automatic login option turned on?
44091
What are /home/user/.cache/dconf and /home/user/.dbus? Why does their backup fail?  I tried following  (see code below) but while it allowed me to backup the above files, now I am told it couldn't backup /home/[user]/.dbus/session-bus.    $ man chown $ sudo chown user .cache/dconf   [sudo] password for user:  $ sudo chown user .dbus $ man chgrp $ sudo chgrp user .cache/dconf $ sudo chgrp user .dbus   How do I fix it so it will not take my time closing an error message after each backup? Should I exclude these folders ? Why are they not needed? Why would someone want to back them up?
81024
I have the following file:  ---------- 1 Steve Steve 341 2017-12-21 01:51 myFile.txt   I switched the user to root in the terminal, and I have noticed the following behaviors:   I can read this file and write to it. I can't execute this file. If I set the x bit in the user permissions (---x------) or the group permissions (------x---) or the others permissions (---------x) of the file, then I would be able to execute this file.   Can anyone explain to me or point me to a tutorial that explains all of the rules that apply when the root user is dealing with files and directories?
50842
I often want to do some variant of this idiom:  $ mkdir 2010 $ svn mv * 2010   Of course, I get an error because the glob matches 2010 as well:  svn: Cannot copy path '2010' into its own child '2010/2010'   Is there a way to replace "svn mv * 2010" with a different one-liner that does the right thing?
20739
I'm logged into a server as user "ubuntu" and I've got files that look like this:  -rw-rw-r-- 1 www-data www-data 33150 2012-06-04 22:17 file-a.png -rw-rw-r-- 1 www-data www-data 36371 2012-06-04 22:15 file-b.png -rw-rw-r-- 1 www-data www-data 41439 2012-06-04 22:16 file-c.png   The ubuntu user is a member of the group www-data:  groups ubuntu   produces  ubuntu : ubuntu www-data   So shouldn't I be able to change other permissions since I have access to the file? I'm not an expert on the user/group stuff. So this is just perplexing me.  I'm trying to run:  chmod o-r *  I realize I can do it with sudo, easily, but I'm trying to understand why I can't modify the files without sudo.
115252
Is there a command or flag to clone the user/group ownership and permissions on a file from another file? To make the perms and ownership exactly those of another file?
5110
How can I use the chown command to change the ownership of all a folder's subfolders and files?
11122
I'm trying to recursively chown a VirtualBox shared folder, but I can't get it to work:  $ ls -lah total 16K drwxr-xr-x  4 root root   4.0K Aug  1  2012 . drwxr-xr-x 23 root root   4.0K Jul 21  2012 .. drwxrwx---  1 root vboxsf 4.0K May  4 17:02 sf_dev drwxrwx---  1 root vboxsf 4.0K Sep  2 10:21 sf_dropbox $ sudo chown -R pknight:pknight sf_dropbox &amp;&amp; ls -lah total 16K drwxr-xr-x  4 root root   4.0K Aug  1  2012 . drwxr-xr-x 23 root root   4.0K Jul 21  2012 .. drwxrwx---  1 root vboxsf 4.0K May  4 17:02 sf_dev drwxrwx---  1 root vboxsf 4.0K Sep  2 10:21 sf_dropbox   I'm aware that I could just add a user to the vboxsf group (as it has full permissions), but I don't want to give every user/daemon full permissions to all of my shared folders.  I'm running VirtualBox 4.2.x, with Windows 7 as the host and both Xubuntu and Debian as guests.  Is there any way for me to change the owner/group of my VirtualBox shared directory?
9733
Suppose I have created two folders in /tmp called parent and child. child contains a file called test-child.txt and parent contains a file called test-parent.txt. Now let's go inside the parent and create a symbolic link to the child. Next, go inside the child and try to copy the test-parent.txt from the parent. The bash completion works but the actual file copy fails --   cd /tmp pwd /tmp mkdir parent mkdir child touch child/test-child.txt ls child/ test-child.txt cd parent ln -sf ../child . touch test-parent.txt cd child cp ../test-parent.txt . cp: cannot stat ‘../test-parent.txt’: No such file or directory    why ??  Moreover, when I am inside child and if I say --  pwd /tmp/parent/child
95249
Is there some permissions setup that would allow a user, say, john, to add a file to a directory d, but not be able to remove an existing file owned by another user, say, root?   My understanding is that this is not possible, since one needs execute permissions to add a file to the directory, but this also gives on the power to unlink any file in the directory.  (I'm using Mac OS 10.9, but this question presumably applies to all POSIX-ish systems.)
91005
I am having an access problem to some files and directories that I have tracked down to the group assigned to access them.    When I manually change the name of the group in the properties/permissions menu for a directory from the default setting (MyGroup) to www-data used by my Drupal Website, the directory error messages I get are gone.    There are a large number of files and directories that require this change.  If believe using chmod will change the owner which is set correctly and being new to Ubuntu, I am reluctant to experiment without a better understanding of how owner and groups work in the permissions settings.   What command changes the Group setting for a directory?
36394
I stupidly ran sudo chown -R carlos:carlos / and carlos is my user. This changed all files to be Carlos and I could not boot up again (because the root files were now owned by #1000) and I cant get sudo acess in live cd (because the owner of /usr was changed to my user). Can anyone help me? FYI I have mounted my hard drive.
77104
So I was going to back up my home folder by copying it to an external drive as follows:  sudo cp -r /home/my_home /media/backup/my_home   With the result that all folders on the external drives are now owned by root:root. How can I have cp keep the ownership and permissions from the original?