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 # Samba config file created using SWAT # from rs229202.resnet.wright.edu (130.108.229.202) # Date: 2000/10/03 13:31:04 # Global parameters [global] workgroup = SHADOWSTAR netbios name = TWEETY server string = %h server (Samba %v) encrypt passwords = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spa$ syslog = 0 max log size = 1000 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=40$ os level = 128 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes invalid users = root admin users = alec hosts allow = 130.108.229.200, 130.108.229.201, 130.108.229.202, 130.10$ hosts deny = 130.108 printing = lprng [homes] comment = Home Directories writeable = Yes create mask = 0700 directory mask = 0700 inherit permissions = Yes browseable = No [printers] comment = All Printers path = /tmp create mask = 0700 printable = Yes browseable = No [mp3] comment = MP3 files path = /home/alec/mp3 valid users = alec, carl read list = carl write list = alec force group = mp3 create mask = 0774 inherit permissions = Yes