Hi! Well, I have a Linux machine (RedHat 9.0) with samba on it and a Win ME on the other machine and I want to share a partition for music, read-only. (Won't be hard, is mounted read-only) and a transfer share where I can write to, too. My config file looks as follwing: # Samba config file created using SWAT # from 192.168.0.1 (192.168.0.1) # Date: 2003/08/04 23:05:42 # Global parameters [global] workgroup = LAN netbios name = TOBI server string = Tobis Linux-Kiste interfaces = eth0 security = SHARE encrypt passwords = Yes obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* unix password sync = Yes log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No printing = cups [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [musik] comment = Tobis Musik path = /mnt/music guest ok = Yes [transfer] comment = Netzwerk-Transfer path = /mnt/windows/Netzwerk-Transfer read only = No guest ok = Yes [drucker] comment = Tobis DeskJet path = /var/spool/samba read only = No guest ok = Yes printable = Yes printer name = drucker oplocks = No So, the problem is that I can't write from the Windows PC to this transfer share; if I want to change a filename I get the message "Access denied; maybe the files is opened" and if I want to copy a file to it, I get the message "Access denied. Make sure that the drive is neither full nor write-protected nor the file is opened." I already rebooted both machines a few times but always the same result. How can I solve that? Bye Tobias _________________________________________________________________ Ich missbillige, was Ihr sagt, aber Euer Recht, es zu sagen, werde ich bis an mein Ende verteidigen. (Voltaire)
On Mon, 2003-08-04 at 23:17, Tobias Pfeiffer wrote:> Hi! > > Well, I have a Linux machine (RedHat 9.0) with samba on it and a Win ME on > the other machine and I want to share a partition for music, read-only. > (Won't be hard, is mounted read-only) and a transfer share where I can > write to, too. My config file looks as follwing:Make sure you have "writable = yes" for each of your shares, and also, check the directories permissions.
Hi! At 00:02 05.08.2003 +0200, Felipe Alfaro Solana wrote:>On Mon, 2003-08-04 at 23:17, Tobias Pfeiffer wrote: > > Well, I have a Linux machine (RedHat 9.0) with samba on it and a Win ME on > > the other machine and I want to share a partition for music, read-only. > > (Won't be hard, is mounted read-only) and a transfer share where I can > > write to, too. My config file looks as follwing: >Make sure you have "writable = yes" for each of your shares,My config file included "read only = no", isn't that the same?>and also, check the directories permissions.The problem is that the share is a directory on a mounted FAT32 partition where I can't change the permissions. I'd suppose that was the problem if not just before reinstalling this had worked. You see, each few seconds, the line [2003/08/05 21:02:39, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369) unable to open passdb database. is appended to my logfile and sometimes also [2003/08/05 21:02:39, 0] smbd/service.c:make_connection(252) internet-pc (192.168.0.1) couldn't find service styles Now what is that database and where is the connection to my problem? I may read, but not write... Bye Tobias ______________________________________________________________ mp3's prime time is over... use open source, patent-free ogg-vorbis for audio compression -- www.vorbis.com
Hi again! At 21:05 05.08.2003 +0200, you wrote:>>Make sure you have "writable = yes" for each of your shares, > >My config file included "read only = no", isn't that the same?But though I have this, my swat status pages lists the opened files in the pseudo-read-write-share as: 3857 DENY_WRITE RDONLY EXCLUSIVE+BATCH /mnt/windows/Netzwerk-Transfer/CLUSTER.JPG Tue Aug 5 21:15:53 2003 I'll try writeable=yes and read only=no. Bye Tobias ______________________________________________________________ mp3's prime time is over... use open source, patent-free ogg-vorbis for audio compression -- www.vorbis.com
Hi! Well, I have a Linux machine (RedHat 9.0) with samba on it and a Win ME on the other machine and I want to share a partition for music, read-only. (Won't be hard, is mounted read-only) and a transfer share where I can write to, too. My config file looks as follwing: # Samba config file created using SWAT # from 192.168.0.1 (192.168.0.1) # Date: 2003/08/04 23:05:42 # Global parameters [global] workgroup = LAN netbios name = TOBI server string = Tobis Linux-Kiste interfaces = eth0 security = SHARE encrypt passwords = Yes obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* unix password sync = Yes log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No printing = cups [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [musik] comment = Tobis Musik path = /mnt/music guest ok = Yes [transfer] comment = Netzwerk-Transfer path = /mnt/windows/Netzwerk-Transfer read only = No guest ok = Yes [drucker] comment = Tobis DeskJet path = /var/spool/samba read only = No guest ok = Yes printable = Yes printer name = drucker oplocks = No So, the problem is that I can't write from the Windows PC to this transfer share; if I want to change a filename I get the message "Access denied; maybe the files is opened" and if I want to copy a file to it, I get the message "Access denied. Make sure that the drive is neither full nor write-protected nor the file is opened." I already rebooted both machines a few times but always the same result. How can I solve that? Bye Tobias ############################################################################### You need to create to change "security = SHARE" to "security = user" then you need to create a file "smbpasswd" inside your samba folder. After it done you need to create a system user :adduser somebody :passwd somebody :smbadduser somebody:somebody :smbpasswd somebody Restart samba and enjoy obs. [homes] comment = User Foders public = no browseable = yes writeable = yes hosts allow = 192.168.1. #your sub-net Normal shares: [Tecnica] comment = For all users path = /home/Tecnica_Net valid users = user1 user2 etc... public = no browseable = yes writable = yes create mask = 0660 obs2. give permission to folder