/mnt used/not used with Samba?
Hi. I'm still playing with getting Samba working, at home - I tinker for an hour every week or two.... Google coughed up an article suggesting that directories be created in /mnt to match any smb shares. I'm not clear on whether this generic advice would apply to SuSE. My /mnt is completely empty right now. My system is SUSE 10.0 If somebody has a working Samba arrangement on a very simple network (two or three PCs on a 4-port router at your house), do you have anything in /mnt on your Samba server? Does it correlate with your Samba shares? Kevin
On Fri, 2005-11-04 at 11:17 -0400, elefino wrote:
Hi.
I'm still playing with getting Samba working, at home - I tinker for an hour every week or two.... Google coughed up an article suggesting that directories be created in /mnt to match any smb shares. I'm not clear on whether this generic advice would apply to SuSE.
My /mnt is completely empty right now.
My system is SUSE 10.0
If somebody has a working Samba arrangement on a very simple network (two or three PCs on a 4-port router at your house), do you have anything in /mnt on your Samba server? Does it correlate with your Samba shares?
Kevin
There doesn't need to be anything there on the server, maybe on the clients (mount the shares where you want) but not the server. You need to set up the shares on the server in /etc/samba/smb.conf like so: [download] comment = Download Area inherit acls = Yes path = /storage/download/ read only = No This provides a share called download with the files located in /storage/download and it is r/w. Restart samba with rcsmb restart && rcnmb restart to activate any changes in the configuration. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Friday 04 November 2005 10:20, Ken Schneider wrote:
You need to set up the shares on the server in /etc/samba/smb.conf like so: [download] comment = Download Area inherit acls = Yes path = /storage/download/ read only = No This provides a share called download with the files located in /storage/download and it is r/w. Restart samba with rcsmb restart && rcnmb restart to activate any changes in the configuration.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
I already have something like that. See below, "[shared]". Could one of the other sections be screwing it up? Most of the config was done via YaST. The [shared] was added by hand. [global] workgroup = OURHOUSE printing = cups printcap name = cups printcap cache time = 750 cups options = raw map to guest = Bad User include = /etc/samba/dhcp.conf logon path = \\%L\profiles\.msprofile logon home = \\%L\%U\.9xprofile logon drive = P: add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ domain logons = No domain master = No netbios name = thatbox passdb backend = tdbsam security = user [homes] comment = Home Directories valid users = %S browseable = No read only = No inherit acls = Yes [profiles] comment = Network Profiles Service path = %H read only = No store dos attributes = Yes create mask = 0600 directory mask = 0700 [users] comment = All users path = /home read only = No inherit acls = Yes veto files = /aquota.user/groups/shares/ [groups] comment = All groups path = /home/groups read only = No inherit acls = Yes [shared] comment = Common shared area inherit acls = Yes path = /home/shared/ read only = No [printers] comment = All Printers path = /var/tmp printable = Yes create mask = 0600 browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 ## Share disabled by YaST # [netlogon] # comment = Network Logon Service # path = /var/lib/samba/netlogon # write list = root
On Fri, 2005-11-04 at 12:18 -0500, elefino wrote:
On Friday 04 November 2005 10:20, Ken Schneider wrote:
You need to set up the shares on the server in /etc/samba/smb.conf like so: [download] comment = Download Area inherit acls = Yes path = /storage/download/ read only = No This provides a share called download with the files located in /storage/download and it is r/w. Restart samba with rcsmb restart && rcnmb restart to activate any changes in the configuration.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
I already have something like that. See below, "[shared]". Could one of the other sections be screwing it up? Most of the config was done via YaST. The [shared] was added by hand.
I sent this in response to why there were no shares showing under /mnt on the "server". There is no need for the shares to be smb mounted on the server, or am I missing something here? Also please ONLY reply to the list PLEASE. I as well as everyone else don't need two copies of your response. Use the reply-to-List function of kmail. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
At 12:18 PM 11/4/05, elefino wrote:
On Friday 04 November 2005 10:20, Ken Schneider wrote:
You need to set up the shares on the server in /etc/samba/smb.conf like so: [download] comment = Download Area inherit acls = Yes path = /storage/download/ read only = No This provides a share called download with the files located in /storage/download and it is r/w. Restart samba with rcsmb restart && rcnmb restart to activate any changes in the configuration.
I already have something like that. See below, "[shared]". Could one of the other sections be screwing it up? Most of the config was done via YaST. The [shared] was added by hand.
SAMBA can be used two ways: 1) Allow Linux systems to access the "Shared" folders on Windows machines. 2) Allow Windows machines to see the "Shared" folders on your Linux system. Your reference to /mnt in your first post only applies to the 1st scenario. Any changes you make to /etc/samba/smb.conf only affects the 2nd scenario. In neither of your emails have you provided details of a problem that needs fixing.
Frank Bax wrote:
SAMBA can be used two ways: 1) Allow Linux systems to access the "Shared" folders on Windows machines. 2) Allow Windows machines to see the "Shared" folders on your Linux system.
3) Allow Linux systems to access the "Shared" folders on OS/2 machines. 4) Allow OS/2 machines to see the "Shared" folders on your Linux system. 5) Allow Linux systems to access the "Shared" folders on Linux machines. 6) Allow Linux machines to see the "Shared" folders on your Linux system. 7+)and probably also on Mac and BeOS and others. -- "I can do all things through Him who gives me strength." Philippians 4:13 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://members.ij.net/mrmazda/
On Friday 04 November 2005 7:17 am, elefino wrote:
If somebody has a working Samba arrangement on a very simple network (two or three PCs on a 4-port router at your house), do you have anything in /mnt on your Samba server? Does it correlate with your Samba shares?
Think of the /mnt scenario you are reading about as comparable to mapping a drive to a share in Windows parlance. So, if you want to 'map a drive' on your SUSE box to a share on some other PC in your house, you would create a mount point on the SUSE box and use smbmount to create the mapping, e.g., 1) create a mount point under /mnt, you do this once mkdir /mnt/sharedfoldername 2) Now use smbmount to connect up the share on the other pc to this mount point smbmount //workgroup/sharename /mnt/sharedfoldername -o username=name,password=pass Once mounted, the contents of the //workgroup/sharename folder appear under /mnt/sharedfoldername on your SUSE box and seem like they are part of the local filesystem. The same as if you had, say, mapped drive I: on a windows box to a share named //workgroup/sharename. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.9-default x86_64 SuSE Linux 9.3 (x86-64)
participants (5)
-
elefino
-
Felix Miata
-
Frank Bax
-
Ken Schneider
-
Scott Leighton