[Samba] Connecting Suse9.2 to Samba shares in a windows network

Michael Kelly mkelly at victoria.komex.com
Thu Nov 18 18:41:23 GMT 2004


Thank you for your reply Michael, 
 
I will look further into the generalization of my current script. When I
was writing it I was looking at it only for one specific user, and then
once working correctly, hopefully moving it to a more general approach
that used the system to determine the actual user logging in. I will
also check into running it from .profile as well since the more I can
automate the setup of new users the better. 
 
I am glad to see that I may have been on the right track with my script.

 
Thanks again for the ideas 
Michael Kelly 
 
 
>>>Michael Wray <mwray at aimconnect.com> 11/18 9:10 am >>> 
 
It seems to me the only more elegant solution would be to make a a mount

 
script that runs from .profile instead.  (This way it can be copied to
their 
 
home directory at user setup.) 
 
you could write a script to do the mounting that used things like the
output 
 
of whoami and the contents of $HOME to determine username and HOME 
 
directories for the mount points, and share names. 
 
combining it with smbpasswd as an authmethod, the server hosting the My 
 
Documents directory could then see when someone was logged in and pre
auth 
 
the mount.  Or you could have it done as a login script on the samba 
 
server. 
 
 
 
-----Original Message----- 
 
From: samba-bounces+mwray=s4f.com at lists.samba.org 
 
[mailto:samba-bounces+mwray=s4f.com at lists.samba.org]On Behalf Of Michael

 
Kelly 
 
Sent: Thursday, November 18, 2004 11:43 AM 
 
To: samba at lists.samba.org 
 
Subject: [Samba] Connecting Suse9.2 to Samba shares in a windows network

 
 
 
Hi All, 
 
 
Our office is running somes tests by introducing a couple of Linux 
 
workstations into the mix to see how they fair. I am however having some

 
issues connecting these workstations to the shares offered by our Samba 
 
3.02 server. 
 
 
I know that this is not really a samba issue, but I thought I might be 
 
able to get some help here to rectify my problems. I apologize if this 
 
is too far off topic for this list. 
 
 
Here is the setup: 
 
 
It is a basic workgroup network, no domain, with no PDC or anything of 
 
that sort. Authentication for the shares is done simply by having a 
 
macthing username/password on a win2000Pro workstation. The majority of 
 
shares on the server have the SUID and SGID set to a certain user for 
 
simplicity and to resolve the Microsoft Office file locking issues. 
 
However, each user's My Documents directory is a server share that is 
 
accessed automatically by way of the username used on the workstation. I

 
have left out a few details, but they are unimportant. 
 
 
I do not want the users to have to mount any drives themselves on the 
 
Linux workstations so I would like them to be mounted automatically when

 
the user logs in, not at boot time, but login time as these Linux 
 
workstations will be multiuser so will need to mount different My 
 
Documents directories. 
 
 
I have put the share definitions into fstab, but that will not do the My

 
Documents correctly. I have also tried using autofs which works well for

 
the regular shares, but again does not work for My Documents. I have 
 
found info on doing something similar with an NFS filesystem but nothing

 
pertaining to smbfs and what I am trying to do with the My Documents 
 
share 
 
 
I am currently mounting them via a script that is called from .bashrc. 
 
This works, but it just does not seem very elegant and I know that it 
 
can be done better in Linux, I am just not sure how. 
 
 
I would like these tests to pass with flying colors to show the higher 
 
ups that Linux will work as a workstation, but having to write a custom 
 
script for each user to be able to mount the Samba shares will not help 
 
my case. 
 
 
As I said before, I need everything to happen at automatically as any 
 
people that will be working with these Linux workstations are not 
 
computer savy. 
 
 
Thanks for any ideas 
 
Michael Kelly 
 
 
-- 
 
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