On Tue, Oct 03, 2000 at 01:39:12PM -0400, Alec Smith wrote: > I'm noticing that if I copy some files from Windows NT onto my Samba > server I end up with the wrong permissions. Instead of files being owned > by alec.mp3 as I'd like, they appear to be owned by root.mp3. > > 97153 drwxr-sr-x 2 alec mp3 4.0k Oct 3 13:28 ./ > 32385 drwxr-sr-x 3 alec alec 4.0k Oct 3 13:25 ../ > 97157 -rwxrw-r-- 1 root mp3 4.6M Jul 9 05:14 [Barry > Sadler] - Ballad of the Green Berets.mp3* > 97154 -rwxrw-r-- 1 root mp3 2.7M Jul 9 04:54 > oldies.shelly fabres-johnny angel.mp3* > > Although I used the MP3 share to copy these files, the same effect is > seen when copying a file into home directories (root.correct group > name) using the homes share. How can I go about getting Samba to place the > correct ownerships on files? My smb.conf is included below. The server is > running Potato and Samba 2.0.7 (from the .deb). > > Thanks, > Alec
[snip] > invalid users = root > admin users = alec try removing this admin users = alec. iirc (and i may not) this basically gives you root privileges when you login instead of normal privileges. that is the only thing in your config i can see that might cause this. (you use security mode = users right?) also if you set your create mode to 644/664 (no 7s) and directory mode to 755/775, along with map archive = no you won't get those hideously ugly 764 permissions like you have above. -- Ethan Benson http://www.alaska.net/~erbenson/
pgpvzQZZBVW0b.pgp
Description: PGP signature