Thoughts of just about anything
Samba creating root-owned files for non-root user on Debian/etch
I just noticed today that when I connect from my Mac OS X box to my Debian/Etch box via Samba it appears that every time I create a file it gets the owner of root. For example if I log on as jfrias I would expect files to be jfrias:jfrias when I create them but they are created as root:jfrias.
After playing around with the config file for a while I noticed that the following line causes the problem:
admin users = @adm
Since the user jfrias is part of the adm group this line in smb.conf seems to be causing the issue. I still don’t understand why but if I remove it it all goes back to normal. I’ll do a little research on the Issue and see if I can find out if this is expected.
Mac Mini
Mac OS X Version 10.5.5 smbclient 3.0.25b-apple
Debian/Etch Box
Linux 2.6.18-6-686 smbd 3.0.24
| Print article | This entry was posted by Juan Frias on September 30, 2008 at 6:29 pm, and is filed under Debian, Linux, Mac OS X, Operating Systems. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 10 months ago
Thanks! I’ve been trying to figure this out for 2 days.