How to transfer files from one user to another

I'm running 17.2 and we have two user accounts - myself and my wife. I am the administrator. In my old windows system (7) I could copy a file to her account or put the file in a public folder where she could retrieve it. This does not work in 17.2 , it says "Error opening directory, permission denied".

Is there a way to give me that permission? I would rather copy files with the GUI file manager than using terminal.

Quick 2nd Question (I hope) - in 17.2 the desktop is listed under the home directory in the file manager. I could have sworn it was listed separately in 16 along with documents, download, pictures etc. Maybe I'm confusing it with my old Windows layout. Is there a way to make the desktop folder display on the left panel in file manager and not under home?

Thanks

It is possible. But not in this Way before. Open Nautilus and choose the home Folder. There go with the Mouse Cursor to the Desktop Icon and click and hold it with the left Mouse-Key and move it to the left Side. Then You get and Desktop Entry on the left Side but only at the bottom:


(Please don't be irritated by the Language on the Picture. My System is in german. The marked Stuff are the Desktop Stuff.)

1 Like

As for sharing folders between users, this guide here should probably be what you're looking for. I don't have multiple users on my computer, so I can't test for you right now:

permissions - Share a Folder between two Local Users - Ask Ubuntu

1 Like

As a note, the public directory in your home directory is meant for sharing files, but isn't shared by default. A little searching tells me it was meant for a tool Ubuntu no longer installs by default, but using Applecheeks37's link's instructions on your and your wife's public folders will give you sort of local drop boxes for each other, if you'd prefer that over giving access to a directory that already has a use. (In the link Applecheeks provided, the instructions permanently share the Music folder. Using Public instead would let you share only the files you deliberately drop for each other.)

2 Likes

Tried it but it doesn't work unfortunately.

It didn't worked? You only have to move the Desktop Icon to the left. Then you see at the bottom the Option to add a new Bookmark. Simply move it to this:

When I drag it over to the left it just snaps back to the right. The best I could so was drag it to another folder like Videos, but that is of no use. Is a bookmark the same as a folder for my purposes? I was expecting to see the folder itself moved.

Unfortunately Applecheeks37 instructions did not work. I downloaded the users and groups software, followed the instructions exactly, applying them to the Public folder and even tried the Terminal commands. I then tried moving a file to my Public folder and signed on to wife's account, made sure she had the same permissions in the instructions. Nothing showed up in her Public folder.

Oh, nothing would show up in her public folder. The instructions above give her access to your public folder. She'd go there and fish it out, or you'd give yourself access to her public folder and drop it there for her. If you want a unified drop point, that's doable with symlinking. If you're interested we can get into that, too.

Edit: @Zenzen got into it below!

1 Like

The proposed solution there only accounts for the regular file permission issue, whereby you would be able to access each other's Public folder, but it does not create a shared directory.

I think the simplest solution to this is to create a shared folder elsewhere that both of you can access. One way would be by creating a new, dedicated user for that purpose. This would keep thing relatively organized since it's user-generated content that belongs inside the /home directory (if this means nothing to you, it's not really important so don't worry about it).

sudo useradd -m shared_account
sudo usermod -aG shared_account user1
sudo usermod -aG shared_account user2
sudo chmod 6770 /home/shared_acc

Feel free to choose whatever name you want for the user named "shared_account", and replace user1 and user2 with the account names for you and your wife.

Next, you can create a symbolic link to your own user accounts.

ln -s /home/shared_acc /home/user1/Shared
sudo ln -s /home/shared_acc /home/user2/Shared
sudo chown user2 /home/user2/Shared

Note that the second command here needs to run as sudo if you are the one doing it from your own account. If each one of you will run this for your own respective accounts, each can use simply ln -s /home/shared_acc /home/userX/Shared.

If you prefer, you can delete the Public folder and use that same name. You can now drag and drop this folder on the sidebar to have it as a shortcut:

3 Likes

This looks like it might work. I will try this tomorrow. I think I will delete the Public folder and recreate it. Placing it on the left side as a bookmark is a good idea. Rest assured I will have more questions as I go thru this. :grin:

1 Like

Forgot about Sharing in Settings - this needs to be turned on.

Found this using Brave A.I. search engine via Mojeek using Ubuntu 22.04 as search criteria as Zorin 17.x is a fork of Ubuntu 22.04:

Share Public Folder Between Users

To share the Public folder between two users on the same machine in Ubuntu 22.04, you can follow these steps:

  1. Enable Public Folder Sharing:
  • Open the Activities overview and start typing “Sharing”.
  • Click on Sharing to open the panel.
  • Select File Sharing.
  • Switch the File Sharing switch to on. This allows other people on your current network to access the Public folder.
  1. Configure Permissions for Public Folder:
  • Right-click on the Public folder in the File Manager.
  • Choose “Properties” and then the “Permissions” tab.
  • Ensure that the folder allows others to read and write files.
  1. Create a Shared Directory for Both Users:
  • Create a shared directory outside of the home directories, for example, /shared.
  • Set the permissions for this directory to allow both users to read and write files.
sudo mkdir /shared
sudo chmod 770 /shared
 
  1. Add Both Users to a Common Group:
  • Create a group for sharing, for example, shared.
  • Add both users to this group.
sudo groupadd shared
sudo usermod -aG shared user1
sudo usermod -aG shared user2
 
  1. Change Group Ownership of the Shared Directory:
  • Change the group ownership of the /shared directory to the shared group.
sudo chgrp shared /shared
 
  1. Set Group Sticky Bit:
  • Set the group sticky bit for the shared folder to ensure files copied into it retain the group permissions.
sudo chmod g+s /shared
 

By following these steps, both users can access and modify files in the shared directory without needing to share their login credentials or grant anonymous access.

2 Likes

Ask away!

I tried that here is what I got:

I was confused by the verbiage "Windows network sharing service". By capitalizing "Windows" it made it sound like MS Windows.

So just to be sure I don't screw something up, should I go ahead and click install and then try again?

You read that correctly. That option is intended for sharing with other computers over the network, and specifically using a protocol that is capable of communicating with Windows computers.

1 Like

That is why I edited later to say ignore. Use the subsequent thread. Will delete my first post.

2 Likes

I tried the commands you gave me. This is what I typed:

Here is the result:

I'm guessing that big red X means I can't put anything in that folder. Did I do something wrong or is there a command I'm missing?

You might need to restart to make group assignments effective.

You've made typo error from the start. Start again and use lower 's' for /shared. :wink:

I took care of that in the next statement. I just wanted the folder to start with a capital "S". I just downloaded security updates for Zorin so I am going to take zenzen's advice and restart my system. I'll let you know how it goes.