Discussion:
[GTALUG] "Nobody" Problem
Stephen via talk
2018-08-05 21:22:04 UTC
Permalink
I have a share on Ubuntu Linux.

From Windows copy files to the share.

Files have owner of "Nobody"

How do I have them default to the owner of the Public directory?

Thanks
--
Stephen
---
Talk Mailing List
***@gtalug.org
h
Kevin Cozens via talk
2018-08-06 15:04:57 UTC
Permalink
Post by Stephen via talk
I have a share on Ubuntu Linux.
From Windows copy files to the share.
Files have owner of "Nobody"
How do I have them default to the owner of the Public directory?
It has been a quite a while since I set up Samba for directory/file sharing
in a company environment.

Files might get owned by nobody if files are copied to the share by guests.
When I last set up Samba I set valid-users to limit who could access the
shares. Each user had a user ID and password in order to access the shared
directory. I set the sgid bit on the directory to make sure all files would
be group owned. Any valid user could create a file and their name would be
the owner but the group was common so others in the group could access the file.

Samba has "force user" and "force group" settings that can also help. I
don't think those options were available when I last used it.
--
Cheers!

Kevin.

http://www.ve3syb.ca/ | "Nerds make the shiny things that
https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
| that's why we're powerful"
Owner of Elecraft K2 #2172 |
#include <disclaimer/favourite> | --Chris Hardwick
---
Talk Mailing List
***@gtalug.org
http
Howard Gibson via talk
2018-08-06 15:52:22 UTC
Permalink
Stephen,

I have used the sticky bit for this in the past.

You can set up a cron job that searches for new files, and that changes the owner and permissions.

On Sun, 5 Aug 2018 17:22:04 -0400
Post by Stephen via talk
I have a share on Ubuntu Linux.
From Windows copy files to the share.
Files have owner of "Nobody"
How do I have them default to the owner of the Public directory?
Thanks
--
Stephen
---
Talk Mailing List
https://gtalug.org/mailman/listinfo/talk
--
Howard Gibson
***@eol.ca
***@gmail.com
http://home.eol.ca/~hgibson
---
Talk Mailing List
***@gtalug.org
https://gtalug.
Loading...