Hi all, I'm wading my way through setting up Samba at the moment and seem to have come to a dead stop. I've managed to set up a number of shares, and although I'm able to view them I'm unable to write files to them. The smb.cong file is below. Any ideas? Alex [global] workgroup = INTRANET server string = Samba Server 01 security = SHARE encrypt passwords = Yes log file = /var/log/samba/%m.log max log size = 100 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No printing = lprng [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [Data] comment = Data drive on Server 01 path = /mnt/data read only = No guest ok = Yes -------------- next part -------------- HTML attachment scrubbed and removed
It might help to assign a user to the guest account: guest account = ftp might work. Otherwise, guest might be nobody and he may have very limited privileges. Also, check the permissions on /mnt/data. Joel On Sun, Nov 25, 2001 at 08:22:41PM -0000, Alexander Shaw wrote:> Hi all, > > I'm wading my way through setting up Samba at the moment and seem to have > come to a dead stop. I've managed to set up a number of shares, and although > I'm able to view them I'm unable to write files to them. The smb.cong file > is below. > > Any ideas? > > Alex > > [global] > workgroup = INTRANET > server string = Samba Server 01 > security = SHARE > encrypt passwords = Yes > log file = /var/log/samba/%m.log > max log size = 100 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > dns proxy = No > printing = lprng > > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > > > [Data] > comment = Data drive on Server 01 > path = /mnt/data > read only = No > guest ok = Yes
Hello Alex, If you are able to see the shares and the files they contain, then Samba is functioning properly. I think the issue you are experiencing is a permission related one. You need to make sure that your users have read/write access to the directories on your Linux/Unix Box. One other point, as you may know, Linux/Unix handle file permissions vary differently than Windows. If you create a file and place it on your share, as it stands now, you will be the only one that has access to it. If you want to allow others to access files and directories that you create, then you should set up file and directory masks to assign global permissions. If you are new to Linux / Samba, I found a book that has been invaluable to me, "Samba Essentials For Windows Administrators" written by Gary Wilson. I got it at bookpool.com and it has been a real life saver for me. By the way, it's new, so it covers domain controllers under W2K environments. I hope this helps. Bruce P. Morin -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of Alexander Shaw Sent: Sunday, November 25, 2001 3:23 PM To: samba@lists.samba.org Subject: What am I missing here? Hi all, I'm wading my way through setting up Samba at the moment and seem to have come to a dead stop. I've managed to set up a number of shares, and although I'm able to view them I'm unable to write files to them. The smb.cong file is below. Any ideas? Alex [global] workgroup = INTRANET server string = Samba Server 01 security = SHARE encrypt passwords = Yes log file = /var/log/samba/%m.log max log size = 100 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No printing = lprng [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [Data] comment = Data drive on Server 01 path = /mnt/data read only = No guest ok = Yes -------------- next part -------------- HTML attachment scrubbed and removed
With a directory called /mnt/data: [root@cc847658-a /mnt]# ls -al /mnt/data total 2 drwxr-xr-x 2 root root 1024 Nov 25 17:54 . drwxrwxrwx 19 root root 1024 Nov 25 17:54 .. The first line, with one ".", is the current directory /mnt/data. The line with two .'s is the directory above it, mnt. The /mnt/data directory would not be writable by anyone but root, so: chmod 777 /mnt/data or chmod a+w /mnt/data Then: [root@cc847658-a /mnt]# ls -al /mnt/data total 2 drwxrwxrwx 2 root root 1024 Nov 25 17:54 . drwxrwxrwx 19 root root 1024 Nov 25 17:54 .. Now, linux will let everyone read, write, and descend this directory. Samba might make it more restrictive, but with guesk ok = yes and with read only = no that shouldn't happen. Joel On Sun, Nov 25, 2001 at 10:11:36PM -0000, Alexander Shaw wrote:> Also, check the permissions on /mnt/data. > Joel > > Sorry Joel this is all new to me, what should I be looking for and where > with relation to /mnt/data? > > Alex