[Samba] cannot write to my shares

Rainer Hubovsky rainer at hubovsky.net
Wed Aug 27 18:05:21 GMT 2003


Hi Daniel!

Afaik all shares are read only by default. To change this put a read
only = No in the [musik] section.

Best regards,
 +r


Daniel writes:
 > 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
 > 	
 > 
 > 
 > 
 > 	
 > 
 > 
 > 
 > -- 
 > To unsubscribe from this list go to the following URL and read the
 > instructions:  http://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list