Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1765  / 3 Years ago, fri, november 12, 2021, 11:24:50

I have a drive on my Ubuntu machine shared over a network, and one of the computers that can access it is a Windows 7 computer.



Whenever I am on my Windows computer and I copy a file to the Ubuntu shared folder, it appears as owned by nobody, and with limited permissions:



-rwxr--r--  1 nobody nogroup


I always have to go to the command line on the Ubuntu side and issue a chown command to make it so that I have permissions to edit the file. Until I do, I can't move or copy it, and it won't sync with Dropbox.



How can I make it so that when I copy files from my Windows machine they automatically are owned by me (I only have one user account on my Ubuntu machine) and I have the permission to edit and move them freely?


More From » windows

 Answers
6

I am not sure how your directory is shared on your network. If it is using Samba, edit the smb.conf and add the following two lines in the definiton of your share:



[yourshare]
...
force user = yourusername
force group = yourgroup
...


Hope this helps.


[#22633] Saturday, November 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alkeake

Total Points: 467
Total Questions: 94
Total Answers: 126

Location: Tajikistan
Member since Tue, Jun 15, 2021
3 Years ago
alkeake questions
Mon, Jul 5, 21, 09:24, 3 Years ago
Sun, Apr 23, 23, 03:29, 1 Year ago
Thu, Dec 22, 22, 20:30, 1 Year ago
;