Hi ! The O'Reilly "Using Samba" book, recommend not to include smbmount support as it is for Linux only: "This feature wasn't being maintained at the time the book was written, so the Samba team made it an optional feature and provided smbwrapper instead. The smbwrapper feature works on more Unix platforms than smbmount, so you'll usually want to use --with-smbwrapper instead of this option" Is it still true ? What do you recommend me to use ? I'm using a linux wks (RedHat 7.2) with samba 2.2.4, and I use winbind to authenticate from a win2k domain controler: it does work (this is so great !!) but I also would like to mount a windows share (not my windows home directory because I haven't got any) when I log in. Any idea of how to do this ? Regards. --------------------------------------------- Powered by Alinto (http://www.alinto.net) for lavache.com (http://www.lavacheautomatique.com)
On Mon, 10 Jun 2002, LAUTIER Sabrina wrote:> Is it still true ? > What do you recommend me to use ?The one that works best. Nowadays smbmount is being maintained. I believe there are/were some problems getting smbwrapper working on more recent Linux (glibc 2.2 trouble). smbmount/smbfs works for most simple things, including some that are listed as not working for smbwrapper (executing files, using mmap, shell redirection). But there are a bunch of known problems too.> I'm using a linux wks (RedHat 7.2) with samba 2.2.4, and I use winbind > to authenticate from a win2k domain controler: it does work (this is > so great !!) but I also would like to mount a windows share (not my > windows home directory because I haven't got any) when I log in. > > Any idea of how to do this ?pam_mount ? Or put a smbmount call in your startup scripts (/etc/rc.local), using the credentials option or something. You probably already have smbmount/smbfs on your RH7.2 system. So why not try it and see if it works for what you want? And don't trust everything you read ... /Urban
> The O'Reilly "Using Samba" book, recommend not to include smbmount > support as it is for Linux only: > > "This feature wasn't being maintained at the time the book was > written, so the Samba team made it an optional feature and provided > smbwrapper instead. The smbwrapper feature works on more Unix > platforms than smbmount, so you'll usually want to use > --with-smbwrapper instead of this option" > > Is it still true ?No. smbmount and the smbfs filesystem are being maintained (albeit for Linux only, AFAIK), and work pretty well on Linux. Actually, smbwrapper now *doesn't* work on Linux. (The first edition of Using Samba is _slightly_ out of date. ;-) Support for smbfs should be included in your Linux kernel. I expect that all distributions include it nowadays. (Someone please tell me if this is wrong.) You need to install Samba, compiled with the --with-smbmount option to the configure program. Make sure you have a correct smb.conf file for Samba after installation.
First of all, thanks for this good and quick answers !> (The first edition of Using Samba is _slightly_ out of date. ;-)Is the 2nd edition of Using Samba already out ? If yes where to find it ?> From there, you can use smbmount to mount SMB shares (from > Windows systems or Samba servers) in your Linux filesystem.smbmount works fine : $ smbmount //DOMAIN_controler/sharedir /home/toto/smb -o credentials=/home/win2k/DOMAIN/toto/.smbpw,uid='DOMAIN+toto',gid='DOMAIN+Domain users',fmask=664,dmask=775 The user toto is a domain user authenticated from the Win2k server. I can then see that toto owns all files and directories (fmask=664,dmask=775): does this mean that he can do what he wants ? As if the SMB share was a regular linux fs ? Isn't there permissions checking from the win2k server ? What about if I what a SMB share to be mounted automatically at user's login ? For example: I would like ALL win2k domain users to have the SMB share //DOMAIN_controler/sharedir automatically mounted when they log in on my linux box. Is pam_mount the best solution ? Regards. --------------------------------------------- Powered by Alinto (http://www.alinto.net) for lavache.com (http://www.lavacheautomatique.com)